Nginx在Windows下的使用与配置

前往官网下载对应的windows版本 官网

下载后进入安装目录,启动命令行窗口,输入:

nignx -c conf\nginx.conf
则nginx服务器已经启动。

打开浏览器,在标题栏输入:

localhost127.0.0.1
则可以看到nginx启动成功的信息。

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 to nginx.org.
Commercial support is available at nginx.com.

Thank you for using nginx.

关闭nginx服务器,回到安装主目录,在命令行窗口有输入:

nginx -s stop
则可以关闭nginx服务器。

查看更多nginx信息,可以在命令行窗口中输入:

nginx -V
注意,是要大写的V。

关于配置,未完待续……

posted @ 2017-03-18 22:41  Brad1994  阅读(560)  评论(0编辑  收藏  举报