https://www.python100.com/html/4QC3I23RY91Y.html
重启nginx
/opt/lib/nginx/nginx-1.25.1/sbin/nginx -s reload
确认是否安装成功
yum list installed | grep "nginx"
1.启动nginx
cd /usr/local/nginx/sbin
./nginx
启动nginx
/opt/lib/nginx/nginx-1.25.1/conf/vhost/
/usr/local/nginx/sbin/nginx
/usr/local/nginx/sbin/nginx -s reload
查看nginx进程是否启动:
ps -ef | grep nginx
./nginx 启动nginx (华为O拉)
cd /opt/lib/nginx/nginx-1.25.1/sbin/
/opt/lib/nginx/nginx-1.25.1/sbin/nginx -s stop
/opt/lib/nginx/nginx-1.25.1/sbin/nginx
/opt/lib/nginx/nginx-1.25.1/sbin/nginx -s reload
通过端口查看nginx是否启动 (华为O拉)
ps -ef | grep nginx
netstat -lanp | grep "80"
授权问题
nginx: [emerg] cannot load certificate “/opt/lib/nginx/nginx-1.25.1/conf/ssl/hoswo-act-ht.rg1008.com_bundle.crt”: BIO_new_file() failed (SSL: error:02001002:system library:fopen:No such file or directory:fopen(‘/opt/lib/nginx/nginx-1.25.1/conf/ssl/hoswo-act-ht.rg1008.com_bundle.crt’,’r’) error:2006D080:BIO routines:BIO_new_file:no such file)
文档更新时间: 2024-02-25 07:35 作者:admin