请教军哥:lnmp重启后的代码
今天配置了SSL,用的阿里云免费证书,使用lnmp ssl add命令安装完证书后,重启lnmp出现如下代码:(请问代码代表什么意思?)lnmp restart
+-------------------------------------------+
| Manager for LNMP, Written by Licess |
+-------------------------------------------+
| https://lnmp.org |
+-------------------------------------------+
Stoping LNMP...
Stoping nginx... nginx: conflicting server name "www.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "*.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "www.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "*.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "www.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "*.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "www.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "*.wowuli.com" on 0.0.0.0:443, ignored
done
Shutting down MySQL. SUCCESS!
Gracefully shutting down php-fpm . done
Starting LNMP...
Starting nginx... nginx: conflicting server name "www.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "*.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "www.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "*.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "www.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "*.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "www.wowuli.com" on 0.0.0.0:443, ignored
nginx: conflicting server name "*.wowuli.com" on 0.0.0.0:443, ignored
done
Starting MySQL.. SUCCESS!
Starting php-fpmdone 你自己写的配置文件有问题
首先提示的域名添加了很多次
其次,listen上不要加ip,除非你所有的listen全改成按ip监听
贴出的信息有限,按目前信息只有这些,如果自己不大会写配置文件,直接lnmp vhost add 生成
回复 2# 的帖子
谢谢军哥,问题解决了。最初引起问题的原因是因为执行lnmp ssl add添加后不成功,反复执行了好多次,造成配置文件中多次写入server配置。
还有,我选择的是自己上传证书,结果每次填写完最后的证书和公钥路径后,配置都不成功,后来才发现是配置文件中的路径不对,这个你可以测试一下看看。我最后是把配置文件上传到了conf和conf/ssl两个目录下才解决了证书安装问题,后续重启就带来了我前面遇到的问题。
页:
[1]