Job for firewalld.service failed because a timeout was exceeded. See "systemctl status firewalld.ser
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 即可
看下圖
成功解決!!!
相關文章
- 執行systemctl status ssh返回“Failed to get properties: Connection timed out”AI
- Job for mysqld.service failed because the control process exited with error code...MySqlAIError
- Job for mysqld.service failed because the control process exited with error code錯誤解決MySqlAIError
- Centos httpd模組 Job for httpd.service failed because the control process exited with error code.CentOShttpdAIError
- 安裝MySQL出現Job for mysqld.service failed because the control process exited with error codeMySqlAIError
- PMON failed to acquire latch, see PMON dumpAIUI
- Mysql啟動報錯:Job for mysqld.service failed because the control process exited with error code.MySqlAIError
- Docker systemctl Failed to get D-Bus connectionDockerAI
- PMON failed to acquire latch, see PMON dump in alert logAIUI
- Check failed: status == CUDNN_STATUS_SUCCESS (4 vs. 0) CUDNN_STATUS_INTERNAL_ERRORAIDNNError
- 執行hadoop作業 No job jar file set. User classes may not be found. See Job orHadoopJAR
- 'PMON failed to acquire latch, see PMON dump' in Alert Log-976714.1AIUI
- Job 類中 $timeout 設定無效 ? - 已關閉
- iOS linker command failed with exit code 1 (use v to see invocation)iOSAI
- This application failed to start because it could not find or load the Qt platform plugin “windows“APPAIQTPlatformPluginWindows
- Application failed to start because it could not find or load the QT platform plugin “windows”APPAIQTPlatformPluginWindows
- solrcloud 報 HTTP Status 503 - Server is shutting down or failed to initializeSolrCloudHTTPServerAI
- JAR creation failed. See details for additional information解決方案大全JARAIORM
- 【故障處理】ORA-12545: Connect failed because target hostAI
- ORA-12545: Connect failed because target host or object does not existAIObject
- ORA-27300: OS system dependent operation:fork failed with statusAI
- iOS報錯:linker command failed with exit code 1 (use -v to see invocation)iOSAI
- ORA-27369: job of type EXECUTABLE failed with exit code: Permission deniedAI
- gitlab-runner之build failed with exit status 1問題分析GitlabUIAI
- RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED解決辦法ErrorDNNAI
- ORA-27300: OS system dependent operation:fork failed with status: 12AI
- ORA-27300: OS system dependent operation:fork failed with status: 11AI
- ORA-27300: OS system dependent operation:semget failed with status: 28 - 2AI
- ORA-27300: OS system dependent operation:semget failed with status: 28 - 1AI
- 記錄Windows failed fast startup with error status 0xC00000D4.WindowsAIASTError
- mongoengine.errors.OperationError: Update failed (BSON field ‘no_cursor_timeout‘ is an unknown fieldGoErrorAI
- 簡易的解決方式linker command failed with exit code 1 (use -v to see invocation)AI
- ios clang: error: linker command failed with exit code 1 (use -v to see invocation)解決方法iOSErrorAI
- 資料庫關閉Hang住,出現錯誤PMON failed to acquire latch, see PMON dump資料庫AIUI
- EBS: collect2: ld returned 1 exit status, Relink of module "FEMCCE" failed.AI
- VS中呼叫QT出現This application failed to start because it could not find or load the Qt platform pluginQTAPPAIPlatformPlugin
- 記一次ORA-12545: Connect failed because target host or object does not existAIObject
- Android Bugs——Error:java.lang.RuntimeException: Some file crunching failed, see logs for detailsAndroidErrorJavaExceptionAI