1Panel安裝OpenResty
查看到就說明安裝成功
部署項目
在http中添加:
? ? server {
? ? ? ? listen ? ? ? 8001;? //端口號
? ? ? ? server_name ?localhost;
? ? ? ? location / {
? ? ? ? ? ? root ? /admin;? //項目路徑
? ? ? ? ? ? index ?index.html index.htm;
? ? ? ? }
? ? ? ? error_page ? 500 502 503 504 ?/50x.html;
? ? ? ? location = /50x.html {
? ? ? ? ? ? root ? html;
? ? ? ? }
? ? }
項目路徑掛載
我的路徑是 根目錄的admin文件夾
ip+端口? 訪問既可