Debian 10 设置nginx开机自启 Lison 2020-11-11 (Updated: 2023-11-16) linux debian, nginx 直接编辑 ~/.bashrc,加入以下代码: 12345678910SERVICE=’nginx’if pgrep $SERVICE > /dev/nullthenecho “$SERVICE service running, everything is fine”elseecho “$SERVICE is not running, starting”nginxecho “$SERVICE started”fi