Linux教程網
Linux教程網
Linux教程網
您现在的位置: Linux教程網 >> UnixLinux >  >> Linux基礎 >> Linux技術

CentOS 6.5 常用命令整理

關閉防火牆

若需要立即停用 iptables,可執行停止服務命令;若要永久關閉,則需停用開機自啟。

service iptables stop
chkconfig iptables off
service iptables status

執行後可透過 status 確認防火牆是否已停止。

設定 core dump

若希望程式崩潰時產生 core 檔案,可先編輯使用者的 bash_profile,將 core 大小限制設為無限制,再重新載入設定。

vi ~/.bash_profile
ulimit -c unlimited
source ~/.bash_profile

此設定可協助後續除錯,但正式環境仍需搭配磁碟空間與安全策略使用。

Copyright © Linux教程網 All Rights Reserved