问下 nginx 的问题
安装完成后,nginx 默认就开启了 443 端口,导致 v2 的 443 无法使用,启动 v2 时,说 443 被占用了。
我记得之前默认 443 是不启用的啊。的网站配置文件里面只用了 80 端口啊。
虚拟机如下:
server {
listen 80;
server_name aaa;
root /var/www/aaa;
}
查看端口如下:
[email protected]:~# netstat -ntlp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 441/mysqld
tcp 0 0 127.0.0.1:11211 0.0.0.0:* LISTEN 29873/memcached
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 302/nginx: master p
tcp 0 0 127.0.0.1:25 0.0.0.0:* LISTEN 16140/exim4
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 302/nginx: master p
tcp6 0 0 ::1:25 :::* LISTEN 16140/exim4
tcp6 0 0 :::8066 :::* LISTEN 15009/xinetd
r
如何关闭默认的 443 ?