Firewall
1 | firewall-cmd --state #check the firewall on centos 7 running state: |
more operations on centos 7 firewall:
https://www.cnblogs.com/heqiuyong/p/10460150.html
System service
create service config file.
1 | cd /etc/systemd/system |
edit below 2 files
./subtitlex.service
1 | [Unit] |
/root/subtitlex/sh/start_goapi.sh
1 | cd /home/elvin/subtitlex/goapi/ |
Continue to enable and start the service
1 | systemctl enable subtitlex.service |