useradd -s /sbin/nologin -M wwwhtml
./configure --prefix=/application/nginx-1.10.2 --user=www --group=www --with-http_stub_status_module --with-http_ssl_modulenginx
make && make installvim
ln -s /application/nginx-1.10.2 /application/nginxapp
vim /application/nginx/conf/nginx.conf測試
server {server
listen 80;htm
server_name blog.xzy.org;blog
location / {ssl
root html;it
index index.html index.htm;
}
檢查配置文件
/application/nginx/sbin/nginx -t
啓動
/application/nginx/sbin/nginx
平滑重啓、關閉
/application/nginx/sbin/nginx -s reload | stop