Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在一台amzn linux服务器上,经过一轮安装-清理-重新安装练习后,突然system Vservice命令不再起作用(例如:service docker start; service sendmail status, service cron stop)。它立即以退出代码 1 退出,没有执行任何操作,也没有记录任何内容。跑步/etc/init.d/docker start之类的工作。
service
service docker start
service sendmail status
service cron stop
/etc/init.d/docker start
问题是/etc/profile.d/lang.sh缺少脚本。我在某些时候清理得太严格了(我的意思是删除另一个脚本)。
/etc/profile.d/lang.sh
在脚本/sbin/service中,它们是 source /etc/init.d/functions,而后者又是 source /etc/profile.d/lang.sh,这是缺少的 - 出口 1 和沉默。
/sbin/service
/etc/init.d/functions