Linux Redhat7 开机启动python脚本

cd /usr/lib/systemd/system
touch proxy.service

###################################################################
[Unit]
Description=proxy
After=multi-user.target

[Service]
Type=idle
ExecStart=/usr/bin/python /appvol/ProxyServer/proxyserver.py 11081
PrivateTmp=true

[Install]
WantedBy=multi-user.target
#####################################################################

systemctl enable proxy

systemctl start proxy

posted @ 2018-12-10 00:20  李欢欢  阅读(330)  评论(0编辑  收藏  举报