Traceback (most recent call last): File "/usr/bin/firewall-cmd", line 24, in from gi.
如下:
[root@localhost conf]# firewall-cmd --query-port=8020/tcp
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 24, in <module>
from gi.repository import GObject
ImportError: No module named 'gi
其實當輸入 firewall-cmd 系列的命令的時候都會報錯
[root@localhost gi-1.2]# firewall-cmd --query-port=8020/tcp
Traceback (most recent call last):
File "/usr/bin/firewall-cmd", line 24, in <module>
from gi.repository import GObject
ImportError: No module named 'gi.repository'
此時應該啟動或者檢視centos7的防火牆:systemctl start firewalld
還會報如下錯
Job for firewalld.service failed because a timeout was exceeded.See "systemctl status firewalld.service" and "journalctl -xe" for details.
此時,看我的這篇部落格:點選開啟連結
相關文章
- Traceback (most recent call last):AST
- Traceback (most recent call last): File "AttributeError: 'NoneType' object has no attribute 'group'ASTErrorNoneObject
- 爬蟲中經常出現Traceback (most recent call last):問題解決!!!爬蟲AST
- 【jenkins】/usr/bin/env: php: No such file or directoryJenkinsPHP
- python升級帶來的yum異常:File "/usr/bin/yum", line 30Python
- /usr/bin/xauth: error in locking authority file錯誤Error
- mac下/usr/local/bin No such file or directory問題解決Mac
- linux中/bin和/sbin和/usr/bin和/usr/sbinLinux
- 【shell 】 test, /usr/bin/test, [ ], 和/usr/bin/[都是等價命令
- /usr/share/mysql/czech/errmsg.sys from *** conflicts with file from package **MySqlPackage
- /usr/bin/python與/usr/bin/env python的區別Python
- #!/usr/bin/env python與#!/usr/bin/python的區別Python
- Linux下/bin, /sbin, /usr/bin, /usr/sbin 等的區別Linux
- /bin、/sbin、/usr/bin、/usr/sbin、/usr/local/sbin放置可執行檔案的區別
- #!/usr/bin/env pythonPython
- /usr/bin和/usr/sbin有什麼區別
- python中#!/usr/bin/python與#!/usr/bin/env python的區別Python
- /usr/bin/ld: cannot find -lopenblas
- 安裝nodejs和grunt以後出現 /usr/bin/env: node: No such file or directoryNodeJS
- linux輸入yum後提示: -bash: /usr/bin/yum: No such file or directory的解決方案Linux
- -bash: /usr/local/bin/pod: /System/Library/Frameworks/Ruby.framework/Versions/2.0/usr/bin/ruby: b...Framework
- 解決 "last line of file ends without a newline" 警告的方法:使用 .editorconfigAST
- /usr/bin/ld: cannot find -lmysqlclient_rMySqlclient
- [Most.js] Create Streams From Single Values With Most.jsJS
- npm 安裝 bin/npm: line 1: ../lib/node_modules/npm/bin/npm-cli.js: No such file or directoryNPMJS
- Sub-process /usr/bin/dpkg returned an error codeError
- Php cli模式下執行報錯/usr/bin/php: /usr/local/lib/libxml2.so.2: no version information available (required by /usr/bin/php)PHP模式XMLORMAIUI
- You don't have write permissions for the /usr/bin directory.
- 安裝pods提示Operation not permitted usr bin xcodeprojMITXCode
- bundler安裝失敗,Operation not permitted - /usr/bin/***MIT
- innobackupex:Error:xtrabackup child process has died at /usr/bin/innobackupexError
- 一分鐘看懂頭部 shell #!/usr/bin 命令
- WSL:Sub-process /usr/bin/dpkg returned an error code (1)Error
- Authentication is required to run /usr/bin/x-terminal-emulator as rootUI
- /usr/bin/Xvnc: undefined symbol: pixman_composite_trapezoidsVNCUndefinedSymbol
- v$session中LAST_CALL_ET引數的理解SessionAST
- How To Search and Restore files from Site Collection Recycle BinREST
- Starting MySQL * Couldn't find MySQL server (/usr/bin/mysqld_safe)MySqlServer