PureFTP安装配置

PureFTP+Mysql验证 FTP的原理 21端口开放,用于连接。20端口用于传输数据! 匿名用户 anonymous 主动模式和被动模式 主动模式是客户端主动,例如用1030端口连接21,再开放1031和20端口传输数据,但是如果有防火墙的话,无法主动传输,服务器会打开大于1024端口并且通过客户端进行连接 tar -xjvf pure-ftpd-1.0.22.tar.bz2 ./configure –prefix=/usr/local/pureftpd –with-mysql=/usr/local/mysql –with-paranoidmsg –with-shadow –with-welcomemsg –with-uploadscript –with-quotas –with-cookie –with-virtualhosts –with-virtualroot –with-diraliases –with-sysquotas –with-ratios –with-ftpwho –with-throttling –with-language=simplified-chinese –with-mysql=/usr/local/mysql \ 此处的 /usr/local/mysql 请改为你的mysql实际安装路径.如果出现类似configure: error: Your MySQL client libraries aren’t properly installed 的错误,请将mysql目录下的 include/mysql下的mysql.h文件以及lib/mysql下的全部文件,连接(直接复制过去或许也可)到 /usr/lib 目录下(参考) cp /usr/local/mysql/lib/libmysqlclent* /usr/lib(真正解决办法) ##运行 ldconfig,加载所有共享链接库 cp -a ftp /var/www/html/pureftp make && [Read More →]

Posted in linux. 评论暂缺 »

CentOS x64 里php 源码编译出错参见情况及解决办法

configure: error: xml2-config not found. Please check your libxml2 installation. yum install libxml2-devel.x86_64 configure: error: Cannot find OpenSSL’s yum install openssl-devel.x86_64 configure: error: Could not find pcre.h in /usr/local yum install pcre-devel.x86_64 configure: error: Could not find pcre.h in /usr/local “–with-pcre-regex=/usr/include” \ configure: error: Could not find libpcre.(a|so) in /usr/include “–with-pcre-regex=/usr” \ configure: error: Please [Read More →]

Posted in lamp, php. 评论暂缺 »