歡迎來到Linux教程網
Linux教程網
Linux教程網
Linux教程網
Linux教程網 >> Linux基礎 >> Linux教程 >> CentOS setup命令安裝

CentOS setup命令安裝

日期:2017/2/28 16:03:44   编辑:Linux教程

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 ~]# yum whatprovides /usr/sbin/setup

Loaded plugins: fastestmirror

Loading mirror speeds from cached hostfile

* base: mirrors.163.com

* extras: mirrors.163.com

* updates: mirrors.163.com

setuptool-1.19.9-3.el6.x86_64 : A text mode system configuration tool

Repo : base

Matched from:

Filename : /usr/sbin/setup

setuptool-1.19.9-3.el6.x86_64 : A text mode system configuration tool

Repo : installed

Matched from:

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

Copyright © Linux教程網 All Rights Reserved