随笔分类 -  linux运维

摘要:1.背景 在本地部署没有问题,但是通过docker-compose部署到docker环境中就出现以下异常: Caused by: java.lang.NoClassDefFoundError: Could not initialize class sun.awt.X11FontManager 或 c 阅读全文
posted @ 2024-12-11 14:50 官萧何 阅读(398) 评论(0) 推荐(0) 编辑
摘要:1.将jar包放到和该脚本同级目录 2.记得chmod 777 ./start.sh 赋予执行权限 3.执行./start.sh文件即可 4.重启也可以直接执行此文件 5.如果没有打包配置文件可以在此脚本同级目录创建config目录将yml/properties配置文件放进去 . #!/bin/ba 阅读全文
posted @ 2023-11-09 10:43 官萧何 阅读(157) 评论(0) 推荐(0) 编辑
摘要:1.下载rsync+inotify https://download.samba.org/pub/rsync/src/rsync-3.1.2.tar.gz http://github.com/downloads/rvoicilas/inotify-tools/inotify-tools-3.14.t 阅读全文
posted @ 2022-06-11 10:44 官萧何 阅读(640) 评论(0) 推荐(0) 编辑
摘要:1.写入、替换配置文件shell # 替换node114:~/test # sed -i "/redis.addr/s/.*/redis.addr=127.0.0.1/" ./sed-test # 插入最后一行 node114:~/test # echo "redis.target=66" >> s 阅读全文
posted @ 2022-05-12 16:42 官萧何 阅读(27) 评论(0) 推荐(0) 编辑
摘要:可以直接使用低版本automake运行一下命令 echo "预处理automake问题" cd ${keepaliveFolder} aclocal autoconf automake --add-missing echo "预处理automake问题 完成" 阅读全文
posted @ 2022-05-09 17:05 官萧何 阅读(784) 评论(0) 推荐(0) 编辑
摘要:1.nginx的下载编译安装这里略过(各种依赖问题自己解决) 2.下载Nginx一致性hash模块 地址:https://github.com/replay/ngx_http_consistent_hash 下载完成后上传到linux服务器 3.重新编译nginx(.configure),例如: . 阅读全文
posted @ 2022-05-06 09:59 官萧何 阅读(2568) 评论(0) 推荐(0) 编辑
摘要:配置示例 upstream tomcatserver{ server ip:8780 max_fails=2 fail_timeout=30s; server ip:8068 max_fails=2 fail_timeout=30s backup; } location /usercenter { 阅读全文
posted @ 2022-04-29 10:02 官萧何 阅读(467) 评论(0) 推荐(0) 编辑
摘要:在上一篇文章redis主从实现的情况下实现哨兵 故障 master自动切换 redis服务器配置: master 192.168.51.65 slave 192.168.51.67 1、master创建sentinel.conf配置文件 port 26379protected-mode nodaem 阅读全文
posted @ 2022-04-28 17:57 官萧何 阅读(158) 评论(0) 推荐(0) 编辑
摘要:1、前提 两台服务器 已经安装好redis 2.修改作为master的配置文件 其他的不用动 protected-mode no 3.修改作为slave配置文件 # 主从 设置为no protected-mode no #端口要和master不一样 port 6380 # 指定master ip s 阅读全文
posted @ 2022-04-28 15:15 官萧何 阅读(488) 评论(0) 推荐(0) 编辑
摘要:1、准备 在三台服务器安装好mysql8.0 2、修改my.cnf配置文件 在[mysqld]标签下添加MGR相关配置 (重启mysql) # 组复制 start # Mysql服务ID server-id=1 # 全局事务 gtid-mode=on # 强制GTID的一致性 enforce-gti 阅读全文
posted @ 2022-04-06 17:33 官萧何 阅读(627) 评论(0) 推荐(0) 编辑
摘要:参考:https://blog.csdn.net/zyhlwzy/article/details/80569422 参考:https://blog.csdn.net/tanfengshang0872/article/details/121446436 自己实际操作踩坑: 1.添加用户那里指定IP 可 阅读全文
posted @ 2022-02-22 11:08 官萧何 阅读(1144) 评论(0) 推荐(0) 编辑
摘要:我这里使用的是suse系统安装keepalived 1.keepalived 安装包 链接:https://pan.baidu.com/s/15Hwqdmv_AKlNYjy-omh4tg 提取码:714h 2.解压、安装keepalived tar -xvf keepalived-2.2.0.tar 阅读全文
posted @ 2022-01-06 10:15 官萧何 阅读(1003) 评论(0) 推荐(0) 编辑

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