Jexus守護程序和配置
阿新 • • 發佈:2022-03-04
在/lib/systemd/system 目錄下建立檔案jexus.service
內容
[Unit] Description=Jexus web server Wants=network-online.target After=network-online.target [Service] User=root Group=root Type=forking ExecStart=/usr/jexus/jws start ExecReload=/usr/jexus/jws restart ExecStop=/usr/jexus/jws stop PrivateTmp=true [Install] WantedBy=multi-user.target
建立啟動連線
systemctl enabled jexus.service
停止:
systemctl disabled jexus.service
如果修改了檔案 需要重新載入檔案
systemctl daemon-reload
jexus配置 ASP.NET CORE站點 我這邊釋出的是不依賴環境的獨立版本
在 /usr/jexus/siteconf/ 中
使用default配置
port=80 root=/ /home/fofiaiot/iotplat/iotweb hosts=* #OR your.com,*.your.com # User=www-data # AspNet.Workers記憶力下降,日常日誌=4 # Set the number of asp.net worker processes. Defauit is 1. # AspNet.MaxCpuTime=3600 # Cpu time used by each worker process # AspNet.MaxMemory=256 # Memory used by each working process # addr=0.0.0.0 # CheckQuery=false NoLog=true AppHost.Port=5000 AppHost={cmd=/home/fofiaiot/iotplat/iotweb/Atlass.Framework.Web; root=/home/fofiaiot/iotplat/iotweb; port=5000}