📌  相关文章
📜  在树莓派启动时运行 python 脚本 - Shell-Bash 代码示例

📅  最后修改于: 2022-03-11 14:51:26.011000             🧑  作者: Mango

代码示例2
sudo nano /etc/rc.local

# add command which you want to execute after bootup at the end of the file
# add "&" at the end if you are using an infinite looping code so that it wont block other commands
sudo python /home/pi/sample.py &
sudo http-server /home/pi/myFolder

# add exit 0 at the end 
exit 0