最新消息:Kglan博客,DDOS防护,CC防护,Syn防护,系统架构师,系统架构,系统架构设计师,网络安全高级工程师,海外无限防护系统,特征码防护系统,自定义cc策略防护,锐速云防护系统,v5dun域名,v5dun域名

CentOS 7 openresty Nginx 添加ssl 证书reload 不生效 缺少参数

nginx admin 68浏览

CentOS 7  openresty Nginx 添加ssl 证书reload 不生效原因是重要缺少参数

#原文件 没加 LimitNOFILE=300000 参数

[root@localhost ~]# cat /lib/systemd/system/nginx.service
[Unit]
Description=nginx – high performance web server
Documentation=http://nginx.org/en/docs/
After=network.target

[Service]
Type=forking
PIDFile=/usr/local/openresty/nginx/logs/nginx.pid
ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t
ExecStart=/usr/local/openresty/nginx/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target

————————————————————————-

[root@localhost ~]# cat /lib/systemd/system/nginx.service
[Unit]
Description=nginx – high performance web server
Documentation=http://nginx.org/en/docs/
After=network.target

[Service]
Type=forking
LimitNOFILE=300000
PIDFile=/usr/local/openresty/nginx/logs/nginx.pid
ExecStartPre=/usr/local/openresty/nginx/sbin/nginx -t
ExecStart=/usr/local/openresty/nginx/sbin/nginx
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s QUIT $MAINPID
PrivateTmp=true

[Install]
WantedBy=multi-user.target

百度未收录

转载请注明:Kglan » CentOS 7 openresty Nginx 添加ssl 证书reload 不生效 缺少参数