- 积分
- 2
- 威望
-
- 金钱
-
- 注册时间
- 2016-9-7
- 在线时间
- 小时
- 最后登录
- 1970-1-1
|
![](static/image/common/ico_lz.png)
楼主 |
发表于 2016-9-11 01:45:11
|
显示全部楼层
回复 4# 的帖子
root@SusLinux:/usr/local/nginx/conf# /usr/local/nginx/sbin/nginx -t
nginx: the configuration file /usr/local/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /usr/local/nginx/conf/nginx.conf test is successful
root@SusLinux:/usr/local/nginx/conf# /etc/init.d/nginx reload
Reload service nginx... nginx is not running, can't reload.
root@SusLinux:/usr/local/nginx/conf#
root@SusLinux:/usr/local/nginx/conf# kill -HUP 'cat /usr/local/nginx/logs/nginx.pid'
bash: kill: cat /usr/local/nginx/logs/nginx.pid: arguments must be process or job IDs
怎么办 ,在vhost的conf 配置ssl证书
主要增加
listen 443;
ssl on;
ssl_certificate 1.crt;
ssl_certificate_key 2.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers "EECDH+AESGCM:EDH+AESGCM:AES256+EECDH:AES256+EDH";
ssl_prefer_server_ciphers on;
ssl_session_cache shared:SSL:10m;
重启nginx提示
Stoping nginx... nginx is not running.
Starting nginx... nginx: [emerg] listen() to 0.0.0.0:443, backlog 511 failed (98: Address already in use)
nginx: [emerg] listen() to 0.0.0.0:443, backlog 511 failed (98: Address already in use)
nginx: [emerg] listen() to 0.0.0.0:443, backlog 511 failed (98: Address already in use)
nginx: [emerg] listen() to 0.0.0.0:443, backlog 511 failed (98: Address already in use)
nginx: [emerg] listen() to 0.0.0.0:443, backlog 511 failed (98: Address already in use)
nginx: [emerg] still could not bind()
failed
[ 本帖最后由 susaccount 于 2016-9-11 01:46 编辑 ] |
|