官网:http://www.jexus.org/

安装过程就照着页面上做就好了,前提是需要安装好mono

在VS2015中新建一个MVC应用程序,这里需要注意两个步骤:

第1步:移除bin下的Microsoft.Web.Infrastructure.dll
第2步:项目上右键管理NuGet程序包,打开管理器,按顺序卸载以下两个组件
     2.1 Microsoft.CodeDom.Providers.DotNetCompilerPlatform
     2.2 Microsoft.Net.Compilers

使用XFTP发布到CentOS中,例如放到/usr/project/Mono

编辑/usr/jexus/siteconf 下的default 文件:

######################
# Web Site: Default
########################################

port=80
root=/ /usr/project/Mono
hosts=*    #OR your.com,*.your.com

此时启动服务:

cd /usr/jexus
./jws start

打开防火墙:

firewall-cmd --zone=public --add-port=80/tcp --permanent
firewall-cmd --reload 

在Windows上访问:

CentOS 安装 Jexus

报错了,这里是看不到具体错误的,需要在CentOS上查看具体错误:

CentOS 安装 Jexus

这个问题是因为Windows的路径和Linux的路径不一致造成的,修改/usr/jexus目录下的jws文件:

export MONO_IOMAP="all"

把此行的“#”去掉,重启:

/usr/jexus/jws restart

再次访问即可。

相关文章:

  • 2022-12-23
  • 2021-07-13
  • 2021-11-17
  • 2018-10-16
  • 2021-10-01
  • 2021-12-29
  • 2021-09-21
  • 2022-01-31
猜你喜欢
  • 2021-05-23
  • 2022-01-28
  • 2020-03-23
  • 2021-11-13
  • 2022-02-19
  • 2021-11-24
相关资源
相似解决方案