ubuntu安装supervisor以及使用supervisor启动.net core进程
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进程的更多相关文章
- Ubuntu安装PhpStorm并设置快速启动phpstorm
使用sudo apt-get install phpstorm 安装php后,没有在桌面生成phpstorm的快捷方式,如果将phpstorm.sh的链接放到/usr/local/bin ,虽然可以从 ...
- Ubuntu安装Chrome浏览器及解决启动no-sandbox问题
1.安装浏览器 # apt-get install gonme # apt-get update # apt-get install google-chrome-stable 2.启动Chrome浏览 ...
- ubuntu 安装部分设置U盘启动系统安装盘操作
https://jingyan.baidu.com/article/6079ad0ec4925728ff86db02.html 第三种方法适合新机型,在启动时按F10或F11,可直接选择启动模式 -- ...
- Ubuntu 安装和使用 Supervisor(进程管理)
服务器版本 Ubuntu 16.04 LTS. Supervisor 是一个用 Python 写的进程管理工具,可以很方便的对进程进行启动.停止.重启等操作. 安装命令: $ apt-get inst ...
- Ubuntu安装守护进程supervisor
Supervisor安装与配置(Linux/Unix进程管理工具) asp.net core 负载均衡集群搭建(centos7+nginx+supervisor+kestrel) 为了保证服务能够稳定 ...
- 在ubuntu16安装supervisor 并 启动 .net core.
1. 安装supervisor apt-get install supervisor 2.新建supervisor配置文件.使用以下命令在linux 命令行 echo_supervisord_conf ...
- supervisor 启动dotnet.core 报“ too many start retries too quickly”
环境: 操作系统:Centos 7 dotnet core:2.0.0 2.1.3 问题: 在使用supervisor 配置守护进程时,启动dotnet.core程序失败,查看/tmp下supe ...
- 使用UltraISO制作ubuntu安装u盘启动盘图文教程
使用UltraISO制作ubuntu安装u盘启动盘图文教程 胖先森关注 0.9572017.09.07 11:06:15字数 770阅读 27,901 制作U盘启动1.gif 1.首先打开Ultr ...
- ubuntu安装shadowshocks-qt5
sudo add-apt-repository ppa:hzwhuang/ss-qt5 sudo apt-get update sudo apt-get install shadowsocks-qt5 ...
随机推荐
- 2019ICPC网赛南京站B题 super_log(欧拉降幂
https://nanti.jisuanke.com/t/41299 题意:让算a^(a^(a^(...))),一共b个a, (mod p)的结果. 思路:这是个幂塔函数,用欧拉降幂公式递归求解. # ...
- CF9D How many trees? (dp)
这题我想了好久 设 \(f_{i,j}\) 为 \(i\) 结点 \(<=j\) 的方案数 固定根,枚举左右子树,就有: \[f_{i,j}=\sum_{k=0}^{n-1}f_{k,j-1}* ...
- ThreadPoolExecutor线程池原理
参考: https://www.cnblogs.com/liuzhihu/p/8177371.html
- 移动端触摸、点击事件优化(fastclick源码学习)
移动端触摸.点击事件优化(fastclick源码学习) 最近在做一些微信移动端的页面,在此记录关于移动端触摸和点击事件的学习优化过程,主要内容围绕fastclick展开.fastclick githu ...
- FreeRTOS之taskYIELD()
摘自:http://www.mcuchina.com/article/2007/1227/article_59.html 1.taskYIELD() 比如我创建了8个优先级一样的task,并且没有 ...
- linux-Centos 7下bond与vlan技术的结合[推荐]
https://blog.51cto.com/sf1314/2073519 服务器eth0与eth1作bonding,捆绑成bond0接口,服务器对端交换机端口,同属于100.101号vlan接口 v ...
- Python3解leetcode Path Sum III
问题描述: You are given a binary tree in which each node contains an integer value. Find the number of p ...
- mysql 1067 - Invalid default value for 'addtime'错误处理
错误描述 TABLE `bota_payment_closing` ( `id` int(11) NOT NULL AUTO_INCREMENT, `monthly` varchar(8) NOT N ...
- Solr索引数据
一般来说,索引是系统地排列文档或(其他实体).索引使用户能够在文档中快速地查找信息. 索引集合,解析和存储文档. 索引是为了在查找所需文档时提高搜索查询的速度和性能. 在Apache Solr中的索引 ...
- create-react-app下的@修饰器正确的使用方式记录
在create-react-app下使用es7的@修饰器会报错''Support for the experimental syntax 'decorators-legacy' isn't curre ...