Jenkins升级失败的排查过程
摘要:某日早晨,手动点击了jenkins的升级提示,结果就起不来了。错误信息很少,日志也没输出。 排查过程: 1、首先怀疑是打包机的设备问题,来回折腾重启了好几次,无果。 2、怀疑是升级过程导致的数据损坏。 手动下载war包到指定目录下,直接运行是没问题的。但是通过systemctl无法运行。。。 网络搜
阅读全文
posted @
2023-10-24 19:28
麦克煎蛋
阅读(393)
推荐(0) 编辑
mongodb主从以及auth主从 配置详解
摘要:1、主服务器配置#auth = truedbpath = /data/mongodb/dblogpath = /data/mongodb/log/mongodb.logport = 27017fork = true #以守护程序的方式启用,即在后台运行nohttpinterface = truelo...
阅读全文
posted @
2015-12-31 17:41
麦克煎蛋
阅读(948)
推荐(0) 编辑
Apache Maven 入门篇
摘要:Apache Maven 入门篇 ( 上 ) http://www.oracle.com/technetwork/cn/community/java/apache-maven-getting-started-1-406235-zhs.html Apache Maven 入门篇 ( 下 ) http:
阅读全文
posted @
2015-10-20 17:38
麦克煎蛋
阅读(155)
推荐(0) 编辑
linux CentOS 系统下如何将php和mysql命令加入到环境变量中
摘要:在Linux CentOS系统上安装完php和MySQL后,为了使用方便,需要将php和mysql命令加到系统命令中,如果在没有添加到环境变量之前,执行“php -v”命令查看当前php版本信息时时,则会提示命令不存在的错误,下面我们详细介绍一下在linux下将php和mysql加入到环境变量中的方
阅读全文
posted @
2015-05-22 14:39
麦克煎蛋
阅读(184)
推荐(0) 编辑
ABORT: Can't find command 'my_print_defaults'.
摘要:解决办法是输入如下命令: export PATH=/usr/local/mysql/bin:$PATH 将/usr/local/mysql/bin加到$PATH环境变量里
阅读全文
posted @
2015-05-15 14:56
麦克煎蛋
阅读(1628)
推荐(0) 编辑
安装文件报错error while loading shared libraries: libssl.so.6
摘要:http://www.openssl.org/source/ 这里下载http://www.openssl.org/source/openssl-1.0.0r.tar.gz安装命令为:tar -zxvf opensslopenssl-1.0.0r.tar.gzcd openssl-1.0.0r./c...
阅读全文
posted @
2015-05-13 16:31
麦克煎蛋
阅读(1072)
推荐(0) 编辑
nginx交替出现404和200
摘要:今天在调试接口的时候,发现一个奇怪的问题,服务器接口交替返回404和200错误。排查的时候发现nginx下有大量的404错误记录,而tomcat有两个,一个有正常的访问记录,而另一个虽然启动正常,但无任何记录。这时候访问tomcat下的静态页面也有此问题,因此断定java程序无误。排查了半天,最后发现其中一个tomcat状态有问题,将进程杀死后重启一切ok,而之前用脚本重启没起到相应的作用。估计启动脚本有问题,以后注意点。
阅读全文
posted @
2013-10-10 20:21
麦克煎蛋
阅读(1786)
推荐(0) 编辑
MySQL5.6.14从安装到启动全过程
摘要:1、下载 地址:http://dev.mysql.com/downloads/mysql/ 这里选择的是Linux-Generic平台,下载了MySQL-5.6.14-1.linux_glibc2.5.i386.rpm-bundle.tar 2、解压安装 rpm -ivh MySQL-server-
阅读全文
posted @
2013-10-07 16:44
麦克煎蛋
阅读(1270)
推荐(0) 编辑
CentOS下配置iptables防火墙
摘要:转载自http://www.cnblogs.com/hiroada/articles/2220809.html Linux上iptables防火墙的基本应用教程 /etc/init.d/iptables restart #重启防火墙以便改动生效,当然如果不觉得麻烦也可重启系统(命令:reboot)
阅读全文
posted @
2012-06-08 17:36
麦克煎蛋
阅读(217)
推荐(0) 编辑
nginx 403错误排查
摘要:经过一天的nginx 403错误排查,将相关错误原因列述如下: 1.权限问题 看nginx.conf location / { root html; index index.html index.htm ; } 修改root目录及目录内文件的权限为可执行权限。 index中添加需要的文件类型,如in
阅读全文
posted @
2012-06-08 13:27
麦克煎蛋
阅读(344)
推荐(0) 编辑
CentOS Nginx的一个初始化脚本(用于启动、停止、查看状态)
摘要:http://articles.slicehost.com/2009/2/2/centos-adding-an-nginx-init-script 1.在/etc/rc.d/init.d/目录下建立nginx文件 2.粘贴以下内容 #!/bin/sh # # nginx - this script
阅读全文
posted @
2012-06-08 13:25
麦克煎蛋
阅读(374)
推荐(0) 编辑
CentOS Jboss7的一个初始化脚本(用于启动、停止)
摘要:#!/bin/sh #chkconfig: 345 99 10 #description: JBoss auto start-stop script. # Source function library. . /etc/rc.d/init.d/functions # Get config. . /e
阅读全文
posted @
2012-06-08 13:24
麦克煎蛋
阅读(273)
推荐(0) 编辑
tomcat的初始化脚本(启动、退出、查看状态)
摘要:#!/bin/bash # # Startup script for the tomcat # # chkconfig: 345 80 15 # description: Tomcat is a Servlet+JSP Engine. # Source function library. . /et
阅读全文
posted @
2012-06-08 13:23
麦克煎蛋
阅读(234)
推荐(0) 编辑