windows下nginx启动一闪而过(端口占用导致win7下无法启动nginx服务器的解决方案)

这是80端口被占用的缘故,修改下端口即可。

文件conf/nginx.conf

    server {
        listen       8888;
        server_name  localhost;

        #charset koi8-r;

        #access_log  logs/host.access.log  main;

        location / {
            root   html;
            index  index.html index.htm;
        }

 

在浏览器中输入127.0.0.1:8888看到下面页面即说明成功。

Welcome to nginx!

If you see this page, the nginx web server is successfully installed and working. Further configuration is required.

For online documentation and support please refer tonginx.org.
Commercial support is available atnginx.com.

Thank you for using nginx.

 

 

参考:http://www.2cto.com/os/201204/125890.html

http://www.360doc.com/content/12/0615/23/15643_218433480.shtml

 

你可能感兴趣的:(nginx,架构,工具使用)