以下のコードをターミナルで実行するとポート開放できます。
[root@localhost httpd]$sudo firewall-cmd --zone=public --add-port=開放したいポート番号/tcp --permanent
success
[root@localhost httpd]$sudo firewall-cmd --reload
success
[root@localhost httpd]$
下記を実行すると開放したポートでプロジェクトを起動できます。
[root@localhost httpd]$ php artisan serve --host=IPアドレス --port=開放したポート番号
※常時起動時
[root@localhost httpd]$ php artisan serve --host=IPアドレス --port=開放したポート番号 &
Comments
Let's comment your feelings that are more than good