我正在使用 Raspbian(基于 Debian)操作系统开发 Raspberry Pi。为了测试,我在/etc/rc.local:
python /home/pi/test.py
Run Code Online (Sandbox Code Playgroud)
启动此脚本运行良好。但问题是我忘记了脚本中有一个无限循环,例如:
while True:
print 'Hello"
time.sleep(5)
Run Code Online (Sandbox Code Playgroud)
这个循环阻塞了系统启动,所以我无法进入系统编辑脚本。Ctrl+C 无法杀死它。所以我想知道如何杀死一个从 开始的连续进程rc.local?