Open2
Laravelメモ

Laravel環境の作り方
curl -s https://laravel.build/example-app?with=mysql | bash
cd example-app
./vendor/bin/sail up
リンク

使っているポート番号を調べたい時
sudo lsof -i -P -n
#結果
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
launchd 1 root 18u IPv4 0x9ae00e8d0bfeec46 0t0 UDP *:138
launchd 1 root 19u IPv4 0x57a43152b2366377 0t0 UDP *:137
launchd 1 root 26u IPv6 0xc7a2388c6a9164a5 0t0 TCP *:50051 (LISTEN)
launchd 1 root 39u IPv4 0x422b470578e8b156 0t0 TCP *:50051 (LISTEN)
Apacheのバージョンを確認する
httpd -v
#結果
Server version: Apache/2.4.62 (Unix)
Server built: Dec 13 2024 23:45:22
どこでhttpdを使っているか調べる
which httpd
#結果
/usr/sbin/httpd
httpdを止める
sudo apachectl stop