2024-05-14 17:26:00 +08:00
|
|
|
[Unit]
|
2024-06-14 22:12:00 +08:00
|
|
|
Description=Nginx
|
|
|
|
Documentation=https://nginx.org
|
|
|
|
After=network-online.target firewalld.service
|
|
|
|
Wants=network-online.target
|
2024-05-14 17:26:00 +08:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=forking
|
2024-06-14 22:12:00 +08:00
|
|
|
Group=root
|
2024-05-14 17:26:00 +08:00
|
|
|
User=root
|
|
|
|
ExecStart=/opt/nginx/1.26.0/sbin/nginx
|
|
|
|
Restart=always
|
2024-06-14 22:12:00 +08:00
|
|
|
PrivateTmp=true
|
2024-05-14 17:26:00 +08:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|