安装nginx 1 sudo apt-get install -y nginx 修改配置文件 1 vi /etc/nginx/nginx.conf 2 #注释掉下面这行代码 3 #include /etc/nginx/sites-enabled/*; 4 #保存 在/etc/nginx/conf.d ...
分类:
系统相关 时间:
2021-05-24 09:40:00
阅读次数:
0
nginx version: openresty/1.19.3.1 built by gcc 8.3.1 20190311 (Red Hat 8.3.1-3) (GCC) built with OpenSSL 1.1.1h 22 Sep 2020 (running with OpenSSL 1.1. ...
分类:
其他好文 时间:
2021-05-24 09:34:56
阅读次数:
0
修改php-fpm.conf security.limit_extensions = .php .html 查看php-fpm.conf内listen,如果是端口则nginx.conf server内容为 location ~ \.php|\.html(.*)$ { fastcgi_pass 127 ...
分类:
Web程序 时间:
2021-05-24 09:26:26
阅读次数:
0
golang GRPC mock 1.)前置条件 go install github.com/golang/protobuf/protoc-gen-go go install github.com/carvalhorr/protoc-gen-mock 2.) 生成mock文件 proto文件gree ...
分类:
其他好文 时间:
2021-05-24 08:41:27
阅读次数:
0
1、什么是 nginx 高可用 (1)需要两台 nginx 服务器 (2)需要 keepalived (3)需要虚拟 ip 2、配置高可用的准备工作(1)需要两台服务器 192.168.17.129 和 192.168.17.131 (2)在两台服务器安装 nginx (3)在两台服务器安装 kee ...
分类:
其他好文 时间:
2021-05-24 08:39:55
阅读次数:
0
扫描以下常见未授权访问 redis、mongodb、memcached、elasticsearch、zookeeper、ftp、CouchDB、docker、Hadoop 安装 pip3 install -r requirements.txt -i https://mirrors.aliyun.co ...
分类:
其他好文 时间:
2021-05-24 08:32:18
阅读次数:
0
1、什么是动静分离 Nginx 动静分离简单来说就是把动态跟静态请求分开,不能理解成只是单纯的把动态页面和静态页面物理分离。严格意义上说应该是动态请求跟静态请求分开,可以理解成使用 Nginx 处理静态页面,Tomcat 处理动态页面。动静分离从目前实现角度来讲大致分为两种,一种是纯粹把静态文件独立 ...
分类:
其他好文 时间:
2021-05-24 08:24:01
阅读次数:
0
两大部分,一环境,二LVS规则 一、环境 1、两台服务器上安装httpd 服务 yum install httpd -y 2、开启服务,并设置为开机自启 systemctl start httpd systemctl enable httpd 3、新建页面 1)、在RS1 服务器上新建页面RS1 e ...
分类:
其他好文 时间:
2021-05-24 08:18:05
阅读次数:
0
环境准备,一台CentOS7 安装软件```[root@localhost ~]# yum install mariadb-server -y```创建三个实例的目录```[root@localhost ~]# mkdir /mysql/{3306,3307,3308}/{data,etc,sock ...
分类:
数据库 时间:
2021-05-24 08:17:38
阅读次数:
0
反向代理实例二 实现效果:使用 nginx 反向代理,根据访问的路径跳转到不同端口的服务中nginx 监听端口为 9001, 访问 http://127.0.0.1:9001/dev/ 直接跳转到 127.0.0.1:8081访问 http://127.0.0.1:9001/test/ 直接跳转到 ...
分类:
其他好文 时间:
2021-05-24 08:12:32
阅读次数:
0