Centos6.9安装Jenkins
Jenkins是基于Java开发的一种持续集成工具,用于监控持续重复的工作,一般用来做svn或git一键发布使用,也可以用来做一些定时任务运行一些shell脚本等。 本篇文章通过yum快速安装Jenkins最新稳定版! 1、安装java1.8 [crayon- … 阅读全文
Jenkins是基于Java开发的一种持续集成工具,用于监控持续重复的工作,一般用来做svn或git一键发布使用,也可以用来做一些定时任务运行一些shell脚本等。 本篇文章通过yum快速安装Jenkins最新稳定版! 1、安装java1.8 [crayon- … 阅读全文
Centos6修改hostname不用重启操作系统永久生效方法 我在这里介绍了三种方式任选其一即可: 方法1 编辑/etc/sysconfig/network文件 vi /etc/sysconfig/network 更改HOSTNAME=whsir 然后使用e … 阅读全文
在nginx的server字段中配置下面内容即可
1 2 3 |
if ($http_user_agent ~* (baiduspider|googlebot|bing|sogou|yahoo)){ return 503; } |
如果单独屏蔽百度蜘蛛就是
1 2 3 |
if ($http_user_agent ~* baiduspider){ return 503; } |
~微信打赏~ 赏
在windows2008系统上搭建bt trackers服务器 所需要用到的两个包下载地址: https://down.whsir.com/downloads/Python-2.3b2.exe https://down.whsir.com/downloads/ … 阅读全文
关于网卡备份要说明一下,正常大家都喜欢直接cp xxx xxx.bak方式进行备份文件,但是网卡文件如果这么备份会带来问题,系统也会启用以.bak备份的网卡文件,在/etc/init.d/network脚本中有下面这段内容: 系统脚本会将所有此目录下以ifcf … 阅读全文
今天在使用scp内网拷贝文件时提示:
1 |
bash: scp: command not found |
开始以为是没有安装scp包 于是安装scp,scp属于openssh-clients包
1 |
yum install openssh-clients |
但 … 阅读全文
在centos6.9系统中编译安装redis3.2.9版本 1、安装所需依赖
1 |
yum -y install gcc gcc-c++ wget |
2、下载redis3.2.9源码包
1 2 |
cd /usr/local/src/ wget https://download.redis.io/releases/redis-3.2.9.tar.gz |
3、解压缩编译 … 阅读全文
从Centos7开始默认使用firewall防火墙了 换成iptables防火墙,操作步骤如下: 关闭firewalld防火墙,关闭开机自启
1 2 |
systemctl stop firewalld.service systemctl disable firewalld.service |
安装iptables防火墙,设置开机自启 [cray … 阅读全文
效果图 佛祖地址:https://down.whsir.com/downloads/fz.txt github地址:https://github.com/abcfy2/motd ~微信打赏~ 赏
使用yum时一直提示下面的信息
1 2 3 4 5 6 7 8 9 |
Loaded plugins: fastestmirror Repository base is listed more than once in the configuration Repository updates is listed more than once in the configuration Repository extras is listed more than once in the configuration Repository centosplus is listed more than once in the configuration Repository contrib is listed more than once in the configuration Cleaning repos: base extras updates Cleaning up Everything Cleaning up list of fastest mirrors |
原来系统是CentOS6.8,yum update后开始一直报这个了,后来经过查找发现,系统已经升级到了Centos6.9,升级后在/etc/yum.repos. … 阅读全文