Nginx
文章平均质量分 58
KeithQin
这个作者很懒,什么都没留下…
展开
-
4、nginx日志切割(logrotate)
#安装logrotateyum install logrotate -y#在 /etc/logrotate.d/ 目录下新建一个 nginx 的文件vim /etc/logrotate.d//nginx#内容如下/usr/local/nginx/logs/*log{ su root root daily dateext missingok rotate 7 notifempty compress create 644原创 2022-03-21 12:20:14 · 1851 阅读 · 0 评论 -
3、nginx+ssl自签证
#安装依赖库yum -y install openssl openssl-devel pcre pcre-develgcc zlib zlib-develtar zxvf/usr/local/nginx/nginx-1.18.0.tar.gz#方法一:删除原先的覆盖安装#进入nginx目录cd /usr/local/nginx/nginx-1.18.0#执行命令groupadd nginxuseradd -g nginx -s /sbin/nologin nginx..原创 2022-03-21 12:19:05 · 1686 阅读 · 0 评论 -
1、keepalived2.0.20安装与配置(HA)
#keepalived下载地址: Keepalived for Linux#安装依赖包yum -y installlibnl libnl-devel#上传至服务器解压tar zxvf keepalived-2.0.20.tar.gz#进入keepalived目录cd keepalived-2.0.20#执行命令./configure --prefix=/usr/local/keepalivedmakemake install#配置防火墙或者关闭防火墙(ens.原创 2022-03-21 12:15:20 · 2572 阅读 · 0 评论 -
2、nginx+tomcat反向代理与负载均衡--CentOS 7
#修改ngnix.conf文件添加以下内容vim /usr/local/ngnix/conf/ngnix.conf upstream backend { server 192.168.31.167:8081; server 192.168.31.68:8080; #server 192.168.31.68:8080 weight=1 max_fails=1 fail_timeout=10s; } server {...原创 2022-03-21 12:10:32 · 1224 阅读 · 0 评论 -
1、nginx1.18.0安装--CentOS 7
#下载地址:nginx: download#安装依赖库yum -y install gcc zlib zlib-devel pcre-devel openssl openssl-devel#上传至服务器解压tar zxvf nginx-1.18.0.tar.gz#进入nginx目录cdnginx-1.18.0#执行命令groupadd nginxuseradd -g nginx -s /sbin/nologin nginx./configure --pref.原创 2022-03-21 12:08:20 · 2151 阅读 · 0 评论