.net core linux部署方案宝典大全
作者:互联网
第七章 linux for docker 搭建自动化部署方案----后续补充
开牛年,牛年大吉,在家实在待着无聊,喝着小酒写博客,在这里祝大家新年快乐,步步高升
给大家讲一下.net core从入门到放弃这么一说!
第三章 -Jexus配置.net core启动
----------------------------------------------Jexus配置.net core启动--------------------------------------------------
安装Jexus
curl https://jexus.org/release/x64/install.sh|sudo sh
输入命令回车:可以看到他会去下载文件:https://linuxdot.net/down/jexus-5.8.3-x64.tar.gz 最后提示操作ok
配置默认路径
/usr/jexus/siteconf/default
根据配置可以多个配置文件
启动服务
sudo /usr/jexus/jws restart
配置dotnet core示例 配置完毕重新启动服务
######################
# Web Site: Default
########################################
port=1012
root=/ /home/wwwroot/com.newgh.usercenter
hosts=* #OR your.com,*.your.com
# User=www-data
# AspNet.Workers=2 # Set the number of asp.net worker processes. Defauit is 1.
# addr=0.0.0.0
# CheckQuery=false
NoLog=true
AppHost={cmd=dotnet /home/wwwroot/com.newgh.usercenter/Com.NewGH.UserCenter.WebAPI.dll; AppRoot=/home/wwwroot/com.newgh.usercenter; port=1010}
NoFile=/index.aspx
Keep_Alive=true
UseGZIP=true
# UseHttps=true
# ssl.certificate=/x/xxx.crt #or pem
# ssl.certificatekey=/x/xxx.key
# ssl.protocol=TLSv1.0 TLSv1.1 TLSv1.2
# ssl.ciphers=ECDHE-RSA-AES256-GCM-SHA384:ECDHE:ECDH:AES:HIGH:!NULL:!aNULL:!MD5:!ADH:!RC4:!DH:!DHE
# ResponseHandler.Add=Strict-Transport-Security:max-age=15768000 #for HSTS
# DenyFrom=192.168.0.233, 192.168.1.*, 192.168.2.0/24
# AllowFrom=192.168.*.*
# DenyDirs=~/cgi, ~/upfiles
# indexes=myindex.aspx
# Deny asp ...
rewrite=^/.+?\.(asp|cgi|pl|sh|bash)(\?.*|)$ /.deny->$1
rewrite=.*/editor/.+ /.deny->editor
# reproxy=/bbs/ http://192.168.1.112/bbs/
# host.Redirect=abc.com www.abc.com 301
# ResponseHandler.Add=myKey:myValue
ResponseHandler.Add=X-Frame-Options:SAMEORIGIN
# 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
----------------------------------------------Jexus配置.net core结束--------------------------------------------------
#Jexus放入守护进程或者服务自启动,.net core就不需要配置进程守护,选一个就够了
标签:core,com,linux,Jexus,net,jexus 来源: https://www.cnblogs.com/ms1976/p/14400166.html