This commit is contained in:
BoHung Chiu 2023-01-05 19:51:39 +08:00
parent 47cd16fca2
commit 5e95523820
1 changed files with 2 additions and 0 deletions

View File

@ -136,7 +136,9 @@ if [[ ! -f /etc/init.d/nginx ]]; then
sudo wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/nginx.service -O /lib/systemd/system/nginx.service sudo wget http://gitlab.tp.rulingcom.com/erictyl/install_r45_on_ubuntu_1804lts_doc/-/raw/master/nginx.service -O /lib/systemd/system/nginx.service
sudo chown root:root /lib/systemd/system/nginx.service sudo chown root:root /lib/systemd/system/nginx.service
sudo chmod 644 /lib/systemd/system/nginx.service sudo chmod 644 /lib/systemd/system/nginx.service
sudo chmod +x /lib/systemd/system/nginx.service
sudo systemctl daemon-reload sudo systemctl daemon-reload
sudo systemctl unmask nginx
sudo systemctl enable nginx sudo systemctl enable nginx
fi fi
fi fi