zoukankan      html  css  js  c++  java
  • Mono+Jexus部署Web页面

    一、web页面

    二、Jexus默认站点的配置文件(只需修改站点路径)

    ######################
    # Web Site: Default
    ########################################
    
    port=80
    root=/ /var/www/iot-ems
    hosts=*    #OR your.com,*.your.com
    
    # addr=0.0.0.0
    # CheckQuery=false
    NoLog=true
    # AppHost.Port=5000
    # NoFile=/index.aspx
    # Keep_Alive=false
    # UseGZIP=false
    # UseHttps=true
    # 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

    三、Dockerfile

    FROM mono
    MAINTAINER willem "willem@xcloudbiz.com"
    
    RUN apt-get update 
      && apt
    -get -y upgrade
    RUN cd /opt
      && apt
    -get -y install wget
      &&
    wget linuxdot.net/down/jexus-5.8.1.tar.gz
      && tar
    -zxvf jexus-5.8.1.tar.gz
      && .
    /jexus-5.8.1/install
      && apt-get -y autoremove --purge wget COPY
    default /usr/jexus/siteconf/default ADD . /var/www/iot-ems EXPOSE 80 CMD /usr/jexus/jws start && tail -f

    然后构建新镜像,然后运行容器即可访问(容器自动重启)。

    docker build -t jexus:16.4.14 .
    docker run --restart=always -d -p 8888:80 --name jexus jexus:16.4.14

    访问地址:主机ip:8888

  • 相关阅读:
    简明Python3教程 12.问题解决
    简明Python3教程 11.数据结构
    【SPOJ 694】Distinct Substrings
    【codeforces Manthan, Codefest 17 C】Helga Hufflepuff's Cup
    【CF Manthan, Codefest 17 B】Marvolo Gaunt's Ring
    【CF Manthan, Codefest 17 A】Tom Riddle's Diary
    【SPOJ 220】 PHRASES
    【POJ 3261】Milk Patterns
    【POJ 3294】Life Forms
    【POJ 1226】Substrings
  • 原文地址:https://www.cnblogs.com/xcloudbiz/p/5391325.html
Copyright © 2011-2022 走看看