1、https://www.cnblogs.com/whatmiss/p/7091220.html 配置开机启动nginx
2、sudo授权其它用户启动
(1)root用户编辑 visudo
root ALL=(ALL) ALL
elk ALL=(root) NOPASSWD:/etc/init.d/nginx,/usr/local/nginx/sbin/nginx
(2)切换用户启动nginx
[elk@test root]$ sudo /usr/local/nginx/sbin/nginx
[sudo] password for elk:
3、配置安装nginx
https://www.cnblogs.com/xiaoruilin/p/7782214.html