Yu's Blog - 程序
type: channel
link: https://blog.0zu.cn/category/app/
items: handsome主题vditor相关的资源本地化
items: supervisor进程守护
items: RabbitMQ队列

handsome主题vditor相关的资源本地化
type: item
date: 2024-05-29T14:51:00+08:00
description: 问题：jsDelivr时不时加载失败解决：vditor资源本地化

supervisor进程守护
type: item
date: 2022-09-14T16:17:00+08:00
description: 安装yum install -y supervisor 开机自启systemctl enable supervisord 启动服务systemctl start supervisord 写入配置vim /etc/supervisord.d/service.ini 事例配置[program:xxx] directory=/home/wwwroot/xxx/ command=php ./bin/hyperf.php start user=root autostart=true autorestart=true startsecs=1 startretries=3 stderr_logfile=/home/wwwroot/xxx/runtime/err.log stdout_logfile=/home/wwwroot/xxx/runtime/run.log 开启可视化界面[scode type="blue"]在/etc/supervisord.conf 文件里 把[inet_http_server]对应的四行注释(;)删掉即可注意：外网访问不了可以 设置第二行为 port=*:9001[/scode]

RabbitMQ队列
type: item
date: 2022-09-14T16:14:00+08:00
description: 安装Erlang(RabbitMQ是基于Erlang语言开发)yum install epel-releas yum install erlang 下载RabbitMQwget https://github.com/rabbitmq/rabbitmq-server/releases/download/rabbitmq_v3_6_15/rabbitmq-server-3.6.15-1.el7.noarch.rpm 安装RabbitMQyum install rabbitmq-server-3.6.15-1.el7.noarch.rpm 设置开机启动systemctl enable rabbitmq-server.service 启动服务systemctl start rabbitmq-server.service 开启图形化界面rabbitmq-plugins enable rabbitmq_management 查看当前所有用户rabbitmqctl list_users 删除默认用户rabbitmqctl delete_user guest 添加新用户rabbitmqctl add_user username password 设置新用户标签rabbitmqctl set_user_tags username administrator 赋予新用户vhost全部权限rabbitmqctl set_permissions -p / username \".*\" \".*\" \".*\" 查看用户权限rabbitmqctl list_user_permissions username 卸载MQsudo systemctl stop rabbitmq-server sudo yum remove rabbitmq-server sudo rm -rf /etc/rabbitmq /var/lib/rabbitmq