• CentOS 笔记(四) Jexus部署相关


    ①设置jexus 为服务

    cd /lib/systemd/system/  
    sudo vi jexus.service
    #注意 jexus 实际路径

    [Unit] Description
    =jexus After=network.target [Service] 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 enable jexus.service

      启动jexus服务

    systemctl start jexus.service

    停止jexus服务

    systemctl stop jexus

    重新启动服务

    systemctl restart jexus.service

    查看服务状态

    systemctl status  jexus.service

    查看所有已启动的服务

    systemctl list-units --type=service

    参考 :https://www.cnblogs.com/xiaoyaodijun/p/9706525.html

    ②配置 jexus web 配置文件

    cd /usr/jexus/siteconf

    新增两个配置文件

    ######################
    # Web Site: Web1 
    ########################################
    
    port=80
    root=/ /home/web/Web1
    hosts=*    #OR your.com,*.your.com
    
    
    # addr=0.0.0.0
    # CheckQuery=false
    NoLog=true
    AppHost={CmdLine=dotnet /home/web/Web1/Web1.dll;AppRoot=/home/web/Web1;Port=0}
    # 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
    
    # Deny php,asp...
    rewrite=^/.+?.(asp|php|cgi|pl|sh|bash|dll)(?.*|)$  /.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
    
    
    # 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
    ######################
    # Web Site: WebApi1 
    ########################################
    
    port=15000
    root=/ /home/web/WebApi1
    hosts=*    #OR your.com,*.your.com
    
    
    # addr=0.0.0.0
    # CheckQuery=false
    NoLog=true
    AppHost={CmdLine=dotnet /home/web/WebApi1/WebApi1.dll;AppRoot=/home/web/WebApi1;Port=0}
    # 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
    
    # Deny php,asp...
    rewrite=^/.+?.(asp|php|cgi|pl|sh|bash|dll)(?.*|)$  /.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
    
    
    # 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

    作者:zscmj
    出处:http://www.cnblogs.com/zscmj/
    本文版权归作者和博客园共有,欢迎转载,但未经作者同意必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

  • 相关阅读:
    走进__proto__属性,看ie是否支持它,谁又来给他归宿
    如何安装zip格式的MySQL
    博客初心源于前端攻城狮
    Day 1: How to install jedi/codeintel plugin for sublime on Linux
    关于拓扑排序的一些想法
    POJ1061 青蛙的约会 __一维世界的爱情
    缩步查找法——一种新的查找算法
    HDU3371 Connect the Cities
    HDU1598 find the most comfortable road
    codeforces 349 div2.c
  • 原文地址:https://www.cnblogs.com/zscmj/p/10310059.html
Copyright © 2020-2023  润新知