您的位置:首页 > 运维架构 > Nginx

ubuntu 下安装nginx

2015-06-12 08:22 531 查看
y@y:~$ sudo apt-get install nginx


y@y:~$ sudo service nginx start
y@y:~$


nginx默认使用80端口,打开浏览器输入:http://localhost/

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:

sudo apt-add-repository ppa:nginx/stable

sudo apt-get update

sudo apt-get upgrade nginx -y
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: