Jexus 托管方式运行 .net core

这里相关Jexus 和运行配置asp.net core 相关配置这里不再赘述。

详细可关注

http://www.cnblogs.com/gongzhe/articles/6905962.html

 

这里我们主要介绍使用 jexus 托管 服务。

背景介绍:

因为项目需求,并且个人兴趣爱好,改造windwos 服务移植到 linux 平台下

1. 发布 

这里是我改造的windwos 服务项目

下来和配置asp.net core 一样

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
######################
# Web Site: test
########################################
 
port=8888                   
root=/  /var/www/ 应用程序文件夹/
hosts=*    #OR your.com,*.your.com
 
AppHost={
   cmd=dotnet MonitoringRemind.Service.dll;  
   root= /var/www/Montion/AutoSortMoition/
   port=0;      
}
 
 
# addr=0.0.0.0
# CheckQuery=false
NoLog= true
# AppHost={CmdLine=/usr/local/x/xx;AppRoot=/usr/local/x;Port=5000}
# NoFile=/index.aspx
# Keep_Alive=false
# UseGZIP=false
 
# UseHttps=true
# ssl.certificate=/x/xxx.crt  #or pem
# ssl.certificatekey=/x/xxx.key
# ssl.protocol=TLSv1.0    # TLSv1.1 or  TLSv1.2...
# ssl.ciphers=
 
# DenyFrom=192.168.0.233, 192.168.1.*, 192.168.2.0/24
# AllowFrom=192.168.*.*
# DenyDirs=~/cgi, ~/upfiles
# indexes=myindex.aspx
# rewrite=^/.+?\.(asp|php|cgi|pl|sh)$ /index.aspx
# reproxy=/bbs/ http://192.168.1.112/bbs/
# host.Redirect=abc.com www.abc.com  301
# ResponseHandler.Add=myKey:myValue
 
 
# Jexus php fastcgi address is '/var/run/jexus/phpsvr'
#######################################################
# fastcgi.add=php|socket:/var/run/jexus/phpsvr
 
# php-fpm listen address is '127.0.0.1:9000'
############################################
# fastcgi.add=php|tcp:127.0.0.1:9000

  配置已经老生常谈没什么特别的。

启动:

1
sh  /usr/jexus/jws  start autoSort

 服务程序这里我是根据打印日志形式判断其是否正常运行。

日志正常。由于发布原因清理过几次日志。

代码由于公司项目代码就不公开了。

万变不离其宗;

 

交流qq群:486937196

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值