一.安裝nginx
官網下載地址:http://nginx.org/download/
安裝步驟:
1.開啓nginx服務
2.任務管理器裏已經打開了nginx服務
3.瀏覽器 127.0.0.1
4.配置文件 nginx/conf/nginx.conf
二、phpstudy搭建
視頻教程:https://chuanke.baidu.com/v4472461-233078-1808151.html
成功截圖:
域名配置:https://blog.csdn.net/u012717614/article/details/51690075
錯誤集錦
致命錯誤: Class ‘app\portal\taglib\Portal’ not found
解決方法:新建文件Portal.php,自定義標籤庫
參考文章:https://newsn.net/say/thinkcmf-theme-taglib.html
phpstudy無法啓動Apache
打開Apache文件夾裏的httpd,顯示報錯信息
解決方法:
1.網站端口都爲 80!!!
2.httpd.conf
3.vhosts.conf