我有一个Ubuntu服务器14.04 VPS,目前正在使用apache2提供静态网站服务。我正在切换到nginx来提供几个nodejs站点的服务。
我安装了nginx。
$ nginx -v
nginx version: nginx/1.4.6 (Ubuntu)
我正在使用默认配置
$ sudo nginx -t
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful
我确认Apache2未运行,导致问题出现。
$ sudo service apache2 status
* apache2 is not running
我启动 Nginx 并确认其状态。
$ sudo service nginx status
* nginx is running
但是即使运行sudo netstat -natp
和sudo fuser 80/tcp
也没有任何输出。
我已经在/etc/nginx/sites-available/mydomain.tld中配置了我的站点,然后将其链接到sites-enabled文件夹。
仍然没有任何输出。