Linux系统ls异常会影响网络服务重启操作

Linux系统ls异常会影响网络服务重启操作
[root@ACC-1 ~]# cd /bin
[root@ACC-1 bin]# ls
alsaunmute            env                 mkdir            sh
dumpkeys              ls                  rview            zcat
[root@ACC-1 bin]# file ls
ls: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.18, stripped
[root@ACC-1 bin]# whereis ls
ls: /bin/ls /usr/share/man/man1p/ls.1p.gz /usr/share/man/man1/ls.1.gz
[root@ACC-1 bin]# mv ls lls
[root@ACC-1 bin]# echo $PATH
/usr/lib64/qt-3.3/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
[root@ACC-1 bin]# ls
-bash: /bin/ls: 没有那个文件或目录
[root@ACC-1 bin]# service network restart
/etc/init.d/network: line 48: ls: command not found
/etc/init.d/network: line 48: ls: command not found
关闭环回接口:                                             [确定]
/etc/init.d/network: line 48: ls: command not found
弹出环回接口:                                             [确定]
[root@ACC-1 bin]# service sshd restart
停止 sshd:                                                [确定]
正在启动 sshd:                                            [确定]
[root@ACC-1 bin]# mv lls ls
[root@ACC-1 bin]# service network restart
正在关闭接口 bond0:                                       [确定]
正在关闭接口 eth2:                                        [确定]
关闭环回接口:                                             [确定]
弹出环回接口:                                             [确定]
弹出界面 bond0: Determining if ip address 168.192.11.31 is already in use for device bond0...
                                                           [确定]
弹出界面 eth2: Determining if ip address 168.192.13.31 is already in use for device eth2...
                                                           [确定]
[root@ACC-1 bin]# service sshd restart
停止 sshd:                                                [确定]
正在启动 sshd:                                            [确定]
[root@ACC-1 bin]#

来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/7970627/viewspace-2131468/,如需转载,请注明出处,否则将追究法律责任。

转载于:http://blog.itpub.net/7970627/viewspace-2131468/

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值