关闭防火墙命令 500 OOPS: cannot change directory:
生活随笔
收集整理的這篇文章主要介紹了
关闭防火墙命令 500 OOPS: cannot change directory:
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
關(guān)閉防火墻命令
(1) 重啟后永久性生效: ??
開(kāi)啟:chkconfig iptables on ??
關(guān)閉:chkconfig iptables off ??
(2) 即時(shí)生效,重啟后失效: ??
開(kāi)啟:service iptables start ??
關(guān)閉:service iptables stop?
(3)?開(kāi)放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)查看防火墻狀態(tài)
chkconfig iptables --list
----------------------------------------------
500 OOPS:cannot change directory ?兩種方法解決:
1、setsebool -P ftp_home_dir on 之后再運(yùn)service vsftpd restart
或 setsebool -P ftpd_disable_trans on 之后再運(yùn)service vsftpd restart 也行
2、關(guān)閉selinux
修改/etc/selinux/config文件或/etc/syscofnig/selinux設(shè)置SELINUX= disabled ,然后重啟
總結(jié)
以上是生活随笔為你收集整理的关闭防火墙命令 500 OOPS: cannot change directory:的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: Apache Hive on Apach
- 下一篇: centos 安装 redmine 2.