在centOs(linux)上用vsftp配置的ftp服务,用户权限等设置完成之后,发现从客户端无法上传文件及创建文件夹。尝试着关闭防火墙,也没能解决。通过搜索,觉得是selinux这个服务造成的影响,关闭selinux服务之后,问题解决,vsftp的ftp服务使用正常了。
关闭selinux方法:修改/etc/selinux/config文件,修改为SELINUX=disabled。重启linux系统。
在centOs(linux)上用vsftp配置的ftp服务,用户权限等设置完成之后,发现从客户端无法上传文件及创建文件夹。尝试着关闭防火墙,也没能解决。通过搜索,觉得是selinux这个服务造成的影响,关闭selinux服务之后,问题解决,vsftp的ftp服务使用正常了。
关闭selinux方法:修改/etc/selinux/config文件,修改为SELINUX=disabled。重启linux系统。
在CentOS6.3下实践通过。
1.关闭防火墙
[root@CentOS ~]# chkconfig iptables off
2.关闭selinux
vi /etc/sysconfig/selinux
//将SELINUX=enforcing修改为disabled然后重启生效
问题描述:
[root@Centos ~]# yum install nginx
Loaded plugins: fastestmirror
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Repository contrib is listed more than once in the configuration
Loading mirror speeds from cached hostfile
* addons: mirror.bit.edu.cn
* base: mirrors.btte.net
* extras: mirrors.btte.net
* updates: mirror.bit.edu.cn
Setting up Install Process
No package nginx available.
Nothing to do
linux zip 命令详解
功能说明:压缩文件。
语 法:zip [-AcdDfFghjJKlLmoqrSTuvVwXyz$][-b <工作目录>][-ll][-n <字尾字符串>][-t <日期时间>][-<压缩效率>][压缩文件][文件…][-i <范本样式>][-x <范本样式>]
补充说明:zip是个使用广泛的压缩程序,文件经它压缩后会另外产生具有”.zip”扩展名的压缩文件。
伪静态是一种可以把文件后缀改成任何可能的一种方法,如果我想把php文件伪静态成html文件,这种相当简单的,下面我来介绍nginx 伪静态配置方法有需要了解的朋友可参考。
nginx里使用伪静态是直接在nginx.conf 中写规则的,并不需要像apache要开启写模块(mod_rewrite)才能进行伪静态。
nginx只需要打开nginx.conf配置文件,在server里面写需要的规则即可。
近期评论