站长百科 | 数字化技能提升教程 数字化时代生存宝典
首页
数字化百科
电子书
▼
建站程序
开发
服务器
办公软件
开发教程
▼
服务器教程
软件使用教程
运营教程
热门电子书
▼
CSS教程
WordPress教程
导航
程序频道
推广频道
网赚频道
人物频道
网站程序
网页制作
云计算
服务器
CMS
论坛
网店
虚拟主机
cPanel
网址导航
WIKI使用导航
WIKI首页
热点词条
最新资讯
网站程序
站长人物
页面分类
使用帮助
编辑测试
创建条目
网站地图
站长百科导航
站长百科
主机侦探
IDCtalk云说
跨境电商导航
WordPress啦
站长专题
网站推广
网站程序
网站赚钱
虚拟主机
cPanel
网址导航专题
云计算
微博营销
虚拟主机管理系统
开放平台
WIKI程序与应用
美国十大主机
编辑“
CentOS/用ProFTPD构建FTP服务器
”(章节)
人物百科
|
营销百科
|
网赚百科
|
站长工具
|
网站程序
|
域名主机
|
互联网公司
|
分类索引
跳转至:
导航
、
搜索
警告:
您没有登录。如果您做出任意编辑,您的IP地址将会公开可见。如果您
登录
或
创建
一个账户,您的编辑将归属于您的用户名,且将享受其他好处。
反垃圾检查。
不要
加入这个!
==配置ProFTPD== 然后,通过修改相应配置文件配置ProFTPD。 <pre>[root@sample ~]# vi /etc/proftpd.conf ← 修改ProFTPD的配置文件 ServerType standalone ← 找到这一行,在行首添加“#” ↓ #ServerType standalone ← 变为此状态,不使用常驻模式 #ServerType inetd ← 找到这一行,去掉行首的“#” ↓ ServerType inetd ← 变为此状态,通过超级服务器来启动ProFTPD DefaultRoot ~ !adm ← 找到这一行,将“ !adm”改为“/public_html !wheel” ↓ DefaultRoot ~/public_html !wheel ← 变为此状态,使除wheel组用户的根目录为public_html 找到TLS设置的语句群,如下: # TLS # Explained at http://www.castaglia.org/proftpd/modules/mod_tls.html ---------------------------------------------------------------- #TLSEngine on #TLSRequired on #TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem #TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem #TLSCipherSuite ALL:!ADH:!DES #TLSOptions NoCertRequest #TLSVerifyClient off ##TLSRenegotiate ctrl 3600 data 512000 required off timeout 300 #TLSLog /var/log/proftpd/tls.log ---------------------------------------------------------------- ↓将以上水平线间部分的语句,每行行首的“#”都去掉,变为下面水平线间的状态: ---------------------------------------------------------------- TLSEngine on TLSRequired on ← 只允许TLS方式的连接(如果将on改为off,普通方式也被允许) TLSRSACertificateFile /usr/share/ssl/certs/proftpd.pem TLSRSACertificateKeyFile /usr/share/ssl/certs/proftpd.pem TLSCipherSuite ALL:!ADH:!DES TLSOptions NoCertRequest TLSVerifyClient off #TLSRenegotiate ctrl 3600 data 512000 required off timeout 300 TLSLog /var/log/proftpd/tls.log ---------------------------------------------------------------- 然后在配置文件的末尾填如下几行: ExtendedLog /var/log/proftpd/access.log WRITE,READ default ← 记录连接日志到相应日志文件 ExtendedLog /var/log/proftpd/auth.log AUTH auth ← 记录认证日志到相应日志文件 MasqueradeAddress digeast.no-ip.info ← 定义服务器域名 PassivePorts 50000 50030 ← 为PASV模式连接时指定端口号(1024以后存在的任意端口号)</pre> 然后,为服务器建立证书。 <pre>[root@sample ~]# cd /usr/share/ssl/certs ← 进入相应的目录 [root@sample certs]# make proftpd.pem ← 建立服务器证书 umask 77 ; \ PEM1=`/bin/mktemp /tmp/openssl.XXXXXX` ; \ PEM2=`/bin/mktemp /tmp/openssl.XXXXXX` ; \ /usr/bin/openssl req -newkey rsa:1024 -keyout $PEM1 -nodes -x509 -days 365 -out $PEM2 ; \ cat $PEM1 > proftpd.pem ; \ echo "" >> proftpd.pem ; \ cat $PEM2 >> proftpd.pem ; \ rm -f $PEM1 $PEM2 Generating a 1024 bit RSA private key .........++++++ ............++++++ writing new private key to '/tmp/openssl.sG3126' ----- You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [GB]:CN ← 输入国家简写 State or Province Name (full name) [Berkshire]:Hei Long Jiang ← 输入省份 Locality Name (eg, city) [Newbury]:Harbin ← 输入城市 Organization Name (eg, company) [My Company Ltd]:www.centospub.com ← 输入组织名(任意) Organizational Unit Name (eg, section) []: ← 直接回车跳过 Common Name (eg, your name or your server's hostname) []:www.centospub.com ← FTP服务器名反馈 Email Address []:yourname@yourserver.com ← 输入E-mail地址</pre>
摘要:
请注意,您对站长百科的所有贡献都可能被其他贡献者编辑,修改或删除。如果您不希望您的文字被任意修改和再散布,请不要提交。
您同时也要向我们保证您所提交的内容是您自己所作,或得自一个不受版权保护或相似自由的来源(参阅
Wordpress-mediawiki:版权
的细节)。
未经许可,请勿提交受版权保护的作品!
取消
编辑帮助
(在新窗口中打开)