您的位置:首页 > 运维架构 > Shell

执行setup,报错 -bash: setup: command not found

2018-02-20 09:36 447 查看
执行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 command not