提示
以下内容的目的,只是为了学习合法的知识
shsupervisor:要安装的软件的名称。 supervisord:装好supervisor软件后,supervisord用于启动supervisor服务。 supervisorctl:用于管理supervisor配置文件中program。
使用yum命令安装 切换为root用户
shyum install epel-release # 如果已安装EPEL源,请跳过
yum install -y supervisor
systemctl enable supervisord # 开机自启动
systemctl start supervisord # 启动supervisord服务
systemctl status supervisord # 查看supervisord服务状态
ps -ef|grep supervisord # 查看是否存在supervisord进程
通过nginx搭建mysql代理
工作中,本地mysql工具无法访问远程的mysql数据库,但是开发机A可以访问,同时本地可以访问开发机A, 调研后,采用了nginx的stream进行mysql的请求转发
bashctar zxf nginx-1.23.3.tar.gz tar zxf pcre2-10.42.tar.gz
bashcd nginx-1.23.3
./configure
--prefix=/home/work/demo-nginx
--with-cc=/opt/compiler/gcc-10/bin/gcc
--with-pcre=/home/work/nginx-build/pcre2-10.42
--with-stream --with-http_ssl_module
make -j$(nproc)
cd objs/
查看是否有makeFile文件/home/work/demo-nginx/sbin/nginx -v
检测是否安装成功