项目自启动文件配置
1.将wms.service文件放在和wcs.service同目录下
2.更改wms.service文件的配置:
【being】 //服务器账户
【/home/being/wms】 // wms文件目录
User=being
Group=being
WorkingDirectory=/home/being/wms
ExecStart=/home/being/wms/wms
最后执行命令更改文件权限:
【/lib/systemd/system/wms.service 】 //wms.service的路径地址
sudo chown -R root:root /lib/systemd/system/wms.service
sudo chmod 755 /lib/systemd/system/wms.service