ubuntu 下安装nginx

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:

  1. sudo apt-add-repository ppa:nginx/stable
  2. sudo apt-get update
  3. sudo apt-get upgrade nginx -y
上一篇:Ubuntu下安装nginx及使用


下一篇:zabbix出现中文不能选的情况