Saber2pr's Blog

NginxInstallationAndCommonCommands

  1. Installation
sodu su root
apt-get install nginx
  1. start
nginx # 等于下面
nginx -c /etc/nginx/nginx.conf # 从一个配置文件启动
  1. Refresh configuration
nginx -s reload