1、下载.net core项目ubuntu系统运行容器dotnet
      1、版本:dotnet-sdk-2.1.3-linux-x64.tar.gz
      2、将下载好的包上传到ubuntu系统进行解压
      3、解压命令:tar -zxvf dotnet-sdk-2.1.3-linux-x64.tar.gz(-zxvf详解:z表示tar包是被gzip压缩过的,所以解压是需要用gunzip解压;x表示从tar包中把文件提取出来;v表示显示详细信息;f指定被处理的文件是.tar.gz)
      4、将压缩包解压到指定文件目录
      tar -zxvf dotnet-sdk-2.1.3-linux-x64.tar.gz -C /home/zhangxinqi/dotnetsdk

2、安装supervisor(可视化界面管理车.net core服务,手动操作,不需要命令启动)
      supervisor是一款很好用的进程管理工具,其命令也很简单,其安装过程如下:
     1、首先保证本地的Python环境是OK的,并且已经安装supervisor包,如果没有安装可以用easy_install:
           easy_install supervisor

2、安装supervisor
           sudo apt-get install supervisor

3、查看默认配置
           echo_supervisord_conf

4、导出默认配置到指定目录
           echo_supervisord_conf > /etc/supervisor/supervisord.conf(如果提示权限不够,可以切换到root用户)

5、修改supervisord.conf配置文件(去掉最后该配置文件的最后一行注释符号)
           [include]
           files = /etc/supervisor/conf.d/*.ini

6、修改supervisord.conf配置文件为:这样就可以通过浏览器登录supervisor可视化操作界面了
           [inet_http_server] ; inet (TCP) server disabled by default

port=*:9001 ; (ip_address:port specifier, *:port for all iface)

username=admin ; (default is no username (open server))

password=fujica0408 ; (default is no password (open server))

7、添加ini配置文件(文件名enginecore)
          [program:EngineCore]
          command=/home/zhangxinqi/dotnetsdk/dotnet OneCardSystem.EngineCore.dll ; 运行程序的命令
          directory=/home/zhangxinqi/OneCardSystem.EngineCore/ ; 对应的你的项目的存放目录
          autostart=true
          autorestart=true ; 程序意外退出是否自动重启
          stderr_logfile=/var/log/EngineCore.err.log ; 错误日志文件
          stdout_logfile=/var/log/EngineCore.out.log ; 输出日志文件
          environment=ASPNETCORE_ENVIRONMENT='Production',ASPNETCORE_URLS='http://*:60002' ; 进程环境变量
          stopsignal=INT

8、启动supervisord
          supervisord -c /etc/supervisor/supervisord.conf

(备注:如果修改了ini和supervisord.conf文件,则需要执行supervisorctl reload命令才能生效)

ubuntu安装supervisor以及使用supervisor启动.net core进程的更多相关文章

  1. Ubuntu安装PhpStorm并设置快速启动phpstorm

    使用sudo apt-get install phpstorm 安装php后,没有在桌面生成phpstorm的快捷方式,如果将phpstorm.sh的链接放到/usr/local/bin ,虽然可以从 ...

  2. Ubuntu安装Chrome浏览器及解决启动no-sandbox问题

    1.安装浏览器 # apt-get install gonme # apt-get update # apt-get install google-chrome-stable 2.启动Chrome浏览 ...

  3. ubuntu 安装部分设置U盘启动系统安装盘操作

    https://jingyan.baidu.com/article/6079ad0ec4925728ff86db02.html 第三种方法适合新机型,在启动时按F10或F11,可直接选择启动模式 -- ...

  4. Ubuntu 安装和使用 Supervisor(进程管理)

    服务器版本 Ubuntu 16.04 LTS. Supervisor 是一个用 Python 写的进程管理工具,可以很方便的对进程进行启动.停止.重启等操作. 安装命令: $ apt-get inst ...

  5. Ubuntu安装守护进程supervisor

    Supervisor安装与配置(Linux/Unix进程管理工具) asp.net core 负载均衡集群搭建(centos7+nginx+supervisor+kestrel) 为了保证服务能够稳定 ...

  6. 在ubuntu16安装supervisor 并 启动 .net core.

    1. 安装supervisor apt-get install supervisor 2.新建supervisor配置文件.使用以下命令在linux 命令行 echo_supervisord_conf ...

  7. supervisor 启动dotnet.core 报“ too many start retries too quickly”

    环境: 操作系统:Centos 7 dotnet core:2.0.0    2.1.3 问题: 在使用supervisor 配置守护进程时,启动dotnet.core程序失败,查看/tmp下supe ...

  8. 使用UltraISO制作ubuntu安装u盘启动盘图文教程

    使用UltraISO制作ubuntu安装u盘启动盘图文教程 胖先森关注 0.9572017.09.07 11:06:15字数 770阅读 27,901   制作U盘启动1.gif 1.首先打开Ultr ...

  9. ubuntu安装shadowshocks-qt5

    sudo add-apt-repository ppa:hzwhuang/ss-qt5 sudo apt-get update sudo apt-get install shadowsocks-qt5 ...

随机推荐

  1. MYSQL中IN与EXISTS的区别

    在MYSQL的连表查询中,最好是遵循‘小表驱动大表的原则’ 一.IN与EXISTS的区别1.IN查询分析SELECT   *  FROM A WHERE id IN (SELECT id FROM B ...

  2. 解压版(.zip)的MySQL数据库下载安装

    1.首先到mysql官网下载(https://dev.mysql.com/downloads/mysql/5.6.html#downloads): 2.解压下载好的压缩包文件,并将解压后的文件夹放到合 ...

  3. 【LeetCode】二分 binary_search(共58题)

    [4]Median of Two Sorted Arrays [29]Divide Two Integers [33]Search in Rotated Sorted Array [34]Find F ...

  4. Kconfig的简单例子

    https://cloud.tencent.com/developer/article/1431908 使用Kconfig时,需要注意的地方 1.在Kconfig中定义的配置宏,前缀都没有" ...

  5. $_POST 和 php://input 的区别

    手册中摘取的几句话: 当 HTTP POST 请求的 Content-Type 是 application/x-www-form-urlencoded 或 multipart/form-data 时, ...

  6. css 响应式(媒介查询)

    1.CSS 来实现响应式 CSS实现响应式网站的布局要用到的就是CSS中的媒体查询接下来来简单介绍一下: @media 类型 and (条件1) and (条件二){css样式} <link r ...

  7. Tomcat的作用思考及NIO在Tomcat中的应用模型

    Tomcat的作用 平时写完web程序都是直接点击启动,就可以在本机浏览器访问了.但是仔细想想,我们似乎都没有写过浏览器与servlet通信的代码,也没有写过创建request.reponse的代码. ...

  8. ubuntu安装pandas

    1 安装依赖包 setuptools Numpy: 1.7.1 or higher python-dateutil: 1.5 or higher pytz: Needed for time zone ...

  9. Task1.数据集探索

    中文数据集THUCNews:https://pan.baidu.com/s/1hugrfRu 密码:qfud 参考:https://blog.csdn.net/SMith7412/article/de ...

  10. @ControllerAdvice全局数据绑定

        @ModelAttribute 注解标记该方法的返回数据是一个全局数据,默认情况下,这个全局数据的 key 就是返回的变量名,value 就是方法返回值,当然开发者可以通过 @ModelAtt ...