nginx启动失败Failed to reload nginx.service: Unit not found.
1、在/etc/init.d/目录下编写脚本,名为nginx#!/bin/sh##nginx-thisscriptstartsandstopsthenginxdaemon##chkconfig:-8515#description:NginxisanHTTP(S)server,HTTP(S)reverse\#proxyandIMAP/POP3proxyserver#processname:nginx