ubuntu /etc/rc.local下脚本不起作用

 时间:2024-10-13 16:38:21

1、原因是该系统使用的bash shell 更换成了dash shell。而/etc/rc.local脚本中用的正是/bin/sh。 所以错误。

2、将默认的shell改成bash的方法:在终端执行 sudo dpkg-reconfigure dash,然后选择 no (推荐)

3、sudo rm /bin/shsudo ln -s /bin/bash /bin/sh

  • linux内存使用情况查看(free)
  • WinSCP使用方法教程
  • oracle cmd设定用户密码永不过期
  • 图解Redis在Windows下的设置和配置成服务选项
  • 怎样在win7上远程连接linux系统
  • 热门搜索
    踢毽子能减肥吗 攻略蛇精病男主 空调扇怎么使用 红烧罗非鱼 经济性质怎么填 扫雷攻略 健身房能减肥吗 苏州攻略 三亚免税店攻略 幻世录1攻略