Jexus守護進程和配置

在/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}

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章