标签:install vat ecs usr 安装nginx start 编译 emctl pid
当我们编译安装nginx服务后,可以用手执行启动脚本也可以作为服务的形式运行。
添加启动文件:vim /usr/lib/systemd/system/nginx.service
[Unit] Description=nginx After=network.target [Service] Type=forking PIDFile=/fs01/app/nginx/logs/nginx.pid ExecStart=/fs01/app/nginx/sbin/nginx ExecReload=/fs01/app/nginx/sbin/nginx -s reload ExecStop=/fs01/app/nginx/sbin/nginx -s stop PrivateTmp=true [Install] WantedBy=multi-user.target
启动命令:
systemctl start nginx
标签:install vat ecs usr 安装nginx start 编译 emctl pid
原文地址:https://www.cnblogs.com/Dev0ps/p/12000221.html