摘要: 特别注意: 1、安装完后没有发现 etcd.conf 后来问上海will, 说没有影响,但别人说需要加 2、文档中的所有 export 都是临时的,重启后就会失效,线上都要写死。 export INTERNAL_IP=$(hostname -i | awk '{print $NF}') # 配置启动 阅读全文
posted @ 2018-11-24 22:06 effortsing 阅读(1215) 评论(0) 推荐(0)
摘要: 解决: 下面两种方式都要添加上,速度会很快,启动妙级的 1)在Tomcat环境中解决 可以通过配置JRE使用非阻塞的Entropy Source。 在catalina.sh中加入这么一行: JAVA_OPTS="-Djava.security.egd=file:/dev/./urandom" 即可。 阅读全文
posted @ 2018-11-24 21:25 effortsing 阅读(1127) 评论(0) 推荐(0)
摘要: 部署代码后总是访问到tomcat首页解决 没有把路径写全 访问:养成带上绝对路径的习惯,否则总是访问到tomcat的首页 http://114.116.65.232:8085/ssoserver/ 阅读全文
posted @ 2018-11-24 21:24 effortsing 阅读(436) 评论(0) 推荐(0)
摘要: 环境:centos7.5 ip地址:192.168.0.91 1、安装 JDK Tomcat 的安装依赖 JDK,在安装 Tomcat 之前需要先安装 Java JDK。输入命令 java -version,如果显示 JDK 版本,证明已经安装了 JDK jdk安装请参照:https://www.cnblogs.com/effortsing/p/10012211.html 2、安... 阅读全文
posted @ 2018-11-24 21:22 effortsing 阅读(198) 评论(0) 推荐(0)
摘要: 实例1 [root@lab2 docker-file]# cd server1/[root@lab2 server1]# lsa.sh ddbes-server1-0.0.1-SNAPSHOT.jar Dockerfile [root@lab2 docker-file]# cat server1/D 阅读全文
posted @ 2018-11-24 21:17 effortsing 阅读(179) 评论(0) 推荐(0)
摘要: 1、docker1.7安装 下载安装包 链接:https://pan.baidu.com/s/1NSMX9hIIPLOGiEmpZC7hTA 提取码:ls4p 链接:https://pan.baidu.com/s/1_5o6meEpbBYB3alPUidQmg 提取码:tk34 先卸载自带的docker, yum remove -y docker-ce docker-ce-s... 阅读全文
posted @ 2018-11-24 21:10 effortsing 阅读(344) 评论(0) 推荐(0)
摘要: 1、c盘瘦身 1.1、https://zhidao.baidu.com/question/2057622451987202467.html 1.2、把C盘的swap空间换到D盘 2、windows解除上网限速 XP/WIN7系统都会默认限制20%的网速,我们可以很轻松地解除这个限制,使你的上网速度达 阅读全文
posted @ 2018-11-24 21:02 effortsing 阅读(278) 评论(0) 推荐(0)
摘要: 通过浏览器访问 需要给浏览器生成一个 client 证书,访问 apiserver 的 6443 https 端口时使用 这里使用部署 kubectl 命令行工具时创建的 admin 证书、私钥和上面的 ca 证书,创建一个浏览器可以使用 PKCS#12/PFX 格式的证书: [root@kube- 阅读全文
posted @ 2018-11-24 20:58 effortsing 阅读(717) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2018-11-24 20:55 effortsing 阅读(484) 评论(0) 推荐(0)
摘要: 1、在容器中安装expect报错 [root@kube-node3 target]# docker exec -it 36563e55c42b sh$ sudo apt-get install expectReading package lists... DoneBuilding dependenc 阅读全文
posted @ 2018-11-24 20:53 effortsing 阅读(443) 评论(0) 推荐(0)
摘要: http://www.voidcn.com/article/p-yvnoogkc-ng.html 新接触ubuntu(baseondebian)的人,大多会因为安装中没有提示root密码而不太清楚为什么会这样。如何设定/改变/启用root使用者的密码sudo passwdroot为了启用root帐号 阅读全文
posted @ 2018-11-24 20:52 effortsing 阅读(2428) 评论(0) 推荐(0)
摘要: DevOps 是一个概念,是把软件开发,测试,部署等一些列工作,自动串联起来的意思,为了加快开发效率jenkins 是实现这个理念的一个工具 然后发现gitlab也可以实现DevOps过程 devops的概念也比较笼统,一千个人,有一千个哈姆雷特一般是指建立持续的发布流水线,强调快速而稳定的发布。 阅读全文
posted @ 2018-11-24 20:47 effortsing 阅读(287) 评论(0) 推荐(0)
摘要: https://www.jianshu.com/p/ed0edb93e234 阅读全文
posted @ 2018-11-24 20:46 effortsing 阅读(1280) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/tq08g2z/article/details/79718425 https://www.jianshu.com/p/3507d8b2ac87 报错用下面解决 https://blog.csdn.net/xukangkang1hao/article/det 阅读全文
posted @ 2018-11-24 20:44 effortsing 阅读(214) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/mydeman/article/details/79042848 1、先切换到root账号,用root登录harbor,就可以push $ sudo passwd rootEnter new UNIX password: Retype new UNIX p 阅读全文
posted @ 2018-11-24 20:44 effortsing 阅读(1645) 评论(0) 推荐(0)
摘要: 容器版Jenkins连接Kubernetes 特别注意:必须用谷歌浏览器,而且非容器版jenkins是无法安装kubernetes插件的,所以无法连接k8s 一、环境说明 OS系统版本:Ubuntu 18.04 TLS 软件版本:Jenkins 2.121.2 Kubernetes plugin 1.10.2 Kubernetes集群 1.10.4 二、添加kubernetes ... 阅读全文
posted @ 2018-11-24 20:43 effortsing 阅读(5629) 评论(0) 推荐(0)
摘要: 查看控制台输出最后面一行是jar包的位置 [JENKINS] Archiving /var/lib/jenkins/jobs/moven-test/workspace/target/projectA-1.0-SNAPSHOT.jar to com.tiantian.mavenTest/project 阅读全文
posted @ 2018-11-24 20:43 effortsing 阅读(5996) 评论(0) 推荐(1)
摘要: https://blog.csdn.net/cdnight/article/details/81078191 就是需要切换jenkins用户,用jenkins用户生产的秘钥拷到其他主机上 阅读全文
posted @ 2018-11-24 20:42 effortsing 阅读(1294) 评论(0) 推荐(0)
摘要: 必须切换jenkins用户 https://blog.csdn.net/u013066244/article/details/52694772 http://www.linuxdiyf.com/linux/24626.html 阅读全文
posted @ 2018-11-24 20:41 effortsing 阅读(78) 评论(0) 推荐(0)
摘要: http://www.voidcn.com/article/p-yvnoogkc-ng.html 由于jenkins官方镜像是ubuntu系统,所有啥的都用 sudo 换到root账号,然后登陆harbor,就可以push $ sudo passwd rootEnter new UNIX passw 阅读全文
posted @ 2018-11-24 20:40 effortsing 阅读(2158) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/cdnight/article/details/81078191 安装这篇解决的 正确使用脚本的方式: 1、脚本必须使用jenknins用户,且所有命令必须使用sudo 否则报错 #!/bin/bash -ilexsudo su -s /bin/bash 阅读全文
posted @ 2018-11-24 20:40 effortsing 阅读(6282) 评论(0) 推荐(1)
摘要: https://www.cnblogs.com/yangxia-test/p/4368778.html https://blog.csdn.net/xlyrh/article/details/51384837 Jenkins的授权和访问控制 报错: 提示hudson.security.AccessDeniedException 解决: 修改Jenkins_home/conf... 阅读全文
posted @ 2018-11-24 20:39 effortsing 阅读(1119) 评论(0) 推荐(0)
摘要: 1、登录jenkins报错提示hudson.security.AccessDeniedException 解决: 修改Jenkins_home/config.xml文件里面的一段内容改成如下 true true false 重新启动Jenkins (必须) 2、k8s中的部署的jenkins-master节点,登录jenkins直接是空白页,没有... 阅读全文
posted @ 2018-11-24 20:38 effortsing 阅读(4434) 评论(0) 推荐(0)
摘要: https://www.cnblogs.com/yangxia-test/p/4368778.html https://blog.csdn.net/xlyrh/article/details/51384837 Jenkins的授权和访问控制 https://blog.csdn.net/cdnight 阅读全文
posted @ 2018-11-24 20:37 effortsing 阅读(1211) 评论(0) 推荐(0)
摘要: jekins自动部署tomcat注意事项 千万不要用下面插件推送,报错很多, 要用脚本,一篇博客说的:“我们都是用的脚本,插件报错太多,也不完善” Deploy to container Plugin”, 连接tomcat报错解决 Jenkins部署:The username and password you provided are not correct (error 4... 阅读全文
posted @ 2018-11-24 20:35 effortsing 阅读(626) 评论(0) 推荐(0)
摘要: 1、常用jenkins插件 插件相关下载地址:http://updates.jenkins-ci.org/download/plugins/ git.hpi git-client.hpi gitlab-hook.hpi gitlab-plugin.hpi kubernetes.hpi maven-plugin.hpi publish-over-ssh.hp... 阅读全文
posted @ 2018-11-24 20:30 effortsing 阅读(1183) 评论(0) 推荐(0)
摘要: jenkins安装有下面三种方式,推荐且务必使用第三种方式安装1、rpm包安装jenkins 参考地址 https://www.cnblogs.com/qixing/p/5896512.html rpm安装包下载地址 https://pkg.jenkins.io/redhat-stable/ 配置仓库: sudo wget -O /etc/yum.repos.d/jenkin... 阅读全文
posted @ 2018-11-24 20:23 effortsing 阅读(403) 评论(0) 推荐(0)
摘要: 1、Connecting to node 127.0.0.17000 [ERR] Sorry, can't connect to node 192.168.1.917000 redis集群:Connecting to node 127.0.0.1:7000: [ERR] Sorry, can't c 阅读全文
posted @ 2018-11-24 20:13 effortsing 阅读(3271) 评论(0) 推荐(0)
摘要: redis持久化介绍 https://segmentfault.com/a/1190000015897415 1、 开启aof持久化、以守护进程启动、远程访问先把配置文件拷贝一份到/etc/redis/下面,目录随意 cp redis-3.2.4/redis.conf /etc/redis/ vim 阅读全文
posted @ 2018-11-24 20:07 effortsing 阅读(1255) 评论(0) 推荐(0)
摘要: 安装参照 https://blog.csdn.net/mingliangniwo/article/details/54600640 https://blog.csdn.net/u013820054/article/details/51354189 redis3.25集群配置文件- daemonize 阅读全文
posted @ 2018-11-24 20:05 effortsing 阅读(341) 评论(0) 推荐(0)
摘要: 1、注释掉 bind 127.0.0.1 2、kill-9 杀死进行 3、redis-server + 配置文件进行重启, 阅读全文
posted @ 2018-11-24 20:01 effortsing 阅读(280) 评论(0) 推荐(0)
摘要: systemctl管理Redis启动、停止、开机启动 1. 创建服务 vi /lib/systemd/system/redis.service [Unit] Description=Redis After=network.target [Service] ExecStart=/usr/local/b 阅读全文
posted @ 2018-11-24 20:00 effortsing 阅读(607) 评论(0) 推荐(0)
摘要: 1、You could try using --skip-broken to work around the problem,rpm -Va --nofiles --nodigest问题 解决方法如下: yum clean allrpm --rebuilddbyum update 或者换一个yum源 阅读全文
posted @ 2018-11-24 16:45 effortsing 阅读(158) 评论(0) 推荐(0)
摘要: centos7配置本地yum源 先从官网下载centos7镜像 以centos7.4 为例 CentOS-7-x86_64-Everything-1804 [root@kangvcar ~]# mv CentOS-7-x86_64-Everything-1804 /dev/cdrom[root@ka 阅读全文
posted @ 2018-11-24 16:42 effortsing 阅读(956) 评论(0) 推荐(0)
摘要: echo 用法 echo加不加双引号都是一样的效果 #!/bin/bash #this script display the date and who's login on echo "the time and date are:" date echo let's see who's login the system: who #!/bin/bash #this script disp... 阅读全文
posted @ 2018-11-24 16:32 effortsing 阅读(334) 评论(0) 推荐(0)
摘要: bbs.spoto.net/forum-178-1.html -----雏鹰部落 GNS3安装 1、安装的所有目录不能使用中文 ISO如何操作 securecrt如何使用建立会话:之前总是连不上的原因是没有选 telnet协议,而不是ssh协议,要注意。 cmd如何进入GNS3模式:telnet localhost 2001 GNS3使用过程以及两个路由怎样连接 打开软件... 阅读全文
posted @ 2018-11-24 16:30 effortsing 阅读(1119) 评论(0) 推荐(0)
摘要: 1、查看硬盘信息,看看是否需要分区 [root@host-10-1-1-68 ~]# fdisk -l Disk /dev/vda: 21.5 GB, 21474836480 bytes, 41943040 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 51... 阅读全文
posted @ 2018-11-24 16:27 effortsing 阅读(349) 评论(0) 推荐(0)
摘要: centos7.5修改默认SSH端口 linux SSH默认端口是22,不修改的话存在一定的风险,要么是被人恶意扫描,要么会被人破解或者攻击,所以我们需要修改默认的SSH端口 1、修改22端口为62000 编辑配置文件 vi /etc/ssh/sshd_config 默认端口是22,并且已经被注释掉 阅读全文
posted @ 2018-11-24 16:25 effortsing 阅读(614) 评论(0) 推荐(0)
摘要: 地址: http://www.zrblog.net/10daoLinode 还可以 相对较稳定 5刀一个月 买个日本节点 自己买个外网服务器搭个ss就可以啦 国内的官网www.ruixunidc.net 阅读全文
posted @ 2018-11-24 16:20 effortsing 阅读(4) 评论(0) 推荐(0)
摘要: 1:记录未修改之前的ulimit值 [root@bogon ~]# ulimit -a 2:修改配置文件 vim /etc/security/limits.conf 在后面添加 * soft nofile 100000 * hard nofile 100000 * soft nproc 65535 阅读全文
posted @ 2018-11-24 16:19 effortsing 阅读(6908) 评论(0) 推荐(1)
摘要: 1、 其他目录下的。网页文件 必须写成 index.html 不能写成 sina.html,更不能写成test.index.html 否则报错,这是格式 2、配置域名必须要写到host里面;和通过百度访问域名是另一回事;通过 curl+ 域名访问只能对应80端口,不能写成8083其他端口 ,如下 server { listen 80; 注意:写... 阅读全文
posted @ 2018-11-24 16:13 effortsing 阅读(211) 评论(0) 推荐(0)
摘要: 1、 nginx: [error] open() "/var/run/nginx.pid" failed (2: No such file or directory) 解决: [root@TEST nginx]# sudo nginx -c /etc/nginx/nginx.conf [root@TEST nginx]# nginx -s reload 2、 [root@ngi... 阅读全文
posted @ 2018-11-24 16:12 effortsing 阅读(308) 评论(0) 推荐(0)
摘要: 1、重要:修改配置文件使用虚拟机,否则怎么配置都不生效,添加如下用户 [root@host-10-1-1-161 html]# ll /etc/nginx/nginx.conf -rw-r--r-- 1 root root 345 Aug 26 10:41 /etc/nginx/nginx.conf [root@host-10-1-1-161 html]# vi /etc/nginx/ngin... 阅读全文
posted @ 2018-11-24 16:11 effortsing 阅读(1051) 评论(0) 推荐(0)
摘要: 在主配置文件http模块最后添加如下一句话 [root@host-10-1-1-161 ~]# vi /etc/nginx/nginx.conf include /etc/nginx/conf.d/*.conf; [root@host-10-1-1-161 ~]# mkdir -p /etc/nginx/conf.d 把主配置文件的server复制到conf.d下面就可以 主配置文... 阅读全文
posted @ 2018-11-24 16:10 effortsing 阅读(981) 评论(0) 推荐(0)
摘要: 403禁止访问解决 1、 重要:修改配置文件使用虚拟机,否则怎么配置都不生效,添加如下用户 [root@host-10-1-1-161 html]# ll /etc/nginx/nginx.conf -rw-r--r-- 1 root root 345 Aug 26 10:41 /etc/nginx/nginx.conf [root@host-10-1-1-161 html]# vi /e... 阅读全文
posted @ 2018-11-24 16:09 effortsing 阅读(1191) 评论(0) 推荐(0)
摘要: 1、环境 nginx 10.1.1.161 公网:123.58.251.166 tomcat 10.1.1.103 2、远端tomcat 配置 [root@host-10-1-1-103 ~]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Addr... 阅读全文
posted @ 2018-11-24 16:05 effortsing 阅读(321) 评论(0) 推荐(0)
摘要: 1、环境 nginx 10.1.1.161 公网:123.58.251.166 tomcat 10.1.1.103 2、tomcat 配置 [root@host-10-1-1-103 ~]# netstat -tnlp Active Internet connections (only servers) Proto Recv-Q Send-Q Local Addres... 阅读全文
posted @ 2018-11-24 16:04 effortsing 阅读(371) 评论(0) 推荐(0)
摘要: 环境: 本地外网ip:123.58.251.166 1、配置index.html网页 [root@host-10-1-1-161 conf.d]# cat /web/sing/index.html www.test1.com [root@host-10-1-1-161 conf.d]# cat /root/html/index.html www.test2.com 2、配... 阅读全文
posted @ 2018-11-24 16:02 effortsing 阅读(356) 评论(0) 推荐(0)
摘要: 环境: 本地外网ip:123.58.251.166 1、配置index.html网页 [root@host-10-1-1-161 conf.d]# cat /web/sing/index.html www.test1.com [root@host-10-1-1-161 conf.d]# cat /root/html/index.html www.test2.com 2、配... 阅读全文
posted @ 2018-11-24 16:02 effortsing 阅读(1415) 评论(0) 推荐(0)
摘要: 环境: 本地外网ip:123.58.251.166 1、配置index.html网页 [root@host-10-1-1-161 conf.d]# cat /web/sing/index.html www.test1.com 2、配置conf.d目录下配置文件 [root@host-10-1-1-161 conf.d]# pwd /etc/nginx/conf.d [root... 阅读全文
posted @ 2018-11-24 15:59 effortsing 阅读(278) 评论(0) 推荐(0)
摘要: 环境: 本地外网ip:123.58.251.166 1、配置index.html网页 [root@host-10-1-1-161 conf.d]# cat /web/sing/index.html www.test1.com 2、配置conf.d目录下配置文件 [root@host-10-1-1-161 conf.d]# pwd /etc/nginx/conf.d [roo... 阅读全文
posted @ 2018-11-24 15:58 effortsing 阅读(1022) 评论(0) 推荐(0)
摘要: 找到安装nginx的源码根目录,如果没有就下载新的安装包 tar xvzf nginx-1.3.2.tar.gz 查看ngixn版本极其编译参数 /usr/local/nginx/sbin/nginx -V 进入nginx源码目录 cd nginx-1.3.2 以下是重新编译的代码和模块 ./configure --prefix=/usr/local/nginx--with-ht... 阅读全文
posted @ 2018-11-24 15:47 effortsing 阅读(1689) 评论(0) 推荐(0)
摘要: 安装nexus 参照地址: https://www.cnblogs.com/shown1985/p/6492313.html 使用地址:https://www.aliyun.com/jiaocheng/119209.html?spm=5176.100033.2.5.JcqQHt 传统安装nexus, 阅读全文
posted @ 2018-11-24 15:41 effortsing 阅读(228) 评论(0) 推荐(0)
摘要: 先安装jdk、jre,maven需要jdk、jre支持 1、安装 jdk 卸载自带jdk rpm -qa | grep jdk rpm -e --nodeps 下载 JDK JDK 下载地址:https://pan.baidu.com/s/1KDpN5xTBPYnVZAPiwRFycg 提取码:4e4m jdk版本: jdk-8u171-linux-x64.tar 不能用... 阅读全文
posted @ 2018-11-24 15:35 effortsing 阅读(270) 评论(0) 推荐(0)
摘要: 参照链接:http://blog.csdn.net/bravemelon/article/details/64925499 centOS 7 下安装 Nginx yum -y groupinstall "Development Tools" yum -y install wget yum install gcc-c++ pcre pcre-devel zlib zlib-devel ope... 阅读全文
posted @ 2018-11-24 15:20 effortsing 阅读(333) 评论(0) 推荐(0)
摘要: 转自 https://blog.csdn.net/single6/article/details/81176213 1:内存使用,可以用free -g来查 当观察到free栏已为0的时候,表示内存基本被吃完了,那就释放内存吧。 释放内存: sync && echo 1 > /proc/sys/vm/drop_caches sync表示将内存缓存区内容立即同步到磁盘,为了保证安全可... 阅读全文
posted @ 2018-11-24 15:19 effortsing 阅读(938) 评论(0) 推荐(0)
摘要: Keepalived+Nginx实现高可用Web负载均衡 Master 192.168.0.69 nginx、keepalived Centos7.4backup 192.168.0.70 nginx、keepalived Centos7.4vip(虚拟IP)192.168.0.180 1、两台都安 阅读全文
posted @ 2018-11-24 15:17 effortsing 阅读(398) 评论(0) 推荐(0)
摘要: 参照文档 https://blog.csdn.net/lxn19860201/article/details/51422489 1、Sep 08 03:02:02 master3 keepalived[12327]: Starting keepalived: /bin/bash: keepalive 阅读全文
posted @ 2018-11-24 15:17 effortsing 阅读(140) 评论(0) 推荐(0)
摘要: 1、[root@bogon keepalived-1.3.5]# ./configure --prefix=/usr/local/keepalived *** WARNING - this build will not support IPVS with IPv6. Please install l 阅读全文
posted @ 2018-11-24 15:14 effortsing 阅读(375) 评论(0) 推荐(0)
摘要: 转自 https://www.jianshu.com/p/95cc6e875456 Keepalived+haproxy实现高可用负载均衡 Master 192.168.0.69 haproxy、keepalived Centos7.4 backup 192.168.0.70 haproxy、keepalived Centos7.4 vip(虚拟IP)... 阅读全文
posted @ 2018-11-24 15:12 effortsing 阅读(189) 评论(0) 推荐(0)
摘要: 1、二进制安装 jdk 卸载自带jdk rpm -qa | grep jdk rpm -e --nodeps 下载 JDK JDK 下载地址:https://pan.baidu.com/s/1KDpN5xTBPYnVZAPiwRFycg 提取码:4e4m jdk版本: jdk-8u171-linux-x64.tar 不能用 wget 只能下载了上传。 解压安装 jdk ... 阅读全文
posted @ 2018-11-24 15:10 effortsing 阅读(407) 评论(0) 推荐(0)
摘要: [root@kube-node1 ~]# cat /etc/haproxy/haproxy.cfg global log /dev/log local0 log /dev/log local1 notice chroot /var/lib/haproxy stats socket /var/run/haproxy-admin.sock mode 660... 阅读全文
posted @ 2018-11-24 15:09 effortsing 阅读(421) 评论(0) 推荐(0)
摘要: 1、有一次访问出现 503 错误 http://192.168.0.200:10080 haproxy 503 service unavailable no server is avaible to handle this request 解决: 查看haproxy的配置文件这一项 listen admin_stats 里面的 stats uri /status 所以访问时... 阅读全文
posted @ 2018-11-24 15:08 effortsing 阅读(3161) 评论(0) 推荐(0)
摘要: 转自 https://blog.csdn.net/libaineu2004/article/details/79129684 一、下载安装包https://blog.csdn.net/libaineu2004/article/details/79129684 http://pkgs.fedoraproject.org/repo/pkgs/haproxy/?ftp下载 http://c... 阅读全文
posted @ 2018-11-24 15:07 effortsing 阅读(351) 评论(0) 推荐(0)
摘要: https://blog.csdn.net/xukangkang1hao/article/details/80756085 gitlab使用webhook向jenkins发送请求,报错 Requests to the local network are not allowed 以下是官方给出解释: 阅读全文
posted @ 2018-11-24 15:05 effortsing 阅读(6234) 评论(0) 推荐(0)
摘要: 转自 https://blog.csdn.net/u010042585/article/details/79378726 将本地项目push到GitHub时遇到的问题 1、$ git remote add origin时出现fatal: remote origin already exists.错误 只要执行一下git remote rm origin 在执行git remote a... 阅读全文
posted @ 2018-11-24 14:58 effortsing 阅读(220) 评论(0) 推荐(0)
摘要: 环境: 内存必须5G以上 centos7.5 服务端:192.168.0.74 客户端:192.168.0.73 GitLab的安装 1、在CentOS系统上,下面的命令将会打开系统防火墙HTTP和SSH访问。 yum install curl policycoreutils openssh-server openssh-clients -y systemctl enable s... 阅读全文
posted @ 2018-11-24 14:56 effortsing 阅读(1200) 评论(0) 推荐(0)
摘要: 参照地址: https://blog.csdn.net/pzlsun/article/details/52497839 http://blog.51cto.com/12227558/2060262 https://www.linuxidc.com/Linux/2017-07/145879.htm [root@lab2 named]# vi /etc/named.conf // // ... 阅读全文
posted @ 2018-11-24 14:48 effortsing 阅读(147) 评论(0) 推荐(0)
摘要: 转自 https://www.cnblogs.com/niyeshiyoumo/p/6762193.html centos7 选定默认启动内核,及删除无用内核 #使用cat /boot/grub2/grub.cfg |grep menuentry 查看系统可用内核 [root@bigapp-slave27 ~]# cat /boot/grub2/grub.cfg |grep menuen... 阅读全文
posted @ 2018-11-24 14:46 effortsing 阅读(1945) 评论(0) 推荐(0)
摘要: 1、安装ansible 1.1、源码安装 源码安装参照 https://www.cnblogs.com/guxiong/p/7218717.html [root@kube-node3 ~]# tar xf ansible-1.7.2.tar.gz -C /usr/local/ [root@kube-node3 ~]# cd /usr/local/ansible-1.7.2/ [root@... 阅读全文
posted @ 2018-11-24 14:40 effortsing 阅读(3415) 评论(0) 推荐(0)
摘要: 问题: 某天发现公司手机打卡app时间和百度时间差30秒解决 分析: nginx 192.168.0.23 外网 : 220.236.7.43 mysql主 192.168.0.24 mysql主 192.168.0.25 tomcat 192.168.0.26 流量走向:192.168.0.26 阅读全文
posted @ 2018-11-24 14:35 effortsing 阅读(454) 评论(0) 推荐(0)
摘要: Centos7配置ntp时间服务器 Centos7配置时间服务器,一个服务端,多个客户端,客户端去同步服务端 服务端: 1、先修改时区,否则即使配置完ntp时间也不对,修改时区参照:https://www.cnblogs.com/effortsing/p/10070673.html 2、安装ntp服 阅读全文
posted @ 2018-11-24 11:30 effortsing 阅读(7078) 评论(0) 推荐(0)
摘要: 添加开机自启文件 [root@bogon ~]# cat /lib/systemd/system/nginx.service #!/bin/bash[Unit]Description=nginxAfter=network.target[Service]Type=forkingExecStart=/u 阅读全文
posted @ 2018-11-24 11:26 effortsing 阅读(220) 评论(0) 推荐(0)
摘要: 1、Can't connect to local MySQL server through socket 'tmpmysql.sock' (2) 原因是mysql根本没有启动 2、Access denied for user 'root'@'localhost' (using password YE 阅读全文
posted @ 2018-11-24 11:13 effortsing 阅读(492) 评论(0) 推荐(0)
摘要: 配置变更思路: 扩大MySQL连接数至2000,同时扩大操作系统最大文件描述符;扩大innodb缓存池 操作步骤: vi /etc/my.cnf max_connections = 2000innodb_buffer_pool_size = 20M vi /usr/lib/systemd/syste 阅读全文
posted @ 2018-11-24 10:58 effortsing 阅读(1590) 评论(0) 推荐(0)
摘要: CentOS下mysql数据库常用命令总结1.更改root密码 mysqladmin -uroot password 'yourpassword' 2.远程登陆mysql服务器 mysql -uroot -p -h192.168.137.10 -P3306 3.查询数据库 show database 阅读全文
posted @ 2018-11-24 10:57 effortsing 阅读(2446) 评论(0) 推荐(0)
摘要: mysql> create database ceshi; Query OK, 1 row affected (0.01 sec) 给数据库授权,否则程序时无法连接ceshi数据库的,每次创建一个数据库都要记得给数据库授权。 mysql> grant all privileges on ceshi.* TO 'root'@'%' identified by 'jenkins@123' wit... 阅读全文
posted @ 2018-11-24 10:50 effortsing 阅读(719) 评论(0) 推荐(0)
摘要: 1创建账号授权 grant all privileges on jenkinsddbes.* to 'jenkinsddbes'@'%' identified by '1iN@Da12tA&*ba33gf8'; 2、导出 mysqldump -u root -p jenkinsddbes > 201 阅读全文
posted @ 2018-11-24 10:41 effortsing 阅读(8436) 评论(1) 推荐(0)
摘要: 1、mysql的root用户无法给普通用户授权问题处理 update mysql.user set Grant_priv='Y' where User='root' and Host='%'; flush privileges;(刷新权限) 2、mysql创建用户并且授权 不需要单独创建用户、单独授 阅读全文
posted @ 2018-11-24 10:38 effortsing 阅读(336) 评论(0) 推荐(0)
摘要: 1、mysql开启函数功能 MySQL函数不能创建的解决方法 在使用MySQL数据库时,有时会遇到mysql函数不能创建的情况。 出错信息大致类似: ERROR 1418 (HY000): This function has none of DETERMINISTIC, NO SQL, or REA 阅读全文
posted @ 2018-11-24 10:22 effortsing 阅读(1501) 评论(0) 推荐(0)
摘要: 1、查看Grant_priv是Y还是N 执行下面 select * from mysql.user where User='root' and Host='%'\G; 下图查看结果为Grant_priv是Y,如果是N,执行下面 update mysql.user set Grant_priv='Y' 阅读全文
posted @ 2018-11-24 10:13 effortsing 阅读(2520) 评论(0) 推荐(0)