摘要: 报错:centos6 yum安装软件报错Cannot retrieve repository metadata (repomd.xml) for repository: epel 的解决办法原因分析:官方已经停止更新centos6相关的源,可以使用其他源替代报错信息:# yum clean all 阅读全文
posted @ 2021-11-11 11:42 reblue520 阅读(1332) 评论(0) 推荐(0) 编辑
摘要: 工具下载地址https://src.fedoraproject.org/repo/pkgs/stress/stress-1.0.4.tar.gz/a607afa695a511765b40993a64c6e2f4/stress-1.0.4.tar.gzhttps://ftp.osuosl.org/pu 阅读全文
posted @ 2021-10-26 11:04 reblue520 阅读(922) 评论(0) 推荐(0) 编辑
摘要: 虚拟机拷贝自其他服务器,有时候IP,网络都配置正确就是没法ping 通网络,重启虚拟机也没用 此时将网卡删除,重新添加 systemctl restart network 即可 阅读全文
posted @ 2021-10-21 17:39 reblue520 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 初始化数据库的sql文件 # cat lagou.sql SET NAMES utf8; DROP DATABASE IF EXISTS lagou; create database lagou CHARSET=utf8 COLLATE=utf8_general_ci; use lagou; DRO 阅读全文
posted @ 2021-10-21 13:44 reblue520 阅读(196) 评论(0) 推荐(0) 编辑
摘要: windows日志报错,文件写入不进去 A File Server Resource Manager Service email action could not be run because there is no SMTP server set. Use the FSRM management 阅读全文
posted @ 2021-08-13 18:02 reblue520 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 现象:通过jenkins发布代码后,执行远程命令,一直卡在执行远程命令那里打转,无法退出 脚本 #!/bin/bash # 根据参数,执行进程的启动 停止 重启等 #source /etc/profile # 非apache用户运行脚本,则退出 if [ `whoami` != "apache" ] 阅读全文
posted @ 2021-08-13 11:13 reblue520 阅读(660) 评论(0) 推荐(0) 编辑
摘要: 基于 centos:7 镜像制作自定义mycentos:v1# 交互式运行centos:7# docker run -it --name=mycentos# 在运行的mycentos容器中修改网络# vi /etc/profileexport http_proxy=http://10.11.0.15 阅读全文
posted @ 2021-08-10 14:11 reblue520 阅读(177) 评论(0) 推荐(0) 编辑
摘要: 1、部署gitlab 1.1 部署gitlab docker run -d \ --name gitlab \ -p 8443:443 \ -p 9999:80 \ -p 9998:22 \ -v /data/gitlab/config:/etc/gitlab \ -v /data/gitlab/l 阅读全文
posted @ 2021-08-10 12:00 reblue520 阅读(128) 评论(0) 推荐(0) 编辑
摘要: php7.2安装报错pgsql和pdo_pgsql报错/usr/lib64/libldap_r-2.4.so.2: undefined symbol: ber_sockbuf_io_udp报错如下:[05-Aug-2021 06:55:39 UTC] PHP Warning: PHP Startup 阅读全文
posted @ 2021-08-06 14:09 reblue520 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 公司window服务器上面有个nginx在跑,重启服务器后没有自动启动,需要手动运行nginx,如果是非正常重启业务可能就中断了1、下载WinSW(window service wraper) 地址:https://github.com/kohsuke/winsw/releases 里面有不同版本, 阅读全文
posted @ 2021-08-04 13:34 reblue520 阅读(621) 评论(0) 推荐(0) 编辑
摘要: 1.安装 doxygenyum install doxygen -y# 编译安装openccgit clone https://github.com/BYVoid/OpenCC.gitcd OpenCC/make -j 2 && make install > 这个安装在/usr/share/open 阅读全文
posted @ 2021-07-28 17:33 reblue520 阅读(161) 评论(0) 推荐(0) 编辑
摘要: centos7环境下安装mongodb3.4.24主从复制集群并设置密码1.安装mongodb添加运行mongodb的用户mongo,避免直接使用root带来安全隐患groupadd -g 1608 mongouseradd -u 1608 -g mongo mongo#下载源码包wget http 阅读全文
posted @ 2021-07-16 21:06 reblue520 阅读(349) 评论(0) 推荐(0) 编辑
摘要: Failed to connect to repository : Command "git ls-remote -h HEAD" returned status code 128:stdout: stderr: fatal: repository 'http://ytgit.chinasoft.c 阅读全文
posted @ 2021-07-05 20:41 reblue520 阅读(2000) 评论(0) 推荐(0) 编辑
摘要: 配置harbor支持域名以https方式对外提供服务harbor服务器外网ip: 1.1.1.2内网IP: 192.168.254.1681.修改docker-compose.yml文件主要是修改 nginx 对外暴露端口为443 proxy: image: goharbor/nginx-photo 阅读全文
posted @ 2021-06-11 09:43 reblue520 阅读(793) 评论(0) 推荐(0) 编辑
摘要: 需求描述:公司内部的git仓库 golang 服务端代码需要以docker打包的方式发布到外网多台服务器中,作为api接口服务启动,然后nginx反向代理到这几台机器中如果不以docker的方式启动直接编译发布启动也是可以的,以docker启动方式主要是为后续上k8s等类似的平台做技术铺垫大概的思路 阅读全文
posted @ 2021-05-28 22:11 reblue520 阅读(467) 评论(0) 推荐(0) 编辑
摘要: 一些业务站点比较关键,比如API接口或者web站点,需要对出现的访问http状态码进行监控,比如监控10分钟以内,或者最近的1000次访问,当出现的50x状态码过多时触发告警,可以让一些问题暴露出来及时处理 1.编写脚本 # cat /usr/local/zabbix_agents_3.2.0/sc 阅读全文
posted @ 2021-05-26 14:33 reblue520 阅读(136) 评论(0) 推荐(0) 编辑
摘要: devops之elk日志收集系统logstash的常见使用方法 编写简单配置 [root@server01 logstash-6.2.4]# cat config/logstash.conf input { stdin { } } output { stdout{ codec => rubydebu 阅读全文
posted @ 2021-05-15 11:56 reblue520 阅读(278) 评论(0) 推荐(0) 编辑
摘要: mkdir -p /usr/local/src/ffmpeg_sourcescd /usr/local/src/ffmpeg_sources# 安装 nasmcd /usr/local/src/ffmpeg_sourcescurl -O -L https://www.nasm.us/pub/nasm 阅读全文
posted @ 2021-05-13 15:01 reblue520 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 系统并发量大了以后容易出现性能瓶颈,快速找出占用内存和cpu资源较多的进程,可以为快速定位问题提供参考找出top10内存和cpu的进程可以作为参考1.编写监控脚本自动发现进程脚本# vim /usr/local/zabbix_agents_3.2.0/scripts/discovery_proces 阅读全文
posted @ 2021-04-22 10:26 reblue520 阅读(476) 评论(0) 推荐(0) 编辑
摘要: CentOS镜像 # docker pull centos:centos6 # docker pull centos:centos7 默认会拉取centos6/centos7 最新版本的镜像 如果你想拉取指定版本的镜像怎么办? 看CentOS官方在Dockerhub上的tag: https://hu 阅读全文
posted @ 2021-04-16 16:03 reblue520 阅读(1051) 评论(0) 推荐(0) 编辑
摘要: devops之 gitlab-ci + mesos + docker + marathon 持续发布①mesos集群环境的搭建 公司内部搭建gitlab,安装gitlab-runner持续集成服务,通过修改 .gitlab-ci.yml 文件触发本地docker镜像打包推送到外网镜像仓库,然后通过m 阅读全文
posted @ 2021-04-16 15:08 reblue520 阅读(221) 评论(0) 推荐(0) 编辑
摘要: zabbix监控gpu 安装监控工具 yum install munin --nogpgcheck -y 安装显卡驱动 1.选择显卡: https://www.nvidia.com/Download/index.aspx?lang=en-us 2.下载 NVIDIA-Linux-x86_64-450 阅读全文
posted @ 2021-04-15 16:14 reblue520 阅读(790) 评论(0) 推荐(0) 编辑
摘要: zabbix添加邮件方式报警并实现分组报警的功能 1.编写发送邮件的python脚本# vim /usr/local/zabbix-3.2.0/share/zabbix/alertscripts]# cat send_mail.py #!/usr/bin/python #coding:utf-8 i 阅读全文
posted @ 2021-04-01 18:03 reblue520 阅读(88) 评论(0) 推荐(0) 编辑
摘要: 如果服务器是通过代理上网的,可以通过一下方式设置避免服务器不能联网安装依赖问题 # more /usr/local/maven/conf/settings.xml <?xml version="1.0" encoding="UTF-8"?> <settings xmlns="http://maven 阅读全文
posted @ 2021-04-01 10:29 reblue520 阅读(463) 评论(0) 推荐(0) 编辑
摘要: centos7.8环境安装opencv-python # 安装好python3.6.9以后要处理python3命令 # ln -s /usr/local/python-3.6.9/bin/pip3 /usr/bin/pip3 # ln -s /usr/local/python-3.6.9/bin/p 阅读全文
posted @ 2021-03-25 13:50 reblue520 阅读(406) 评论(0) 推荐(0) 编辑