1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

XAMPP のProFTPD が起動しない。。mac

Last updated at Posted at 2022-06-05

初めに

つい最近MySQLDatabaseが起動しなくなりました、今度はProFTPDが起動しなくなりました。。。

正直、原因については理解できていないので、とりあえず直す一つの方法として参考にしてみてください。

解決方法

XAMPPアプリの「ServerEvents」を確認する。
今回でたエラー↓

2022-06-05 23:17:28,683 ~~~~~~~~~~~proftpd[0000]: warning: unable to determine IP address of '~~~~~~~~~~'
2022-06-05 23:17:28,683 ~~~~~~~~~~~proftpd[0000]: error: no valid servers configured
2022-06-05 23:17:28,684 ~~~~~~~~~~~proftpd[0000]: fatal: error processing configuration file '/Applications/XAMPP/xamppfiles/etc/proftpd.conf'

[手順1]自分のPCのIPアドレスを調べる

ターミナルに下記を記述。

ifconfig

en0の部分のinetの横に書いてある数字をコピー
下記コードの場合192.000.0.00の部分

en0: flags=0000<~~~~~~~~~~~~~~~~> mtu 0000
	options=0000<~~~~~~~~~~~~~>
	ether ~~~~~~~~~~~~~~~~~~~~~
	inet6 ~~~~~~~~~~~~~~~~~~~~~
	inet 192.000.0.00 netmask ~~~~~~~~~~ broadcast ~~~~~~~~~~~

[手順2] 設定ファイルに書き込み

1:ターミナルに下記を記述

sudo vi /../../private/etc/hosts

vimが起動します。
一番下に記述をするのですが、カーソールが使えないので注意です。

[vim操作方法]
キーボードの「K」で「上に移動」
キーボードの「J」で「下に移動」
キーボードの「L」で「右に移動」
キーボードの「H」で「左に移動」
キーボードの「I」で「書き込みモード」
キーボードの「esc」で「移動モード」

2:vimの一番下に「IPアドレス」と「PC名」を記述

//コピーしたIPアドレス    エラーに出ていたPC名
192.○○○.○○○.○ PC名

PC名はXAMPPの「ServerEvents」に出ていたエラーの、IP address ofから後ろの部分。

2022-06-05 23:17:28,683 ~~~~~~~~~~~proftpd[0000]: warning: unable to determine IP address of '~~~~~~~~~~'

最後に「esc」を押して、下記コマンドで、保存とvimの終了。

:wq

終わりに

参考になれば幸いです。

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?