Jexus守护进程和配置
在 ubuntu desktop上查看资源占用,类似windows下资源管理器
gnome-system-monitor
在/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站点 我这边发布的是不依赖环境的独立版本
发布命令: dotnet publish -c Release -r linux-arm64
在 /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}
启动关闭具体站点
启动:sudo /usr/jexus/jws start 停止:sudo /usr/jexus/jws stop 重启:sudo /usr/jexus/jws restart
记忆力下降,日常日志