apache-httpd下httpd.service配置

apache-httpd安装httpd.service配置

编辑这个文件
vi /usr/lib/systemd/system/httpd.service
写入如下配置
[Unit]
Description=The Apache HTTP Server
After=network.target

[Service]
Environment=LANG=C

Type=forking

ExecStartPre=/opt/apache2/bin/httpd  -f /opt/apache2/etc/httpd.conf -k start
ExecStart=/opt/apache2/bin/httpd  -f /opt/apache2/etc/httpd.conf -k start
ExecReload=/opt/apache2/bin/httpd  -f /opt/apache2/etc/httpd.conf -k restart
ExecStop=/opt/apache2/bin/httpd  -f /opt/apache2/etc/httpd.conf -k stop
PrivateTmp=true

[Install]
WantedBy=multi-user.target

重启生效

systemctl daemon-reload
systemctl restart httpd

给TA打赏
共{{data.count}}人
人已打赏
其他工具

nginx配置HTTP强制HTTPS参考

2021-5-14 14:52:42

k8s容器

k8s给节点打标签命令

2020-3-12 12:44:44

个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索