新手FTP問題,等待高手指導!!!(轉)
新手FTP問題,等待高手指導!!!(轉)[@more@]我用的是紅旗LINUX 4.1,想配置一下FTP伺服器,可是總提示不能啟動,下面就是我FTP服務的程式碼
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "Ftp Default Server"
#ServerIdent on "FTP Server ready."
#ServerAdmin root@localhost
#Set the mode proftpd runs in
ServerType standalone
# Set the default server
DefaultServer on
#AccessGrantMsg "User %u logged in."
#Set the file to display on login
DisplayLogin .ftpmotd
#Set the file to display on quit
DisplayQuit .ftpgoaway
#Don't show welcome message until user has authenticated
DeferWelcome off
#allow root to login
RootLogin On
#Sets default chroot directory
DefaultRoot ~
# Use this to excude users from the chroot
DefaultChdir /
# Use pam to authenticate by default
AuthPAMAuthoritative on
# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off
# Sets the idle connection timeout,Setting TimeoutIdle to 0 disables the idle timer completely
TimeoutIdle 120
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Default to show dot files in directory listings
ListOptions "-a"
#Limits the connections per client machine
MaxClientsPerHost 10
# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on
# This is where we want to put the pid file
ScoreboardFile /var/proftpd.pid
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nobody
AllowOverwrite yes
AllowAll
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
AllowAll
DenyAll
#allow login from all ip address
Order Deny,Allow
Allow from all
# Limit the maximum number of anonymous logins
MaxClients 100 "Sorry, max %m users -- try again later"
# Logging options
TransferLog /var/log/proftpd/xferlog.regacy
# Some logging formats
LogFormat default "%h %l %u %t "%r" %s %b"
LogFormat auth "%v [%P] %h %t "%r" %s"
LogFormat write "%h %l %u %t "%r" %s %b"
# A basic anonymous configuration, no upload directories.
User ftp
Group ftp
UserAlias anonymous ftp
DirFakeUser on ftpadm
DirFakeGroup on ftpadm
AccessGrantMsg "Anonymous login ok, restrictions apply."
# Put the user into / right after login
DefaultChdir /
DisplayLogin /.ftpmotd
DisplayQuit /.ftpgoaway
DisplayReadme README*
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
AllowAll
DenyAll
# An upload directory that allows storing files but not retrieving
# or creating directories.
AllowOverwrite no
DenyAll
AllowAll
Order Deny,Allow
Allow from all
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
# Loggin for the anonymous transfers
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
ServerName "mp3"
Port 21
DisplayLogin .ftpmotd
DisplayQuit .ftpgoaway
MaxClients 100 "Sorry, max %m users -- try again later"
MaxClientsPerHost 10
DefaultRoot /root/mp3
AllowAll
DenyAll
Order Deny,Allow
Allow from all
User ftp
Group ftp
UserAlias anonymous ftp
dirFakeUser on ftpadm
dirFakeGroup on ftpadm
DisplayLogin .ftpmotd
DisplayQuit .ftpgoaway
AllowAll
DenyAll
報錯資訊為:
- getaddrinfo 'heaton.localdomain' error: Name or service not known
- error: unable to determine IP address of 'heaton.localdomain'
- getaddrinfo 'heaton.localdomain' error: Name or service not known
- error: unable to determine IP address of 'heaton.localdomain'
請高手們不吝賜教!!!小弟謝謝拉
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "Ftp Default Server"
#ServerIdent on "FTP Server ready."
#ServerAdmin root@localhost
#Set the mode proftpd runs in
ServerType standalone
# Set the default server
DefaultServer on
#AccessGrantMsg "User %u logged in."
#Set the file to display on login
DisplayLogin .ftpmotd
#Set the file to display on quit
DisplayQuit .ftpgoaway
#Don't show welcome message until user has authenticated
DeferWelcome off
#allow root to login
RootLogin On
#Sets default chroot directory
DefaultRoot ~
# Use this to excude users from the chroot
DefaultChdir /
# Use pam to authenticate by default
AuthPAMAuthoritative on
# Do not perform ident nor DNS lookups (hangs when the port is filtered)
IdentLookups off
UseReverseDNS off
# Sets the idle connection timeout,Setting TimeoutIdle to 0 disables the idle timer completely
TimeoutIdle 120
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# Default to show dot files in directory listings
ListOptions "-a"
#Limits the connections per client machine
MaxClientsPerHost 10
# Allow to resume not only the downloads but the uploads too
AllowRetrieveRestart on
AllowStoreRestart on
# This is where we want to put the pid file
ScoreboardFile /var/proftpd.pid
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
# at once, simply increase this value. Note that this ONLY works
# in standalone mode, in inetd mode you should use an inetd server
# that allows you to limit maximum number of processes per service
# (such as xinetd).
MaxInstances 30
# Set the user and group that the server normally runs at.
User nobody
Group nobody
AllowOverwrite yes
AllowAll
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
AllowAll
DenyAll
#allow login from all ip address
Order Deny,Allow
Allow from all
# Limit the maximum number of anonymous logins
MaxClients 100 "Sorry, max %m users -- try again later"
# Logging options
TransferLog /var/log/proftpd/xferlog.regacy
# Some logging formats
LogFormat default "%h %l %u %t "%r" %s %b"
LogFormat auth "%v [%P] %h %t "%r" %s"
LogFormat write "%h %l %u %t "%r" %s %b"
# A basic anonymous configuration, no upload directories.
User ftp
Group ftp
UserAlias anonymous ftp
DirFakeUser on ftpadm
DirFakeGroup on ftpadm
AccessGrantMsg "Anonymous login ok, restrictions apply."
# Put the user into / right after login
DefaultChdir /
DisplayLogin /.ftpmotd
DisplayQuit /.ftpgoaway
DisplayReadme README*
# Limit WRITE everywhere in the anonymous chroot, allow READ everywhere
AllowAll
DenyAll
# An upload directory that allows storing files but not retrieving
# or creating directories.
AllowOverwrite no
DenyAll
AllowAll
Order Deny,Allow
Allow from all
# Don't write anonymous accesses to the system wtmp file (good idea!)
WtmpLog off
# Loggin for the anonymous transfers
ExtendedLog /var/log/proftpd/access.log WRITE,READ default
ExtendedLog /var/log/proftpd/auth.log AUTH auth
ServerName "mp3"
Port 21
DisplayLogin .ftpmotd
DisplayQuit .ftpgoaway
MaxClients 100 "Sorry, max %m users -- try again later"
MaxClientsPerHost 10
DefaultRoot /root/mp3
AllowAll
DenyAll
Order Deny,Allow
Allow from all
User ftp
Group ftp
UserAlias anonymous ftp
dirFakeUser on ftpadm
dirFakeGroup on ftpadm
DisplayLogin .ftpmotd
DisplayQuit .ftpgoaway
AllowAll
DenyAll
報錯資訊為:
- getaddrinfo 'heaton.localdomain' error: Name or service not known
- error: unable to determine IP address of 'heaton.localdomain'
- getaddrinfo 'heaton.localdomain' error: Name or service not known
- error: unable to determine IP address of 'heaton.localdomain'
請高手們不吝賜教!!!小弟謝謝拉
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/10617542/viewspace-944580/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- javascript--陣列的方法(新手指導)JavaScript陣列
- github新手指南Github
- 新手指南基礎學
- [轉帖]JFR 定位因為 SSL 導致 CPU Load 飈高的問題
- 【譯】理解JavaScript閉包——新手指南JavaScript
- 檢測ftp連線問題FTP
- [譯] 快速原型設計的新手指南原型
- tempdb大量閂鎖等待問題分析
- 用 Swift 實現通知推送的新手指南Swift
- web攻擊日誌分析之新手指南Web
- 深度學習框架新手快速上手指南深度學習框架
- ORACLE 資料庫11.2.0.4 單例項伺服器IO等待高問題分析Oracle資料庫單例伺服器
- MySQL鎖等待與死鎖問題分析MySql
- 【譯】一份關於npm的新手指南NPM
- 美洽線上客服系統的新手指南
- 如何解決bootstrap導航條不跳轉的問題boot
- 《Flutter快速上手指南》先導篇Flutter
- 手把手指導您使用 GitGit
- 新手大資料必問十個問題大資料
- iptables 重啟後ftp 策略失效的問題FTP
- Seata 全域性鎖等待超時 問題排查
- 新手指南: 手把手教你安裝 Ubuntu 和 FedoraUbuntu
- 移動測試新手指引--ADB 連線裝置
- 【Mac新手指南】:Mac電腦要如何快速鎖屏Mac
- 新手入門 Golang 常見問題Golang
- ssh登入慢,等待時間長的問題
- 寶塔 ftp訪問不了的問題 filezilla訪問不了Purefpt服務FTP
- Latch free等待事件(轉)事件
- 【新手指南】Android Studio中應用App的相關配置AndroidAPP
- MySQL:一次timestamp時區轉換導致的問題MySql
- 關於 iconv 轉碼導致資料丟失的問題
- rocketmq常見問題及使用 新手篇MQ
- 解決new Thread().Start導致高併發CPU 100%的問題thread
- 解決 ALL MIRROR URLS ARE NOT USING FTP, HTTP[S] OR FILE 問題FTPHTTP
- Mysql DDL出現長時間等待MDL問題分析MySql
- 由select for update鎖等待問題引發的深入思考
- C# UDP通訊 ReceiveAsync() 一直等待問題C#UDP
- 錢包開發技術新手指南,打破技術壁壘
- 【新手指引】如何使用 Vscode 配置開發與除錯環境VSCode除錯