📅  最后修改于: 2022-03-11 14:51:26.011000             🧑  作者: Mango
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