Nginx
jackson-wzx
厚积薄发
展开
-
Nginx 高可用配置
实验环境两台Nginx,两台tomcat集群Nginx服务器IP配置如下:192.168.10.200(主)192.168.10.100(备)tomcat集群IP配置:192.168.10.88(集群tomcat8888)192.168.10.99(集群tomcat9999)1 Nginx 环境部署(略)参考文档:https://editor.csdn.net/md/?articleId=1064399432 两台Nginx安装keepalived[root@Nginx1 ~]#原创 2020-06-04 23:37:36 · 707 阅读 · 0 评论 -
启动Nginx报错 ./nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared
1 报错如下[root@Nginx1 sbin]# ./nginx./nginx: error while loading shared libraries: libcrypto.so.1.1: cannot open shared object file: No such file or directory2 解决方法2.1 使用以下命令发现是缺失“libcrypto.so.1.1”库文件[root@Nginx1 sbin]# ldd $(which /usr/local/nginx/sbin原创 2020-06-03 16:26:13 · 9122 阅读 · 0 评论 -
Nginx 动静分离实验配置
文章目录1 Nginx 安装部署(略)2 修改nginx.conf配置文件3 创建相关目录4 设置静态资源5 重启Nginx6 防火墙放行Nginx监听端口7 测试1 Nginx 安装部署(略)参考文档:https://editor.csdn.net/md/?articleId=1064399432 修改nginx.conf配置文件[root@nginx ~]# vim /usr/local/nginx/conf/nginx.confserver{ listen原创 2020-06-02 21:33:23 · 152 阅读 · 0 评论 -
启动或加载Nginx报错nginx: [error] open() /usr/local/nginx/logs/nginx.pid failed
参考文档:https://www.cnblogs.com/keefer/p/6188427.html报错如下[root@nginx sbin]# pwd/usr/local/nginx/sbin[root@nginx sbin]# ./nginx -s reloadnginx: [error] open() "/usr/local/nginx/logs/nginx.pid" failed (2: No such file or directory)[root@nginx sbin]# ./ngi原创 2020-06-02 13:37:29 · 643 阅读 · 0 评论 -
CentOS7安装部署Nginx(1.8.1)
参考文档:https://blog.csdn.net/qq_39387856/article/details/88951699系统环境[root@nginx ~]# cat /etc/redhat-releaseCentOS Linux release 7.0.1406 (Core)1 安装make及编译环境[root@nginx ~]# yum -y install gcc gcc-c++ automake autoconf libtool make2 安装OpenSSL[root@ng原创 2020-05-30 13:19:15 · 427 阅读 · 0 评论