LoginSignup
0
0

More than 5 years have passed since last update.

laravelでサーバーを立ち上げる方法(備忘録として)

Posted at

環境
laravel: 5.5
php: 7.1
Apache: 2.2
composer: 1.8

1、ipアドレスを調べる

$ ip a

ipアドレスが表示される

2、artizsanコマンドを入力

$ php artisan serve --host 192.168.33.10 --port 8000

hostの後ろにはipアドレスを、portの後ろには立ち上げるポート番号を入れる。

3、表示されるアドレスでアクセスすればOK

laravelを使っていないときの流れで

$ php -S 192.168.33.10:8000

と入力しないように注意。

0
0
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
0
0