首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >XAMPP,PROFTPD问题

XAMPP,PROFTPD问题
EN

Stack Overflow用户
提问于 2018-10-01 08:54:15
回答 1查看 12.1K关注 0票数 5

我已经在我的macOS Mojave上安装了XAMPP。当im运行以下命令'sudo /Applications/XAMPP/xamppfiles/xampp‘时

我得到以下错误:

为Mac 7.2.10-0启动XAMPP .启动Apache...ok。启动MySQL...ok。启动ProFTPD...fail。"/Applications/XAMPP/xamppfiles/var/proftpd/start.err":Mudasars的内容-MacBook-Pro.local proftpd4057:警告:无法确定' Mudasars-MacBook-Pro.local‘的IP地址-MacBook-Pro.local proftpd4057: proftpd4057:没有有效的服务器配置Mudasars-Pro.local proftpd4057:致命:错误处理配置文件'/Applications/XAMPP/xamppfiles/etc/proftpd.conf’

我的proftpd.conf文件:

代码语言:javascript
复制
# 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
# "daemon" and "ftp" for normal operation and anon.

ServerName          "ProFTPD"
ServerType          standalone
DefaultServer           on

# 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

# 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 daemon
Group      admin

# Normally, we want files to be overwriteable.
<Directory /Applications/XAMPP/xamppfiles/htdocs/*>
  AllowOverwrite        on
</Directory>

# only for the web servers content
DefaultRoot /Applications/XAMPP/xamppfiles/htdocs

<Limit SITE_CHMOD>                                                                                                                                                         
  DenyAll                                                                                                                                                                  
</Limit>  

# daemon gets the password "xampp"
UserPassword daemon 2TgxE8g184G9c

# daemon is no normal user so we have to allow users with no real shell
RequireValidShell off

# daemon may be in /etc/ftpusers so we also have to ignore this file
#to login with "OSX Users"
AuthPAM on
AuthPAMConfig ftpd
UseFtpUsers off

有人知道怎么解决这个问题吗?

谢谢

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2018-10-01 09:14:01

请尽量添加:

代码语言:javascript
复制
127.0.0.1  Mudasars-MacBook-Pro.local

/etc/hosts文件中,然后重试。

票数 12
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/52587555

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档