debian11设置开机启动程序

[1]
systemctl enable --now rc-local
查看状态
systemctl status rc-local.service

nano /etc/rc.local

[2]添加以下内容,exit 0 在末尾,表示退出。

cd /root/proxy
./proxy @configfile.txt
exit 0

[3]
chmod +x /etc/rc.local

2 thoughts on “debian11设置开机启动程序

Leave a Reply