打开服务配置路径
/usr/lib/systemd/system
2、新建一个服务 xxx.service
3、添加服务配置
![](https://img-blog.csdnimg.cn/img_convert/c5ed8de6531084d5aba3b1d880049501.png)
4、使服务生效:systemctl enable xxx.service
5、开启服务:systemctl start ygt_front.service
6、配置代理服务器nginx
打开代理配置文件路径
![](https://img-blog.csdnimg.cn/img_convert/5b020be7d15cbd32ff1651eba7611def.png)
7、添加代理配置
![](https://img-blog.csdnimg.cn/img_convert/f03574cbdec57583ee05d2e4578a5e78.png)
8、重启代理命令:systemctl restart nginx
打开服务配置路径
/usr/lib/systemd/system
2、新建一个服务 xxx.service
3、添加服务配置
4、使服务生效:systemctl enable xxx.service
5、开启服务:systemctl start ygt_front.service
6、配置代理服务器nginx
打开代理配置文件路径
7、添加代理配置
8、重启代理命令:systemctl restart nginx