CentOS : setup: command not found
CentOS 6.0如果minimal install,也就是最小化安装,当你想运行setup命令配置IP时,你会发现报错:
-bash: setup: command not found
我直接用ifconfig和route命令添加了IP和路由,测试可以ping通外网了。
GoFace曾经向大家介绍过解决方法,,新手可以了解一下。
你的第一反应是yum install setup,会提供Nothing to do。思路如下:
[root@localhost~]#yumwhatprovides/usr/sbin/setup
Loadedplugins:fastestmirror
Loadingmirrorspeedsfromcachedhostfile
*base:mirrors.163.com
*extras:mirrors.163.com
*updates:mirrors.163.com
setuptool-1.19.9-3.el6.x86_64:Atextmodesystemconfigurationtool
Repo:base
Matchedfrom:
Filename:/usr/sbin/setup
setuptool-1.19.9-3.el6.x86_64:Atextmodesystemconfigurationtool
Repo:installed
Matchedfrom:
Other:Provides-match:/usr/sbin/setup
#yum install setuptool
这时测试可以使用setup命令了。
[root@localhost~]#rpm-qf/usr/sbin/setup
setuptool-1.19.9-3.el6.x86_64
将会错过更好的风景,保持一份平和,保持一份清醒。