系统自启动

系统自启动

 

echo "/bin/sh /root/crawl_script/dianping.sh" >> /etc/rc.local

 

 

sslocal 随系统启动

vim /etc/systemd/system/shadowsocks.service
[Unit]
Description=Shadowsocks Client Service
After=network.target

[Service]
Type=simple
User=root
ExecStart=/usr/bin/sslocal -c /home/xx/Software/ShadowsocksConfig/shadowsocks.json

[Install]
WantedBy=multi-user.target

systemctl enable /etc/systemd/system/shadowsocks.service

重启系统

 
posted @ 2018-02-28 09:59  yugengde  阅读(143)  评论(0)    收藏  举报