一、为什么不直接使用现有nginx二进制文件直接安装 因为现有的nginx二进制文件是编译好的,内置的一些功能模块已经固定,不能添加或移除。如果自己编译生成nginx,则可按需添加或移除nginx中功能模块。 二、开始编译生成nginx二进制文件 1. 下载Nginx,在官网http://nginx ...
分类:
其他好文 时间:
2021-02-17 14:42:32
阅读次数:
0
在/home/用户名/.bashrc 最后一行添加如下代码: alias chrome='google-chrome --proxy-server="127.0.0.1:8889" '#打开代理chrome 在终端运行:source ~/.bashrc 打开谷歌浏览器 ...
分类:
系统相关 时间:
2021-02-16 12:39:11
阅读次数:
0
NMP = Nginx/MySQL/PHP Installation steps of the Nginx 我这里使用 v1.4.4 wget -c http://nginx.org/download/nginx-1.4.4.tar.gz install tar -zxvf nginx-1.7.4. ...
分类:
其他好文 时间:
2021-02-16 12:17:27
阅读次数:
0
1.分类 级联删除: 删除StatefulSet时同时删除pod 非级联删除: 删除StatefulSet时不删除pod 2.级联删除 [root@k8s-master01 ~]# kubectl get pod NAME READY STATUS RESTARTS AGE nginx-6cdd5d ...
分类:
其他好文 时间:
2021-02-15 12:41:00
阅读次数:
0
服务器下安装nginx sudo apt-get install nginx nginx的文件配置 服务地址:/etc/init.d/nginx 配置地址:/etc/nginx/ 如:/etc/nginx/nginx.conf Web默认目录:/usr/share/nginx/http/ 如:usr ...
分类:
其他好文 时间:
2021-02-15 12:10:22
阅读次数:
0
本文作为ASP.Net Core Web API学习的一部分,介绍了如何使用Nginx进行简单的负载配置。 1、将ASP.Net Core Web API项目发布到不同的服务器 例如,将项目发布到本地不同的文件夹中。 2、使用dotnet命令启动已发布的ASP.Net Core Web API服务 ...
docker常用命令 docker 列出images docker images docker 镜像保存 nginx-fun 为镜像名字 docker commit -m "fun" 034b9f9528c4 nginx-fun docker 删除镜像 docker rmi 1d0ae87c852d ...
分类:
其他好文 时间:
2021-02-09 12:00:57
阅读次数:
0
配置站点使用 https,并且将 http 重定向至 https。 1. nginx 的 ssl 模块安装 查看 nginx 是否安装 http_ssl_module 模块。 $ /usr/local/nginx/sbin/nginx -V 1 如果出现 configure arguments: - ...
分类:
Web程序 时间:
2021-02-08 11:41:11
阅读次数:
0
1.vue配置 /** * * 相对于该配置的nginx服务器请参考nginx配置文件 * */ module.exports = { // 基本路径 publicPath: '/', // 输出文件目录 outputDir: 'dist', // webpack-dev-server 相关配置 d ...
分类:
编程语言 时间:
2021-02-08 11:40:26
阅读次数:
0
1、模式主要思想: 为其他对象提供一种代理以控制(隔离,使用接口)对这个对象的访问。 2、结构: 3、代码 class ISubject{ public: virtual void process(); }; class RealSubject : public ISubject{ public: ...
分类:
其他好文 时间:
2021-02-06 12:11:44
阅读次数:
0