課程
/后端開發
/ThinkPHP
/快速入門ThinkPHP 5.0--基礎篇
如果通過phpstudy,該怎么操作呢
2019-03-12
源自:快速入門ThinkPHP 5.0--基礎篇 2-2
正在回答
不用 樓上說的那么麻煩? 添加站點指定到public? 目錄 然后更改host文件 添加和你一樣的站點域名 最后進行訪問就可以
先設置一個自己的站點指向thinkphp/public
然后打開hosts,把自己的站點加進去。如果hosts為空,就把下面的代碼復制進去,改好自己的域名就行了。
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
# For example:
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
127.0.0.1 www.gohosts.com
找個視頻看看,一般就設置域名管理和host就夠了
舉報
ThinkPHP5已發布多時,想了解ThinkPHP5的新特性嗎?老司機帶你馬上出發~
3 回答phpstudy該怎么訪問
3 回答怎么通過wamp使用thinkPHP5
1 回答phpstudy 怎么運行這個think php
1 回答phpstudy怎樣安裝tp5
3 回答phpstudy
Copyright ? 2025 imooc.com All Rights Reserved | 京ICP備12003892號-11 京公網安備11010802030151號
購課補貼聯系客服咨詢優惠詳情
慕課網APP您的移動學習伙伴
掃描二維碼關注慕課網微信公眾號
2019-08-13
不用 樓上說的那么麻煩? 添加站點指定到public? 目錄 然后更改host文件 添加和你一樣的站點域名 最后進行訪問就可以
2019-03-18
先設置一個自己的站點指向thinkphp/public
然后打開hosts,把自己的站點加進去。如果hosts為空,就把下面的代碼復制進去,改好自己的域名就行了。
# Copyright (c) 1993-1999 Microsoft Corp.
#
# This is a sample HOSTS file used by Microsoft TCP/IP for Windows.
#
# This file contains the mappings of IP addresses to host names. Each
# entry should be kept on an individual line. The IP address should
# be placed in the first column followed by the corresponding host name.
# The IP address and the host name should be separated by at least one
# space.
#
# Additionally, comments (such as these) may be inserted on individual
# lines or following the machine name denoted by a '#' symbol.
#
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
#
127.0.0.1 localhost
127.0.0.1 www.gohosts.com
2019-03-13
找個視頻看看,一般就設置域名管理和host就夠了