关闭防火墙命令 500 OOPS: cannot change directory:
生活随笔
收集整理的這篇文章主要介紹了
关闭防火墙命令 500 OOPS: cannot change directory:
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
關閉防火墻命令
(1) 重啟后永久性生效: ??
開啟:chkconfig iptables on ??
關閉:chkconfig iptables off ??
(2) 即時生效,重啟后失效: ??
開啟:service iptables start ??
關閉:service iptables stop?
(3)?開放22端口
修改
iptables -I INPUT -p tcp --dport 22 -j ACCEPT
保存
/etc/rc.d/init.d/iptables save
重啟
service iptables restart
查看
/etc/init.d/iptables status
(4)查看防火墻狀態
chkconfig iptables --list
----------------------------------------------
500 OOPS:cannot change directory ?兩種方法解決:
1、setsebool -P ftp_home_dir on 之后再運service vsftpd restart
或 setsebool -P ftpd_disable_trans on 之后再運service vsftpd restart 也行
2、關閉selinux
修改/etc/selinux/config文件或/etc/syscofnig/selinux設置SELINUX= disabled ,然后重啟
總結
以上是生活随笔為你收集整理的关闭防火墙命令 500 OOPS: cannot change directory:的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Apache Hive on Apach
- 下一篇: centos 安装 redmine 2.