Linux???Jexus?й?Asp.Net Core??ó???
???????????? ???????[ 2017/5/17 11:11:02 ] ?????????????? Linux
????????? ???.Net Core????
??????? dotnet ?????μ??????? https://www.microsoft.com/net/core??
??????????????汾???а????????????? ???????????汾?????°?? 1.04??
????dotnet --version
?????????????????Asp.Net Core??ó???Linux????????
??????Asp.Net Core????????Linux???????????? dotnet ?????????У???:
????dotnet /??ó????·??/??ó?????.dll
??????????к????? ??
????Hosting environment: Production
????Content root path: /??ó????·??/
????Now listening on: http://localhost:5000
????Application started. Press Ctrl+C to shut down.
??????Asp.Net Core??ó?????????5000?????????????? Program.cs ?н?????????????????????Program.cs?н???????????
??????????????????????? ssh ?? ??? Asp.Net Core??ó??????????С?
???????????????????? Jexus ! (??????5.8.2 ?汾?????汾??)https://news.cnblogs.com/n/569277/
????Jexus ???????: https://www.jexus.org/
????Jexus ???????: https://www.linuxdot.net
????????? ???Jexus
??????? Jexus ???????????????(?????root????????):
????curl https://jexus.org/release/x64/install.sh|sh
??????????????????OK?? Jexus has been installed in /usr/jexus.
?????????? ????????Linux??????
????????Asp.Net Core ??ó???????з?????Linux???????? /var/www/ ·????
????(??? www ????в??????????? mkdir /var/www/ ?????? www ?????)
???????????ó????????????·??? /var/www/??ó????????/??ó???????.dll
????????? ????Jexus????Asp.Net Core??ó???
???????????????
????1???л???Jexus?????????
????cd /usr/jexus/siteconf
????2??????????????????test
????cp default test
????3????test???????
????vi test
????test?????????????
######################
# Web Site: Default
########################################
port=80
root=/ /var/www/default
hosts=* #OR your.com??*.your.com
# 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
?????? test ???????(???AppHost?е??????β?????????????):
######################
# Web Site: test
########################################
port=8888
root=/ /var/www/??ó????????/
hosts=* #OR your.com??*.your.com
AppHost={
cmd=dotnet ??ó???????.dll;
root=/var/www/??ó????????/;
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
??????????????????????? ?? Esc ?? ???? :wq ???????????????? (???????????????????????)
????4?????/???? Jexus
???????????????????????????????Jexus???? ???/????
????# ???????? Jexus??
????sh /usr/jexus/jws restart
????# ???δ??? Jexus??
????sh /usr/jexus/jws start
???????/????????????????????? ip???/????:???? ????(192.168.1.1:8888 ?? www.aspnetcore.com:8888 ) ???????Asp.Net Core??ó???
???????????Jexus?й?Asp.Net Core??ó?????????????
??????????????????Asp.Net Core??ó??????????? Kestrel ??????????
???????Jexus??Kestrel??????????????? Apache??Tomcat??????.
????Jexus???Web????????Kestrel????÷???????Jexus?????????????????????Kestrel??Kestrel ???????? ????Asp.Net Core??ó??? ??????????????????Jexus??????Jexus??????????????????:
??????????????????????????????????????????????
???????Jexus???????????????? Kestrel ???????е?Asp.Net Core??ó?????????
?????????ò????Jexus?????????????????????????????????ɡ?
?????????? ????? ????Jexus????Asp.Net Core??ó??? ???test???????????????
????port=8888 # ????????????????????????????????????? ip/????:???? ???????
????root=/ /var/www/??ó????????/ # ??ó???????????(?·??)
????hosts=* #OR your.com??*.your.com # ????????????????DNS?????????????д??????????????????????:www.myweb.com
????AppHost={ # ?????????
????cmd=dotnet ??ó???????.dll; # ???????Asp.Net Core??????е?????
????root=/var/www/??ó????????/; # Asp.Net Core??ó?????????·??
????port=0; # Asp.Net Core??ó????????????????????????????UsrUrls????????????UsrUrls????д????(?????????UsrUrls???????)??
????# ????????UsrUrls????????????????????? 0??Jexus???????????Asp.Net Core????"Э??"????????????????????÷??? # ?????鷳??????????
????}
????????????????AppHost?У????????????AppHost?е?port?????????????Jexus????????port(????)????????????? Asp.Net Core??ó????????????????????????????????????????????????Asp.Net Core??ó??????????д????
??????????“Э????”??????????Asp.Net Core?????UsrUrls???????????????÷???????鷳?????????
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11