阿里云ESC配置Nginx

参考博客:

  1. Ubuntu14.04安装nginx稳定版本步骤
  2. ubuntu14.04下安装nginx

遇到的错误:

  1. nginx error while loading shared libraries: libpcre.so.1:
  2. The program ‘nginx’ can be found in the following packages:
    * nginx-extras
    * nginx-full
    * nginx-light
    Try: apt-get install
  3. Nginx bind() to 0.0.0.0:80 failed (98: Address already in use)
    可能是tomcat占用了80端口,关闭即可

Nginx启动与关闭:

  1. 启动:/usr/local/nginx/sbin/nginx
  2. 关闭:/usr/local/nginx/sbin/nginx -s stop

你可能感兴趣的:(阿里云ESC配置Nginx)