随笔分类 -  Linux

摘要:MongoDB 7.0 单节点部署 与 MongoDB shell基本操作 部署准备: 1、操作系统:CentOS7.9 ,数据文件系统挂载至/data目录下。 2、在操作系统中,创建一个mongod的用户和用户组,并配置其sudo权限,如果使用root用户可以不考虑准备此项。 3、mongodb服 阅读全文
posted @ 2024-09-05 09:58 难止汗 阅读(260) 评论(0) 推荐(0) 编辑
摘要:因发现部署在云平台上的业务日志中,不定时会有同一IP发送大量的正常请求的情况,导致服务器资源占用突然增高,由于程序端没做请求频率的限制,云服务上没有waf,故使用nginx+lua(OpenResty)+redis来做访问控制,发现请求频率高的IP,直接封掉,禁止访问。 一、部署OpenResty 阅读全文
posted @ 2024-06-11 14:46 难止汗 阅读(381) 评论(0) 推荐(0) 编辑
摘要:linux部署Minio 1、官网https://min.io/docs/minio/linux/index.html?ref=docs-redirect下载minio程序运行文件, wget wget https://dl.min.io/server/minio/release/linux-amd 阅读全文
posted @ 2024-03-21 16:21 难止汗 阅读(401) 评论(0) 推荐(0) 编辑
摘要:CentOS8安装postgresql13和postgis 这里使用的是8.5.2111操作系统版本,首先解决一下网络源的问题。 检验dnf是否能正常使用,顺便安装wget dnf -y install wget 一、安装postgresql13 1、配置postgresql官网提供的网络源 dnf 阅读全文
posted @ 2024-03-12 15:22 难止汗 阅读(561) 评论(0) 推荐(0) 编辑
摘要:RocketMQ搭建(单组节点单副本模式) 1、下载RocketMQ二进制包 wget https://archive.apache.org/dist/rocketmq/5.1.2/rocketmq-all-5.1.2-bin-release.zip 2、解压,移动程序包至安装目录并创建软连接。 u 阅读全文
posted @ 2024-02-20 11:17 难止汗 阅读(135) 评论(0) 推荐(0) 编辑
摘要:一、下载安装包 1、根据rabbitmq版本需求,查看需要安装的erlang版本 https://www.rabbitmq.com/which-erlang.html 2、下载erlang安装包。 rpm包下载:https://github.com/rabbitmq/erlang-rpm/relea 阅读全文
posted @ 2023-12-28 10:25 难止汗 阅读(3125) 评论(0) 推荐(0) 编辑
摘要:需求:因内网环境,无法访问公网,机房新上架一批服务器,使用了centos7的操作系统,为安装软件时方便安装依赖,在内网服务器中搭建了一个centos7的yum源。 yum源服务器:centos7.9系统。 外网服务器操作: 1、在一台能够使用外网的服务器中,搭建好网络源(这里使用阿里的源) curl 阅读全文
posted @ 2023-12-27 11:32 难止汗 阅读(150) 评论(0) 推荐(0) 编辑
摘要:一、环境准备 1、最小化安装linux操作系统:CentOS Linux release 7.9.2009 (Core) 2、根据需求下载nginx和php源码包 nginx:http://nginx.org/en/download.html php:https://www.php.net/rele 阅读全文
posted @ 2023-12-01 08:36 难止汗 阅读(798) 评论(0) 推荐(0) 编辑
摘要:一、部署clickhouse 1、配置yum源进行安装,详情看官网:https://clickhouse.com/docs/zh/getting-started/install 2、使用rpm包安装。 2.1、在https://packages.clickhouse.com/rpm/stable/或 阅读全文
posted @ 2023-11-23 16:47 难止汗 阅读(253) 评论(0) 推荐(0) 编辑
摘要:1、下载redis wget https://download.redis.io/releases/redis-5.0.9.tar.gz 2、解压 tar zxf redis-5.0.9.tar.gz 3、移动redis解压目录 mv redis-5.0.9 /usr/local/redis 4、编 阅读全文
posted @ 2023-11-17 10:04 难止汗 阅读(292) 评论(0) 推荐(0) 编辑
摘要:需求:因内网环境,无法访问公网,机房新上架一批服务器,使用了centos8的操作系统,为安装软件时方便安装依赖,在内网服务器中搭建了一个centos8.5.2111的yum源。 yum源服务器:centos7.9系统。 外网服务器操作: 1、在一台能够使用外网的服务器中,搭建好网络源(这里使用阿里的 阅读全文
posted @ 2023-07-19 17:24 难止汗 阅读(207) 评论(0) 推荐(0) 编辑
摘要:FastDFS 6.9.5 单机版安装 一、下载需要的安装包 cd /usr/local/src #下载fastdfs依赖库 wget https://github.com/happyfish100/libfastcommon/archive/refs/tags/V1.0.67.tar.gz mv 阅读全文
posted @ 2023-06-19 13:35 难止汗 阅读(290) 评论(1) 推荐(0) 编辑
摘要:操作系统:centos7.9 安装数据库:mysql-8.0.33-linux-glibc2.28 一、升级gcc(传送阵:升级gcc) 1、添加mysql8依赖库软连接 mv /lib64/libstdc++.so.6 /lib64/libstdc++.so.6_oldln -s /usr/loc 阅读全文
posted @ 2023-06-18 23:28 难止汗 阅读(4008) 评论(0) 推荐(1) 编辑
摘要:使用Xtrabackup备份和恢复MySQL数据库 测试环境信息:centos7.9 Xtrabackup2.4.28 mysql5.7.33 qpress1.1 一、使用Xtrabackup备份MySQL数据库 1、安装qpress命令 yum install https://repo.perco 阅读全文
posted @ 2023-06-02 16:58 难止汗 阅读(885) 评论(0) 推荐(0) 编辑
摘要:在CI/CD中,使用pipeline脚本,遇到的一个小知识。 pipeline { agent any environment { #自定义一个变量,然后通过shell命令去执行一个获取时间的结果,并赋值给变量。 time= sh(script: "date +%Y%m%d%H%M%S" , ret 阅读全文
posted @ 2023-04-14 15:54 难止汗 阅读(465) 评论(0) 推荐(0) 编辑
摘要:1、下载相应版本的erlang安装包 版本对比 https://www.rabbitmq.com/which-erlang.html mkdir /opt/src cd /opt/src wget http://erlang.org/download/otp_src_21.3.tar.gz 2、安装 阅读全文
posted @ 2023-04-10 14:06 难止汗 阅读(23) 评论(0) 推荐(0) 编辑
摘要:一、安装mongodb服务 1、下载mongodb二进制包,解压,移动到/usr/local/下。 下载地址:https://www.mongodb.com/try/download/community tar zxf mongodb-linux-x86_64-rhel70-4.4.17.tgz m 阅读全文
posted @ 2022-11-02 16:24 难止汗 阅读(890) 评论(0) 推荐(0) 编辑
摘要:1、下载erlang、rabbitmq的rpm安装包。(编译安装传送阵:rabbitmq编译安装) 可以在github上下载自己需要的版本,注意版本对应。 这里使用版本为:erlang-23.3.4.1-1.el7.x86_64.rpm、rabbitmq-server-3.8.14-1.el7.no 阅读全文
posted @ 2022-10-27 11:11 难止汗 阅读(91) 评论(0) 推荐(0) 编辑
摘要:1、安装好网络源(主1.11、从1.12) yum install -y https://download.postgresql.org/pub/repos/yum/reporpms/EL-7-x86_64/pgdg-redhat-repo-latest.noarch.rpm 2、安装postgre 阅读全文
posted @ 2022-10-23 23:05 难止汗 阅读(811) 评论(0) 推荐(0) 编辑
摘要:1、搭建好2台mysql5.7数据库 传送阵:MySQL5.7二进制安装 2、修改主数据库配置文件,在[mysqld]模块中加入以下配置。重启数据库 server-id = 1 #必须唯一 log_bin = mysql-bin #开启及设置二进制日志文件名称 sync_binlog = 0 #生产 阅读全文
posted @ 2022-10-20 15:07 难止汗 阅读(1692) 评论(0) 推荐(0) 编辑

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