如何启动apache和nginx服务?

1.如何启动httpd服务
cat /usr/lib/systemd/system/httpd.service
内容为:
[Service]
Type=notify
EnvironmentFile=/etc/sysconfig/httpd
ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND //这里为启动方式
ExecReload=/usr/sbin/httpd $OPTIONS -k graceful
ExecStop=/bin/kill -WINCH ${MAINPID}

2.在ubuntu里如何启用nginx服务
dpcg -l | grep ngix //查看nginx相关软件包
dpcg -L nginx //查看nginx的安装地点

nginx -T //可以查看nginx的配置文件,直接是输出在终端

猜你喜欢

转载自blog.csdn.net/weixin_42917630/article/details/87931292