摘要: pprof简介 想要进行性能优化,Go本身自带的工具链就包含了性能分析工具,而且也非常棒,pprof就是Go性能分析的利器,它是Go语言自带的包,有如下两种: runtime/pprof:采集程序(非 Server)的运行数据进行分析 net/http/pprof:采集 HTTP Server 的运 阅读全文
posted @ 2024-01-20 10:59 誓鼎 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 准备工作:主192.168。200.51 从192.168。200.53 主从服务器需要有相同的初态 1、将主服务器要同步的数据库枷锁,避免同步时数据发生改变 mysql>use db; mysql>flush tables with read lock; 2、将主服务器数据库中数据导出 mysql 阅读全文
posted @ 2023-02-01 13:37 誓鼎 阅读(38) 评论(0) 推荐(0) 编辑
摘要: 安装 yum 源 需要在系统上启用 MySQL 5.7 Community Release YUM 存储库。用于 yum 存储库配置的 rpm 包可在 MySQL 的官方网站上找到。 首先将最新的MySQL GPG密钥导入您的系统 sudo rpm --import https://repo.mys 阅读全文
posted @ 2023-01-31 11:24 誓鼎 阅读(3852) 评论(0) 推荐(0) 编辑
摘要: 安装Docker: note: https://docs.docker.com/engine/install/centos/ 1 yum install -y yum-utils 2 yum-config-manager \ --add-repo \ https://download.docker. 阅读全文
posted @ 2022-07-29 21:13 誓鼎 阅读(6234) 评论(0) 推荐(1) 编辑
摘要: 一 Linux 下安装部署 第一种方法:docker-compose 安装方式 1.1 创建 docker-compose.yml 文件 version: '3.1' services: elasticsearch: container_name: elasticsearch image: dock 阅读全文
posted @ 2020-12-06 17:01 誓鼎 阅读(919) 评论(0) 推荐(0) 编辑
摘要: Git 全局设置 git config --global user.name "Administrator" git config --global user.email "admin@example.com" 创建新版本库 git clone http://192.168.200.80/root/ 阅读全文
posted @ 2024-05-23 16:43 誓鼎 阅读(1) 评论(0) 推荐(0) 编辑
摘要: C盘是系统盘,考虑到很多程序都会占用系统盘资源,所以500G的固态硬盘究竟,一开始C盘就划了300G的大小。但即便这样,不知不觉中,C盘的空间也快不够用了。 分析了一下C盘的空间占用情况,发现.nuget文件夹大概有40多G的大小。这个不能忍,直接上网搜了一下移到其它盘的方法。 下面我写一下我的大概 阅读全文
posted @ 2024-05-08 17:38 誓鼎 阅读(28) 评论(0) 推荐(0) 编辑
摘要: 检查java8 没有就安装 java -version 安装jdk1.8 yum -y install java-1.8.0-openjdk 下载kafka (网速很慢) wget https://dlcdn.apache.org/kafka/3.5.0/kafka_2.13-3.5.0.tgz 解 阅读全文
posted @ 2023-11-18 12:05 誓鼎 阅读(61) 评论(0) 推荐(0) 编辑
摘要: ## Gitlab 修改默认端口 ### 修改配置 gitlab默认需要使用80 8080 等端口,我的centos上有使用这些端口的其他软件;所以必须更改。 步骤如下: 1. 修改 gitlab.yml 2. 进入目录: /var/opt/gitlab/gitlab-rails/etc 3. 将g 阅读全文
posted @ 2023-07-19 10:01 誓鼎 阅读(1718) 评论(0) 推荐(0) 编辑
摘要: ## 1.添加Nginx到YUM源 添加CentOS 7 Nginx yum资源库,打开终端,使用以下命令: ``` sudo rpm -Uvh http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.n 阅读全文
posted @ 2023-06-16 10:28 誓鼎 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 安装gitlab-runner 主要介绍两种安装方式:docker方式和rpm方式 docker安装方式 在包市场里面找到对应的gitlab-runner: https://hub.docker.com/r/gitlab/gitlab-runner/tags 1 查看gitlab版本 docker 阅读全文
posted @ 2023-04-23 16:34 誓鼎 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 名词解释 supervisor:要安装的软件的名称。 supervisord:装好supervisor软件后,supervisord用于启动supervisor服务。 supervisorctl:用于管理supervisor配置文件中program 安装依赖 yum install epel-rel 阅读全文
posted @ 2023-03-21 13:26 誓鼎 阅读(923) 评论(0) 推荐(0) 编辑
摘要: Centos7 出现 Unable to connect to any of the specified MySQL hosts,而window不会 MySql.Data.MySqlClient.MySqlException (0x80004005): Unable to connect to an 阅读全文
posted @ 2023-03-15 13:17 誓鼎 阅读(614) 评论(0) 推荐(0) 编辑
摘要: XMLSchedulingDataProcessor 源码 /* * Copyright 2001-2010 Terracotta, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); you may no 阅读全文
posted @ 2023-03-06 17:43 誓鼎 阅读(36) 评论(0) 推荐(0) 编辑