linux 下配置 resin+nginx
找到resin.xml設定檔 增加cluster節點
-arg>-XX:+UseConcMarkSweepGC
& lt;jvm-arg> -XX:CMSFullGCsBeforeCompaction=2卷arg>
&其;jvm-arg>-XX: LRUPolicyMSPerMB= 0
-Xloggc :log/gc.log
-XX:+HeapDumpOnOutOfMemoryError
.management.jmxremote.ssl=false jvm-arg>
5M內存空閒分鐘>
1024線程最大值>
1024線程最大>
字逾時>
"/test" document-directory="/data/service/test" archive-path="/data/jenkins/Test.war" redeploy-mode="automatic"/>
程式包路徑
! --test end -->
這樣設定好啟動resin 就可以存取test專案 http://(linuxIP位址):8095(上面設定的連接埠號碼)/test專案名
http://localhost:8095/test
我們想不輸入連接埠號碼就可以存取這個項目,那麼可以使用nginx反向代理來實現。
下面設定nginx來反向代理
找到nginx.conf設定檔修改這個設定檔
增加upstream test{
server 127.0.test.1:80955; }
定義location
proxy_pass http://test; 頁面瀏覽路徑 proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr; -Host $server_name; proxy_set_header X-Real-IP $remote_addr;
proxy_set_header Cookie $http_cookie;
proxy_next_upstream http_502 http_504 error timeout invalid_header;
client_max_body_size 80m;
}
還有一些屬性配置這裡就不說了主要配置就是這兩個地方
啟動nginx 在瀏覽器中輸入http://localhost/test
如果能正常存取那說明配置nginx代理程式成功了。
以上就介紹了linux 下配置 resin+nginx,包括了方面的內容,希望對PHP教程有興趣的朋友有所幫助。

熱AI工具

Undresser.AI Undress
人工智慧驅動的應用程序,用於創建逼真的裸體照片

AI Clothes Remover
用於從照片中去除衣服的線上人工智慧工具。

Undress AI Tool
免費脫衣圖片

Clothoff.io
AI脫衣器

AI Hentai Generator
免費產生 AI 無盡。

熱門文章

熱工具

記事本++7.3.1
好用且免費的程式碼編輯器

SublimeText3漢化版
中文版,非常好用

禪工作室 13.0.1
強大的PHP整合開發環境

Dreamweaver CS6
視覺化網頁開發工具

SublimeText3 Mac版
神級程式碼編輯軟體(SublimeText3)

OOBELANGUAGE錯誤Windows 11 / 10修復中出現問題的問題
