1指令 --/bin/sh 解决/etc/rc.local内脚本代码不运行
来源:互联网 发布:客户管理系统Java 编辑:程序博客网 时间:2024/06/05 14:50
Ubuntu的默认Shell是dash,而不是Bash!
$ ls -al /bin/sh
lrwxrwxrwx 1 root root 4 2010-10-03 23:42 /bin/sh -> dash
Ubuntu的wiki 里面有官方的解释 ,主要原因是dash更小,运行更快,且与POSIX兼容!
但目前存在的问题是,由于shell的更换,致使很多脚本出错,毕竟现在的很多脚本不是100%POSIX兼容。
解决方法就是将其默认的Shell更改为Bash:
方法一 :在终端执行 sudo dpkg-reconfigure dash ,然后选择 no (recommend) ;
方法二 :重新进行软链接
sudo rm /bin/sh
sudo ln -s /bin/bash /bin/sh
- 1指令 --/bin/sh 解决/etc/rc.local内脚本代码不运行
- 解决/etc/rc.local启动不执行
- 解决centos7 开机/etc/rc.local 不执行的问题
- 理解Linux系统/etc/init.d目录和/etc/rc.local脚本(开机运行)
- ubuntu下 rc.local的脚本不运行
- CentOS boot脚本 /etc/rc.d/rc.local
- /etc/rc.d/rc.local 自动加载linux 脚本
- 解决linux下/etc/rc.local开机器不执行的原因
- 解决linux下/etc/rc.local开机器不执行的原因。
- 解决linux下/etc/rc.local开机器不执行的原因
- linux启动后执行脚本(/etc/rc.local文件)
- linux中/etc/rc.local脚本的作用
- 开机启动服务chkconfig开机启动脚本/etc/rc.local
- /etc/rc.local 不执行的问题汇总
- centos7 开机/etc/rc.local 不执行的问题
- centos7 开机/etc/rc.local 不执行的问题
- centos7 开机/etc/rc.local 不执行的问题
- /etc/rc.local 不执行的问题汇总
- JPA复合主键使用
- Play AVI video using OpenCV 2.2
- 深入C++的new
- CString、char*之间的相互转换
- Activity切换效果(overridePendingTransition)
- 1指令 --/bin/sh 解决/etc/rc.local内脚本代码不运行
- Ant TSTAMP
- RichFaces 3.3.3 和 JSF 2.0
- 深入理解SP、LR和PC
- arm-none-linux-gnueabi-gcc: VERSION": No such file or directory
- linux服务器历险之linux性能监控
- 即将开始的Programming恶补
- About TMG/ISA log processing ...
- 获取数据库结构