This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
输入命令: | |
pi@raspberrypi ~ $ update-alternatives --config editor | |
有 4 个候选项可用于替换 editor (提供 /usr/bin/editor)。 | |
选择 路径 优先级 状态 | |
------------------------------------------------------------ | |
* 0 /bin/nano 40 自动模式 | |
1 /bin/ed -100 手动模式 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function jobrestart() | |
{ | |
if [ "$1" = "" ]; then | |
echo "请输入任务名称" | |
return | |
fi | |
sudo supervisorctl -c /data/code/supervisord.conf status | grep $1 | awk '{print $1 }' | xargs sudo supervisorctl -c /data/code/supervisord.conf restart | |
} | |
用法: |