setup 命令中防火墙配置选项无法打开

故障提示

1.1 如何让setup 命令中防火墙配置生效

1.1.1 CentOS系统找不到setup命令工具的解决方法

yum -y install setuptool  
#安装setup命令工具

yum -y install ntsysv  
#安装setup工具配套的系统服务组件

yum -y install system-config-securitylevel-tui
#安装setup工具配套的防火墙配置组件

yum -y install system-config-network-tui
#安装setup工具配套的网络配置组件

yum -y install authconfig-gtk
#安装setup工具配套的验证配置组件

yum -y install system-config-keyboard
#安装setup工具配套的键盘配置组件

1.1.2 使用setup配置中的Firewall configuration出现的错误

Traceback (most recent call last):

  File "/usr/bin/system-config-firewall-tui", line 29, in <module>

    import fw_tui

  File "/usr/share/system-config-firewall/fw_tui.py", line 34, in <module>

    import fw_nm

  File "/usr/share/system-config-firewall/fw_nm.py", line 30, in <module>

    bus = dbus.SystemBus()

  File "/usr/lib/python2.6/site-packages/dbus/_dbus.py", line 202, in __new__

    private=private)

  File "/usr/lib/python2.6/site-packages/dbus/_dbus.py", line 108, in __new__

    bus = BusConnection.__new__(subclass, bus_type, mainloop=mainloop)

  File "/usr/lib/python2.6/site-packages/dbus/bus.py", line 125, in __new__

    bus = cls._new_for_bus(address_or_type, mainloop=mainloop)

dbus.exceptions.DBusException: org.freedesktop.DBus.Error.FileNotFound: Failed to connect to socket /var/run/dbus/system_bus_socket: No such file or directory

1.1.3 故障解决办法

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

推荐方法

dbus-daemon --system

1.1.4 yum 安装大礼包

 yum groupinstall "Base" "Debugging tools" "Compatibility libraries" "Development" -y

 

posted @ 2017-10-10 19:52  惨绿少年  阅读(2530)  评论(0编辑  收藏  举报