Job for firewalld.service failed because a timeout was exceeded. See "systemctl status firewalld.ser
来源:互联网 发布:欧洲中世纪知乎 编辑:程序博客网 时间:2024/06/07 14:53
centos7.3输入所有有关 firewall-cmd 命令将会出现
Job for firewalld.service failed because a timeout was exceeded.See "systemctl status firewalld.service" and "journalctl -xe" for details.
的错误
原因:centos7 里面装了Python2.7 和 Python(其他) 两个版本,执行firewall-cmd 系列的命令的时候回运行Python文件结果Python文件的头 #!/usr/bin/python
都不会再python2.7 里面运行,
===================================
顺便说一句,出现ImportError: No module named ....这种错误的时候,
第一检查出错的文件的头,是不是系统默认的Python,一般centos默认Python2.7,不是的话改成#!/usr/bin/python2.7。
第二,用pip安装相应的模块
===================================
解决办法:
1) 命令窗口输入
sudo systemctl status firewalld.service
得到
● firewalld.service - firewalld - dynamic firewall daemon
Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled)
Active: failed (Result: timeout) since Sat 2017-02-18 19:36:21 PST; 34min ago
Docs: man:firewalld(1)
Process: 9677 ExecStart=/usr/sbin/firewalld --nofork --nopid $FIREWALLD_ARGS (code=exited, status=0/SUC
Main PID: 9677 (code=exited, status=0/SUCCESS)
Feb 18 19:34:49 Reksio systemd[1]: Starting firewalld - dynamic firewall daemon...
Feb 18 19:36:19 Reksio systemd[1]: firewalld.service: Start operation timed out. Terminating.
Feb 18 19:36:21 Reksio systemd[1]: Failed to start firewalld - dynamic firewall daemon.
Feb 18 19:36:21 Reksio systemd[1]: firewalld.service: Unit entered failed state.
Feb 18 19:36:21 Reksio systemd[1]: firewalld.service: Failed with result 'timeout'
2) 再输入
sudo /usr/sbin/firewalld --nofork --nopid --debug 10
即可找到 debug
3)编辑: vim /usr/sbin/firewalld 将头改为 2.7 即可
看下图
成功解决!!!
- Job for firewalld.service failed because a timeout was exceeded. See "systemctl status firewalld.ser
- Job for postfix.service failed. See 'systemctl status postfix.service' and 'journalctl -xn' for deta
- Job for nginx.service failed because the control process exited with error code. See "systemctl stat
- Job for postfix.service failed because the control process exited with error code. See "systemctl st
- Job for php-fpm.service failed because the control process exited with error code. See "systemctl st
- 解决Job for docker.service failed because the control process exited with error code. See "systemctl s
- 执行 systemctl start firewalld 命令后出现Failed to start firewalld.service: Unit is masked
- 启动apache服务出现Job failed. See system logs and 'systemctl status' for details.
- CentOS7报: Restarting network (via systemctl): Job for network.service failed because the control pr
- Failed to start firewalld.service: Unit firewalld.service is masked
- 关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
- 关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
- 关于vsftp出现Restarting vsftpd (via systemctl): Job for vsftpd.service failed because the control 的解决办法
- centos7的一些变化,firewalld替换iptables、systemctl 替换service
- CentOS 7:firewalld启动不了 提示 Active: failed (Result: timeout)
- FirewallD
- Firewalld
- firewalld
- Mysql优化方案
- 23种设计模式(8):观察者模式
- 《R语言实战——机器学习与数据分析》读书笔记
- 前端面试中常见的数据结构题
- ActiveMQ入门和实例
- Job for firewalld.service failed because a timeout was exceeded. See "systemctl status firewalld.ser
- 判断网络
- 数据库表的设计规范
- web.xml
- QGC的MissionItem的Vehicleinfo
- Windows下Sphinx的安装及一些简单配置
- AndroidStudio 调试时部分断点不停
- sql索引见解
- C#学习回顾笔记三:变量是什么,变量有什么作用