autoDevops,CI,CD
Centos6.6 64位服务器修改MAC地址/etc/sysconfig/network-scripts/ifcfg-eth0HWADDR=00:24:E8:63:7A:05修改为:HWADDR=00:24:E8:63:7A:08这里重启网络,会有如下提示,实际修改未成功:[root@ns1 ~]# /etc/init.d/network restartShutting down interface eth0:  Device eth0 has MAC address 00:24:E8:63:7A:05, instead of configured address 00:24:E8:63:7A:08. Ignoring.                                                           [FAILED]Shutting down loopback interface:                          [  OK  ]Bringing up loopback interface:         &...
把原来的yum源卸载掉# rpm -qa | grep yum | xargs rpm -e –-nodeps 添加并安装下载的yum的rpm包      wget http://mirrors.163.com/centos/6.8/os/x86_64/Packages/python-urlgrabber-3.9.1-11.el6.noarch.rpm# rpm -ivh python-iniparse-0.3.1-2.1.el6.noarch.rpm # rpm -Uvh python-urlgrabber-3.9.1-11.el6.noarch.rpm # rpm -ivh yum-metadata-parser-1.1.2-16.el6.x86_64.rpm# rpm -ivh yum-3.2.29-40.el6.centos.noarch.rpm yum-plugin-fastestmirror-1.1.30-14.el6.noarch.rpm[注]:最后这两个包必须同时安装,因两个是相互依赖关系。 添加163的yum源# cd/etc/yum.repos.d/# wget http://mirrors.163.com/.help/CentOS6-Base-163.repo  修改CentOS6-Base-163.repo#CentOS-Base.repo## The mirrorsystem uses the connecting IP address of the client and the# update statusof each mirror to pick mirrors that are updated to and# geographicallyclose to the client.  You should use thisfor CentOS updates# unless you aremanually picking other mirrors.## If the mirrorlist=does not work for ...
Rsync+sersync环境:centos 7 or centos 7.1  x64前言:一、为什么要用Rsync+sersync架构?1、sersync是基于Inotify开发的,类似于Inotify-tools的工具2、sersync可以记录下被监听目录中发生变化的(包括增加、删除、修改)具体某一个文件或某一个目录的名字,然后使用rsync同步的时候,只同步发生变化的这个文件或者这个目录。二、Rsync+Inotify-tools与Rsync+sersync这两种架构有什么区别?1、Rsync+Inotify-tools(1):Inotify-tools只能记录下被监听的目录发生了变化(包括增加、删除、修改),并没有把具体是哪个文件或者哪个目录发生了变化记录下来;(2):rsync在同步的时候,并不知道具体是哪个文件或者哪个目录发生了变化,每次都是对整个目录进行同步,当数据量很大时,整个目录同步非常耗时(rsync要对整个目录遍历查找对比文件),因此,效率很低。2、Rsync+sersync(1):sersync可以记录下被监听目录中发生变化的(包括增加、删除、修改)具体某一个文件或某一个目录的名字;(2):rsync在同步的时候,只同步发生变化的这个文件或者这个目录(每次发生变化的数据相对整个同步目录数据来说是很小的,rsync在遍历查找比对文件时,速度很快),因此,效率很...
现实中,服务器可能会因为各种原因而crash掉,从而造成数据丢失或者服务的暂时不可用。为了提高服务的可用性以及数据的安全性,就需要对数据进行备份,以便数据恢复或者服务的动态切换(将访问请求动态重定向到备份服务器)。常见的备份方法是定时的rsync任务或者远程拷贝。但这种方式,如果定时的间隔较大,那么服务器宕掉后,还是会丢失部分数据,动态切换的服务也不是宕机前的最新状态。为了支持实时数据同步,Linux 2.6.13 内核中新引入文件系统变化通知机制inotify,一旦对文件系统有改动,就会触发相关事件任务。通过结合rsync,inotify能够很好地完成实时同步任务。主服务器:1.1.1.1 备份服务器:0.0.0.0配置步骤:1. 主服务器,备份服务器上安装rsync:sudo yum install rsync 2. 主服务器上安装inotify-tools:sudo yum install inotify-tools 3. 备份服务器上添加配置文件/etc/rsyncd.confreadonly=no chroot=no uid=root gid=root hosts allow=1.1.1.1 hosts deny=0.0.0.0/32 max connections=10 log file=/var/log/rsyncd.log pid file=/var/run/rsyncd.pid lock file=/var/run/rsync.lock auth users=tongbu secrets file=/etc/rsync.pass [websit...
Apache防DDOS模块mod_evasive的安装配置和使用 前些天,朋友的网站访问很慢,查服务器的连接数也不多,资源占用也少.怀疑有攻击,便想装上mod_evasive试试,试后一切正常,很爽 安装配置如下 wget http://www.zdziarski.com/blog/wp-content/uploads/2010/02/mod_evasive_1.10.1.tar.gz tar zxvf mod_evasive_1.10.1.tar.gz cd mod_evasive /www/wdlinux/apache/bin/apxs -i -a -c mod_evasive20.c vi /www/wdlinux/apache/conf/httpd.conf <IfModule mod_evasive20.c>     DOSHashTableSize    3097     DOSPageCount        5     DOSSiteCount        50     DOSPageInterval     1     DOSSiteInterval     1     DOSBlockingPeriod   360 </IfModule> mod_evasive 介绍 mod_evasive...
 
0
PHP 5.5 5.6加速插件:Zend Opcache   大家知道目前PHP的缓存插件一般有三个: APC、 eAccelerator、 XCache,但未来它们可能都会消失,因为PHP 5.5已经集成 Zend Opcache,功能和前三者相似但又有少许不同,缓存速度据说比它们更快(注意:只是据说,我没测试过)。php5.5以后版本编译eAccelerator报错如下:eaccelerator.c:66:23: error: php_logos.h: No such file or directory究其原因是PHP5.5以下版本有php_logos.c,php_logos.h等文件。如果想在新版本继续用加速,目前知道是的php自带扩展 opcache。操作如下:cd /usr/local/src/php-5.6.0/ext/opcache/usr/local/webserver/php/bin/phpize./configure --with-php-config=/usr/local/webserver/php/bin/php-configmake && make install1234cd /usr/local/src/php-5.6.0/ext/opcache/usr/local/webserver/php/bin/phpize./configure --with-php-config=/usr/local/webserver/php/bin/php-configmake && make install最好修改/etc/php.ini在最后加入[opcache]zend_extension=/usr/local/webserver/php/lib/php/extensions/no-debug-non-zts-20131226/opcache.so...
安装过程中不使用图形界面的新建分区,就不会有100M分区的问题。后续安装只要在命令行新建的分区中进行就可以。(注:用图形界面新建分区,会自动产生一个100M隐藏分区)。具体操作如下:安装Windows2008R2进行到【开始安装】界面的时候,不点击【开始安装】,也不点击【修复计算机】,直接按快捷键“Shift+F10”打开CMD命令行,然后输入>diskpart.exe进入diskpart命令窗口。然后执行以下命令:>list disk     【查看硬盘编号,大小,有U盘的话注意辨别】>select disk 0【选择硬盘编号,使之处于选中焦点状态】>create partition primary size=25064 【创建主分区,后面的数字是大小,单位MB】>format fs=ntfs quick 【格式化主分区,格式为ntfs格式】>create partition extended 【创建扩展分区,如果已有,在图形界面中错误的删掉了系统C盘,这步可不操作】>exit 【退出程序】关闭CMD命令窗口,开始安装,就可以避免100M隐藏分区了。注意,不要在图形界面删除分区再新建,本人经常这样做,但在windows2008R2等新系统就不行了,这样会产生100M隐藏分区。后面的自动安装就可以了。
Win2008  IIS7 IIS7.5 进程池经常死最终解决方案 作为一个服务器维护人员,经常遇到不可解决的问题,这问题一直存在,一直困扰我多时,经常凌晨1-2点起床,就为了重启一下进程池错误应用程序名称: w3wp.exe,版本: 7.5.7600.16385,时间戳: 0x4a5bd0eb错误模块名称: ntdll.dll,版本: 6.1.7600.16385,时间戳: 0x4a5be02b异常代码: 0xc0000374错误偏移量: 0x00000000000c6cd2错误进程 ID: 0xb54c错误应用程序启动时间: 0x01d0c0d94f91529a错误应用程序路径: c:\windows\system32\inetsrv\w3wp.exe错误模块路径: C:\Windows\SYSTEM32\ntdll.dll报告 ID: 8e9b8672-2ccc-11e5-9d45-90b11c3fe265// string method_Recycle = "Recycle"; //Start开启 Recycle回收 Stop 停止 string method_Start = "Start"; DirectoryEntry appPool = new DirectoryEntry("IIS://localhost/W3SVC/AppPools"); try { foreach (DirectoryEntry item in appPool.Children) { string AppPoolCommand = item.Properties["Ma...
 
0
Installation Before installing TCAdmin make sure you have installed the System Requirements Installation (Windows) Make sure you have installed the System Requirements. Download the TCAdmin installer http://www.tcadmin.com/installer/tcadmin2setup.exe Execute and install. Change the installation directory as needed. Follow the Initial Configuration guide to configure TCAdmin. Installation (Linux) Make sure you have installed the System Requirements. Download and install the TCAdmin package for your Linux distro. CentOS / Fedora / Redhatwget http://www.tcadmin.com/installer/tcadmin-2-bi.noarch.rpm;yum -y install tcadmin-2-bi.noarch.rpm --nogpgcheck Debian / Ubuntuwget http://www.tcadmin.com/installer/tcadmin-2-bi.noarch.deb;dpkg -i tcadmin-2-bi.noarch.deb Follow the Initial Configuration guide to configure TCAdmin.Initial Configuration Contents [hide] 1 Access your Control Panel2 License Information3 Database Configurat...
 
0

Centos6升级Centos7.2最新版

发表者:admin分类:Devops2016-02-19 09:20:33 阅读[2744]
Centos6升级Centos7.2最新版网上教程都是旧版的,没法用。自己想到办法解决了。step 1,配置yum源:[root@localhost ~]# cat /etc/yum.repos.d/upgrade.repo                                                 [upgrade]name=upgradebaseurl=http://dev.centos.org/centos/6/upg/x86_64/enable=1gpgcheck=0step 2安装升级软件工具:[root@localhost ~]# yum install preupgrade-assistant-contents redhat-upgrade-tool preupgrade-assistant$ sudo preupg Preupg tool doesn't do the actual upgrade. Please ensure you have backed up your system and/or data in the event of a failed upgrade that would require a full re-install of the system from installation media. Do you want to continue? y/n y Gathering logs used by preupgrade assistant: All installed packages : 01/10 ...finished (time 00:00s) All changed files : 02/10 ...finished (time 00:48s) Changed config files : 03/10 ...finished (tim...
    总共67页,当前第15页 | 页数:
  1. 5
  2. 6
  3. 7
  4. 8
  5. 9
  6. 10
  7. 11
  8. 12
  9. 13
  10. 14
  11. 15
  12. 16
  13. 17
  14. 18
  15. 19
  16. 20
  17. 21
  18. 22
  19. 23
  20. 24
  21. 25