centos7:塔建pure_ftpd虚拟用户
生活随笔
收集整理的這篇文章主要介紹了
centos7:塔建pure_ftpd虚拟用户
小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.
2019獨(dú)角獸企業(yè)重金招聘Python工程師標(biāo)準(zhǔn)>>>
1.下載pure_ftpd,上傳服務(wù)器,目錄路徑:/usr/local/src/
下載地址:https://pan.baidu.com/s/1kWe8FAn2.安裝pure_ftpd
cd /usr/local/srctar -xjf pure-ftpd-1.0.36.tar.bz2cd pure-ftpd-1.0.36./configure --prefix=/usr/local/pure-ftpd CFLAGS=-O2 --with-puredb --with-quotas --with-cookie --with-virtualhosts --with-diraliases --with-sysquotas --with-ratios --with-altlog --with-paranoidmsg --with-shadow --with-welcomemsg --with-throttling --with-uploadscript --with-language=english --with-rfc2640make && make installmkdir /usr/local/pure-ftpd/etccp configuration-file/pure-ftpd.conf /usr/local/pure-ftpd/etc/cp configuration-file/pure-config.pl /usr/local/pure-ftpd/sbin/chmod 755 /usr/local/pure-ftpd/sbin/pure-config.plcd /usr/local/bin/ln -s /usr/local/pure-ftpd/bin/* .ln -s /usr/local/pure-ftpd/sbin/* /usr/local/sbin/ln -s /usr/local/pure-ftpd/man/man8/* /usr/local/share/man/man8/pure-config.pl /usr/local/pure-ftpd/etc/pure-ftpd.confgroupadd ftpgroupuseradd -g ftpgroup -d /dev/null -s /etc ftpuserpure-pw useradd testuser -u ftpuser -d /data/wwwroot/testuser/# 如果添加完成以后想要?jiǎng)h除可以使用pure-pw userdel admintestnew這條指令 # 想要修改密碼可以使用pure-pw passwd admintestnew這條指令 # 查看用戶信息 pure-pw show testuser# 生成數(shù)據(jù)庫(kù)文件 pure-pw mkdb# 打開配置文件 vi /usr/local/pure-ftpd/etc/pure-ftpd.conf# 重新生成數(shù)據(jù)庫(kù)文件 pure-pw mkdb# 先把之前的pureftp服務(wù)kill掉 killall pure-ftpd# 然后重新啟動(dòng) /usr/local/pure-ftpd/sbin/pure-config.pl /usr/local/pure-ftpd/etc/pure-ftpd.conf?
?
?
?
轉(zhuǎn)載于:https://my.oschina.net/u/3223370/blog/1609541
創(chuàng)作挑戰(zhàn)賽新人創(chuàng)作獎(jiǎng)勵(lì)來(lái)咯,堅(jiān)持創(chuàng)作打卡瓜分現(xiàn)金大獎(jiǎng)總結(jié)
以上是生活随笔為你收集整理的centos7:塔建pure_ftpd虚拟用户的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。
- 上一篇: 窄带物联网(NB-IoT)初步了解
- 下一篇: ELK 日志处理开发指南