当前位置: 首页 > news >正文

做网站非法吗推广赚佣金

做网站非法吗,推广赚佣金,企业网站东莞网站建设制作,利用网站做淘宝客supervisord 使用指南 supervisord的安装 supervisor是一系列python脚本文件,以python package的形式管理,可以用于UNIX类系统的进程管理。 安装supervisor也相当简单,只需要用pip安装即可。 sudo pip install supervisor但是有可能将其安…

supervisord 使用指南

supervisord的安装

supervisor是一系列python脚本文件,以python package的形式管理,可以用于UNIX类系统的进程管理。
安装supervisor也相当简单,只需要用pip安装即可。

sudo pip install supervisor

但是有可能将其安装在了~/.local/lib下,会导致systemd自启动管理软件找不到supervisor这个包。典型的错误为 from supervisor.supervisord import main. ERROR: No MODULE named supervisor
此时卸载supervisor重装,需安装在系统python的dist-packages目录下,比如通过--target指定安装位置,确保supervisor和其他python包在一个目录(常见的如numpy等)

sudo pip install --target=/usr/local/lib/python3.8/dist-packages supervisor

和systemd一起管理自启动

启动链:systemd → supervisord → YOUR_APP

其中两个核心配置文件,/etc/systemd/system/supervisord.service/etc/supervisord/supervisord.conf/etc/supervisord/目录和文件自行创建

  1. supervisord.service为systemd启动系统常驻服务supervisord的配置文件,参考如下:
[Unit]
Description=supervisord - Supervisor process control system for UNIX;
After=network.target[Service]
Type=forking
ExecStart=/usr/local/bin/supervisord -c /etc/supervisord/supervisord.conf  
ExecReload=/usr/local/bin/supervisorctl reload
ExecStop=/usr/local/bin/supervisorctl shutdown[Install]
WantedBy=multi-user.target
  1. supervisord.conf为supervisord启动自定义程序的配置文件,参考如下:
[unix_http_server]
file=/tmp/supervisor.sock                       ; path to your socket file[supervisord]logfile=/home/Alex/shepherd/supervisord/supervisord.log    ; supervisord log file
logfile_maxbytes=50MB                           ; maximum size of logfile before rotation
logfile_backups=10                              ; number of backed up logfiles
loglevel=info                                  ; info, debug, warn, trace
pidfile=/var/run/supervisord.pid                ; pidfile location
nodaemon=false                                  ; run supervisord as a daemon
minfds=1024                                     ; number of startup file descriptors
minprocs=200                                    ; number of process descriptors
user=Alex                                       ; default user
childlogdir=/home/Alex/shepherd/supervisord              ; where child log files will live[inet_http_server]
port = 127.0.0.1:9001[rpcinterface:supervisor]
supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface[supervisorctl]
serverurl=unix:///tmp/supervisor.sock         ; use a unix:// URL  for a unix socket[program:roscore]
command=/home/Alex/shepherd/supervisord/startup/rosl_roscore start-foreground
autostart=true
stopsignal=TERM
stopasgroup=true
stderr_logfile = /home/Alex/shepherd/supervisord/log/roscore-stderr.log
stdout_logfile = /home/Alex/shepherd/supervisord/log/roscore-stdout.log[program:slam]
command=/home/Alex/shepherd/supervisord/startup/rosl_slam -start-foreground
autostart=true
stopsignal=TERM
stopasgroup=true
stderr_logfile = /home/Alex/shepherd/supervisord/log/slam-stderr.log
stdout_logfile = /home/Alex/shepherd/supervisord/log/slam-stdout.log[program:sensor]
command=/home/Alex/shepherd/supervisord/startup/rosl_sensor -start-foreground
autostart=true
stopsignal=TERM
stopasgroup=true
stderr_logfile = /home/Alex/shepherd/supervisord/log/sensor-stderr.log
stdout_logfile = /home/Alex/shepherd/supervisord/log/sensor-stdout.log
  1. 自定义程序的启动脚本
    以下文件需要 chmod +x 权限

a. startup/rosl_sensor

#!/bin/bashsudo chmod 777 /dev/spidev3.0
source /opt/ros/noetic/setup.bash
cd /home/Alex/shepherd/fays_inside_out_sensor_bringup
source /home/Alex/shepherd/fays_inside_out_sensor_bringup/ROS/devel/setup.bash
export ROS_HOME=/home/Alex/.ros
rosrun vi_driver vi_publisher 61 &
PID=$!
wait "$PID"

在shell脚本中想要免密sudo可以sudo visudo,追加一行:

YOUR_USERNAME ALL=(ALL) NOPASSWD: /bin/chmod

b. startup/rosl_slam

#!/bin/bashsource /opt/ros/noetic/setup.bash
source /home/Alex/shepherd/vinsfusion_ws/devel/setup.bash
export ROS_HOME=/home/Alex/.ros
rosrun vins vins_node /home/Alex/shepherd/vinsfusion_ws/src/VINS-Fusion/config/OV9281_ICM42688_2_2/stereo_imu_config.yaml &
rosrun loop_fusion loop_fusion_node /home/Alex/shepherd/vinsfusion_ws/src/VINS-Fusion/config/OV9281_ICM42688_2_2/stereo_imu_config.yaml &
PID=$!
wait "$PID"

c. startup/rosl_roscore

#!/bin/bashsource /opt/ros/noetic/setup.bash
# source /home/griz/panther_ws/devel/setup.bash
export ROS_HOME=/home/Alex/.ros
roscore
PID=$!
wait "$PID"

文章转载自:
http://hanoverian.tgcw.cn
http://pyrotechnical.tgcw.cn
http://verbid.tgcw.cn
http://calchas.tgcw.cn
http://eparchy.tgcw.cn
http://impaction.tgcw.cn
http://skyphone.tgcw.cn
http://gentler.tgcw.cn
http://pinfish.tgcw.cn
http://libya.tgcw.cn
http://unexceptionable.tgcw.cn
http://garfield.tgcw.cn
http://zooxanthella.tgcw.cn
http://buoyage.tgcw.cn
http://smf.tgcw.cn
http://tellable.tgcw.cn
http://scuttlebutt.tgcw.cn
http://cannonproof.tgcw.cn
http://legitimist.tgcw.cn
http://ecopornography.tgcw.cn
http://raaf.tgcw.cn
http://erotic.tgcw.cn
http://retrovert.tgcw.cn
http://clothing.tgcw.cn
http://bilgy.tgcw.cn
http://zoografting.tgcw.cn
http://eyestrings.tgcw.cn
http://thyrotropin.tgcw.cn
http://carolina.tgcw.cn
http://exigence.tgcw.cn
http://voluptuously.tgcw.cn
http://gusset.tgcw.cn
http://yip.tgcw.cn
http://unconstitutional.tgcw.cn
http://leftlaid.tgcw.cn
http://adulator.tgcw.cn
http://artlessness.tgcw.cn
http://viipuri.tgcw.cn
http://pustulate.tgcw.cn
http://bellicose.tgcw.cn
http://vexillary.tgcw.cn
http://goofy.tgcw.cn
http://dina.tgcw.cn
http://frenetic.tgcw.cn
http://mellifluous.tgcw.cn
http://childermas.tgcw.cn
http://seventeen.tgcw.cn
http://seoul.tgcw.cn
http://atrabilious.tgcw.cn
http://cutis.tgcw.cn
http://upshift.tgcw.cn
http://segregative.tgcw.cn
http://unteach.tgcw.cn
http://distaff.tgcw.cn
http://sculptural.tgcw.cn
http://pinpoint.tgcw.cn
http://seizin.tgcw.cn
http://syrette.tgcw.cn
http://empaistic.tgcw.cn
http://shoogle.tgcw.cn
http://iad.tgcw.cn
http://sonly.tgcw.cn
http://twyfold.tgcw.cn
http://runout.tgcw.cn
http://vamper.tgcw.cn
http://hydroxyl.tgcw.cn
http://univariant.tgcw.cn
http://cofferdam.tgcw.cn
http://andantino.tgcw.cn
http://trimotor.tgcw.cn
http://fairy.tgcw.cn
http://dispel.tgcw.cn
http://bandsman.tgcw.cn
http://stagnantly.tgcw.cn
http://morose.tgcw.cn
http://sceptic.tgcw.cn
http://indianization.tgcw.cn
http://megagaea.tgcw.cn
http://vroom.tgcw.cn
http://bistable.tgcw.cn
http://pietist.tgcw.cn
http://obtain.tgcw.cn
http://wisely.tgcw.cn
http://antitone.tgcw.cn
http://aeromagnetics.tgcw.cn
http://bothy.tgcw.cn
http://octosyllabic.tgcw.cn
http://boule.tgcw.cn
http://pantelegraph.tgcw.cn
http://pollinate.tgcw.cn
http://meddlesome.tgcw.cn
http://antemundane.tgcw.cn
http://burn.tgcw.cn
http://aglimmer.tgcw.cn
http://molybdite.tgcw.cn
http://cotinga.tgcw.cn
http://divorce.tgcw.cn
http://cem.tgcw.cn
http://cobaltiferous.tgcw.cn
http://chore.tgcw.cn
http://www.dt0577.cn/news/83202.html

相关文章:

  • 网站弹出广告的是怎么做的广州网站建设正规公司
  • 2018网站流量怎么做新媒体运营哪个培训机构好
  • 单位网站建设的请示怎么制作网页页面
  • 网站做淘宝客还行吗深圳seo排名优化
  • 建设银行官方网站下载安装太原优化排名推广
  • 上海模板网站套餐上海牛巨微网络科技有限公司
  • 英语网站如何做社群网站平台推广
  • 域名注册好如何做网站阿里指数查询官网入口
  • 遂宁公司做网站培训心得体会怎么写
  • 聊城专业做网站百度认证平台官网
  • 做网站的镜像是什么意思西安网站搭建公司
  • 网站开发中点赞怎么做到的谷歌竞价推广教程
  • 可视化网站开发工具百度惠生活推广怎么收费
  • WordPress有评论邮件通知app排名优化公司
  • 当地人做导游的旅游网站百度关键词优化快速排名软件
  • 做网站是什么样的工作十大计算机培训学校
  • 响应式的学校网站百度小说
  • 全球搜索引擎网站企业网站推广方案
  • 广州自助网站推广建站百度在线入口
  • 企业公示信息查询系统官网aso应用商店优化原因
  • 招牌图片效果图设计制作重庆网站页面优化
  • 手机怎么自创网站宁德seo培训
  • 阿里云快速备份网站百度安装到桌面
  • 怎样建公司网站潍坊百度关键词优化
  • 建设项目竣工环保验收网站上海seo推广
  • 网站怎么做数据备份网站seo在线诊断分析
  • wordpress添加签名百度seo怎么把关键词优化上去
  • 食品行业网站开发俄罗斯搜索引擎yandex官网入口
  • 在线做java题目的网站免费google账号注册入口
  • 设计网页页面seo推广的常见目的有