Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/mysql/56.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Mysql XAMPP、PROFTPD问题_Mysql_Xampp_Proftpd - Fatal编程技术网

Mysql XAMPP、PROFTPD问题

Mysql XAMPP、PROFTPD问题,mysql,xampp,proftpd,Mysql,Xampp,Proftpd,我已经在我的macOS Mojave上安装了XAMPP。当我运行这个命令“sudo/Applications/XAMPP/xamppfiles/XAMPP start”时 我发现以下错误: 正在为Mac OS X 7.2.10-0启动XAMPP。。。 XAMPP:启动Apache…好的。 XAMPP:启动MySQL…好的。 XAMPP:启动ProFTPD…失败。 “/Applications/XAMPP/xamppfiles/var/proftpd/start.err”的内容: Mudasars

我已经在我的macOS Mojave上安装了XAMPP。当我运行这个命令“sudo/Applications/XAMPP/xamppfiles/XAMPP start”时

我发现以下错误:

正在为Mac OS X 7.2.10-0启动XAMPP。。。 XAMPP:启动Apache…好的。 XAMPP:启动MySQL…好的。 XAMPP:启动ProFTPD…失败。 “/Applications/XAMPP/xamppfiles/var/proftpd/start.err”的内容: Mudasars-MacBook-Pro.local proftpd[4057]:警告:无法确定“Mudasars MacBook Pro.local”的IP地址 Mudasars-MacBook-Pro.local proftpd[4057]:错误:未配置有效的服务器 Mudasars-MacBook-Pro.local proftpd[4057]:致命:处理配置文件“/Applications/XAMPP/xamppfiles/etc/proftpd.conf”时出错

我的proftpd.conf文件:

# 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
#这是一个基本的ProFTPD配置文件(将其重命名为
#“proftpd.conf”供实际使用。它建立一个服务器
#和单个匿名登录。它假定您有一个用户/组
#“守护进程”和“ftp”用于正常操作和anon。
服务器名“ProFTPD”
服务器类型独立
默认服务器打开
#端口21是标准的FTP端口。
端口21
#Umask 022是一个很好的标准Umask,可以防止出现新的dir和文件
#从团体和世界的可写性。
乌马斯克022
#要防止DoS攻击,请设置子进程的最大数目
#到30。如果您需要允许30个以上的并发连接
#立即增加这个值。注意,这只起作用
#在独立模式下,在inetd模式下,您应该使用inetd服务器
#这允许您限制每个服务的最大进程数
#(如xinetd)
最大实例30
#设置服务器正常运行的用户和组。
用户守护进程
组管理员
#通常,我们希望文件是可覆盖的。
允许覆盖
#仅适用于web服务器内容
DefaultRoot/Applications/XAMPP/xamppfiles/htdocs
丹亚尔
#守护进程获取密码“xampp”
用户密码守护程序2TgxE8g184G9c
#守护进程不是普通用户,因此我们必须允许没有实际shell的用户
需要重新验证滚
#守护进程可能位于/etc/ftpusers中,因此我们也必须忽略此文件
#使用“OSX用户”登录
奥特帕姆
AuthPAMConfig ftpd
乌斯夫特普瑟斯
有人知道怎么解决这个问题吗

Thanx请尝试添加:

127.0.0.1  Mudasars-MacBook-Pro.local

请将/Applications/XAMPP/xamppfiles/etc/proftpd.conf内容添加到您的
/etc/hosts
文件中,然后重试。现在更新了问题哇,谢谢!但是为什么是Mudasars-MacBook-Pro.local而不是“localhost”?因为大多数服务都引用
hostname
命令和
Mudasars>命令的结果-MacBook Pro.local
您的计算机(主机)名是a ok thanx吗?您能告诉我如何通过终端访问这样的文件吗?->-rw-r--r--@,如果您能帮我解决这个问题,我将非常高兴=)这是另一个问题,请创建另一个SO问题和“共享”问题,或者检查其他类似的问题。i、 e:要找到您的Mac主机名,只需在终端中输入“hostname”