1、在命令列執行命令”php think run“時,回車后,反饋顯示
ThinkPHP Development server is started On http://127.0.0.1:8080/
You can exit with CTRL-C
Document root is: D:\php\thinkPHP_6\public
[Sun Jan 10 21:51:54 2021]] Failed to listen on 0.0.0.0:8000 (reason: ????
2、此時,說明tp6默認是使用8000埠,但我本機的8000埠被其它行程占用了,我們可以修改tp6的訪問埠,執行如下命令,將埠改為8080或者其他的未被占用的埠:
php think run -p 8080
3、命令執行后回傳如下內容,就說明埠修改成功,此時再打開瀏覽器輸入"http:/localhost:8080,就能正常訪問tp6的頁面了
ThinkPHP Development server is started On http://127.0.0.1:8080/
You can exit with CTRL-C
Document root is: D:\php\thinkPHP_6\public
[Sun Jan 10 21:59:57 2021]] 127.0.0.1:63685 [200]: /
[Sun Jan 10 22:01:14 2021] 127.0.0.1:63691 [200]: /favicon.ico
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/247171.html
標籤:其他
下一篇:Redis知識點本文就夠
