ubuntu apache配置检测及重启 nginx配置检测及重启

apache 配置文件检测:sudo apachectl configtest
apache 重启:sudo service apache2 restart
nginx 配置文件检测:sudo nginx -t
nginx 重启:sudo nginx -s reload

原文地址:https://www.cnblogs.com/tyqing/p/11296628.html