1. 程式人生 > >執行setup,報錯 -bash: setup: command not found

執行setup,報錯 -bash: setup: command not found

配置 xshell localhost 工具 host work ins lan uri

執行setup,報錯。

[root@localhost ~]# setup
-bash: setup: command not found

出現這個問題的是因為沒有安裝setuptool軟件

1.安裝setuptool

[root@localhost ~]# yum install setuptool -y

2.安裝系統服務管理

[root@localhost ~]# yum install ntsysv -y

3.安裝setup中的防火墻設置

[root@localhost ~]# yum  install system-config-securitylevel-tui -y

4.安裝setup中配套的網絡設置

[root@localhost ~]# yum install system-config-network-tui -y

5.安裝時區

[root@localhost ~]# yum  install system-config-date -y

6.安裝setup工具配套的

[root@localhost ~]# yum  install authconfig-gtk -y

7.安裝setup工具配套的鍵盤配置組件

[root@localhost ~]# yum  install system-config-keyboard -y

很好這回在輸入setup 就不會報錯了。

技術分享圖片

這個英文看著也不太舒服,哎,英文不好。那麽我們怎麽把英文改成中文呢。很簡單。

1.設置setup中文,設置好了重啟系統。

[root@localhost ~]# echo LANG="zh_CN.UTF-8" > /etc/sysconfig/i18n 

[root@localhost ~]# echo SUPPORTED="zh_CN.UTF-8:zh_CN:zh" >> /etc/sysconfig/i18n

[root@localhost ~]# echo SYSFONT="latarcyrheb-sun16" >> /etc/sysconfig/i18n

2.設置好了重啟系統。看修改成中文了。

技術分享圖片

3.如果用的是xshell也將編碼改為UTF-8

技術分享圖片

setup 命令中防火墻配置選項無法打開,出現下面錯誤

技術分享圖片

解決方法yum安裝system-config-firewall system-config-firewall-tui dbus eggdbus

yum install -y system-config-firewall system-config-firewall-tui dbus eggdbus && service messagebus start

執行setup,報錯 -bash: setup: command not found