Help us understand the problem. What is going on with this article?

[個人用]MAMPでエラーが出た時の対処方法:Apacheの場合

MAMPが急にエラーを起こした時の対処方法を自分用に

エラー内容

Apache couldn't be started because port 番号 is in use by some other software.
「番号のポートがソフトウェアで使われているため起動できない」と書いてあったため、解決方法を残しておく。

※番号にはそれぞれ使用しているportの番号が書いてある。

手順

1.
terminalを開いてMAMPのbinまで移動する。

cd /Applications/MAMP/Library/bin/

2.
ポートの状態を確認する

sudo lsof -i -P | grep "LISTEN"

3.
自分のpasswordを入力

4.
ポートの状態が一覧で出るため、エラーの番号と同じ物を探す。

5.
同じ番号をコマンドで消していく

kill -9 〇〇〇〇

〇〇〇〇は該当する物を入れる

例)kill -9 74091

6.
MAMPを確認で終了

k4ng53000
HTML/CSS/JavaScript/PHP/C#/Ruby on Rails/WEBdesign/SEO/WordPress/art
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
ユーザーは見つかりませんでした