随笔分类 -  linux

Failed to download metadata for repo ‘appstream‘: Cannot prepare internal mirrorlist:...
摘要:大家都知道Centos8于2021年年底停止了服务,大家再在使用yum源安装时候,出现下面错误“错误:Failed to download metadata for repo ‘AppStream’: Cannot prepare internal mirrorlist: No URLs in mi 阅读全文

posted @ 2022-07-22 17:19 torotoise512 阅读(295) 评论(0) 推荐(0) 编辑

Centos7 更换yum软件源
摘要:https://blog.csdn.net/zhinian1204/article/details/123975403 阅读全文

posted @ 2022-07-06 16:31 torotoise512 阅读(25) 评论(0) 推荐(0) 编辑

redis安装
摘要:1. 安装redis需要先安装相关依赖,主要是GCC包 yum install centos-release-scl scl-utils-build yum install -y devtoolset-8-toolchain scl enable devtoolset-8 bash 2. 下载red 阅读全文

posted @ 2022-05-31 10:44 torotoise512 阅读(54) 评论(0) 推荐(0) 编辑

RDMA和DPDK
摘要:RDMA: https://blog.csdn.net/qq_21125183/article/details/80563463 DPDK: https://blog.csdn.net/qq_20817327/article/details/105587309 阅读全文

posted @ 2021-12-22 20:22 torotoise512 阅读(134) 评论(0) 推荐(0) 编辑

【转载】web 部署专题(一):Gunicorn运行与配置方法
摘要:原文链接:https://www.cnblogs.com/qiu-hua/p/12680905.html Gunicorn“绿色独角兽”是一个被广泛使用的高性能的Python WSGI UNIX HTTP服务器,移植自Ruby的独角兽(Unicorn )项目,使用pre-fork worker模式, 阅读全文

posted @ 2021-11-28 14:13 torotoise512 阅读(175) 评论(0) 推荐(0) 编辑

supervisor快速配置
摘要:1. 安装: pip3 install supervisor 2. 默认安装路径跟python同目录: cd /usr/local/python3/bin/ 3. 获取配置和文件: ./echo_supervisord_conf > supervisord.conf 4. 创建配置文件目录: mkd 阅读全文

posted @ 2021-11-27 23:31 torotoise512 阅读(87) 评论(0) 推荐(0) 编辑

linux监控脚本状态失败后拉起
摘要:while true # 无限循环 flag=`ps -aux |grep "consumer.py" |grep -v "grep" |wc -l` do if [[ $flag -eq 0 ]] # 判断进程数如果等于0,则启动脚本 then `python3 -u consumer.py >> 阅读全文

posted @ 2021-11-27 10:57 torotoise512 阅读(47) 评论(0) 推荐(0) 编辑

mysql快速安装
摘要:配置源: rpm -ivh https://repo.mysql.com//mysql57-community-release-el7-11.noarch.rpm 需要升级一下key,需要重新获取: rpm --import https://repo.mysql.com/RPM-GPG-KEY-my 阅读全文

posted @ 2021-11-26 12:45 torotoise512 阅读(48) 评论(0) 推荐(0) 编辑

linux 配置启动supervisor详细
摘要:参考自强学堂:https://code.ziqiangxuetang.com/django/django-nginx-deploy.html 1 例子中zqxt项目 安装 supervisor 软件包 1 (sudo) pip install supervisor<br>或者<br>yum inst 阅读全文

posted @ 2021-11-18 13:52 torotoise512 阅读(1129) 评论(0) 推荐(0) 编辑

linux开放某个端口
摘要:1. 开放80端口[root@localhost ~]# firewall-cmd --add-port=80/tcp --permanentsuccess 2. reload防火墙[root@localhost ~]# firewall-cmd --reload 3.查看开放的所有端口 [root 阅读全文

posted @ 2021-09-07 17:50 torotoise512 阅读(122) 评论(0) 推荐(0) 编辑

SSH不超时
摘要:vim /etc/ssh/sshd_config ClientAliveInterval 60ClientAliveCountMax 3 阅读全文

posted @ 2021-05-23 10:18 torotoise512 阅读(33) 评论(0) 推荐(0) 编辑

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

统计

点击右上角即可分享
微信分享提示