autoDevops,CI,CD
安装过程中不使用图形界面的新建分区,就不会有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 阅读[2512]
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...
How To Fix NIC Link is Down On Centos 6.5  Centos6网卡:  e1000e Timesync Tx Control register not set as expectedSince upgrading a CentOS 6.4 with a SuperMicro X8SIE-F/X9SCL board with Intel 82574L NIC to 2.6.32-431.el6.x86_64 and rebooting, I have been having consistent NIC failures where the NIC shuts down permanently until a soft reboot is performed.Type the following commands to get more info about error# cat /var/log/messages | grep eth1 kernel: NETDEV WATCHDOG: eth1 (e1000e): transmit queue 0 timed out kernel: e1000e 0000:02:00.0: eth1: Reset adapter unexpectedly kernel: e1000e 0000:02:00.0: eth1: Timesync Tx Control register not set as expected kernel: e1000e 0000:02:00.0: eth1: Timesync Tx Control register not set as expected kernel: e1000e 0000:02:00.0: eth1: Timesync Tx Control register not set as expected kernel: ADDRCONF(NETDEV_UP): eth1: link is not ready# uname -a Linux svr.lifelinux.com 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86...
Apache PHP Server Issue : Warning: POST Content-Length exceeding the limit PHP Warning: POST Content-Length of xxxxx bytes exceeds the limit of xxxxxx bytes in Unknown on line 0You receive the “POST Content-Length” error message when a file greater than the size defined in the php.ini file is uploaded via the browser.The file you are uploading using the POST method should not exceed the value of post_max_size defined in php.ini file. If it does, it results in the above error message.Solution:In case you are looking to upload a larger file size, you need to increase the value of “post_max_size” in php.ini.1) To locate the exact php.ini file, your PHP is using php -i | grep php.ini 2) Edit the php configuration file pico /usr/local/lib/php.ini 3) If you are looking to upload a file of 30M, set post_max_size and to upload_max_filesize to 40M. post_max_size = 40M upload_max_filesize = 40M 4) Save the file and restart the httpd service service httpd restart cha...
 
0
centos下安装php的ZipArchive扩展 系统:centos6.5 64位系统 下载ZipArchivewget http://pecl.php.net/get/zip-1.12.4.tgz 解压:tar zxvf zip-1.12.4.tgz 切换到zip-1.12.4目录一看,没有configure,这怎么编译呢,于是网上一 阵狂搜。后来在意个论坛的一片帖子的回复中有人提到了phpize,我也试着执行了一下phpize命令,提示没有该命令,于是又是一阵狂搜。原来phpize是php.devel带的,于是又安装了php.devel,命令为:yum -y install php.devel 然后再执行phpize,接着ls一下,果然configure出现了,然后执行:./configure --with-php-config=/usr/bin/php-config 出现错误,提示缺少zlib什么的,于是执行yum -y install zlib-devel 进行安装,然后重新./configure --with-php-config=/usr/bin/php-config 接着make,但是又遇到了错误,提示缺少pcre啥的,于是执行yum install pcre-devel 然后make && make install 搞定!
您所在的组无权查看该日志
Linux查看连接数与连接IP的脚本在centos6.7 上测试下面的脚本,取的数据正常。使用其它的方法会有一些问题netstat -ntu | grep ':' | awk '{print $5}' | sed 's/::ffff://' | cut -d: -f1 | sort | uniq -c | sort -nrnetstat -ntu | awk '{print $5}' | egrep -o "[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}" | sort | uniq -c | sort -nr以下方法会有些问题:netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nnetstat -anlp|grep 80|grep tcp|awk '{print $5}'|awk -F: '{print $1}'|sort|uniq -c|sort -nr|head -n20 | netstat -ant |awk '/:80/{split($5,ip,":");++A[ip[1]]}END{for(i in A) print A[i],i}' |sort -rn|head -n20
介绍一个强大的分析网络的shell脚本,此脚本是从EZHTTP拆分出来的,觉得有必要单独介绍下。脚本运行效果截图:此脚本包含的功能有:1、实时监控任意网卡的流量2、统计10秒内平均流量3、统计每个端口在10秒内的平均流量,基于客户端和服务端端口统计。可以看出哪些端口占流量比较大,对于web服务器,一般是80端口。其它端口受到攻击时,也有可能其它端口流量比较大。所以此功能可以帮助我们端口流量是否正常。4、统计在10s内占用带宽最大的前10个ip。此项功能可以帮助我们来查出是否有恶意占用带宽的ip。5、统计连接状态。此项功能可以让我们看出哪些连接状态比较大。如果SYN-RECV状态比较多的话,有可以受到半连接攻击。如果ESTABLISED非常大,但通过日志发现没有那么多请求,或者通过tcpdump发现大量ip只建立连接不请求数据的话,可能是受到了全连接攻击,这时候如果你使用的是nginx服务器,可以在配置文件增加listen 80 deferred来防止。6、统计各端口连接状态。当可能受到攻击时,此项功能可以帮助我们发现是哪个端口受到攻击。7、统计端口为80且状态为ESTAB连接数最多的前10个IP。此项功能可以帮助我们来找出创建连接过多的Ip,进而屏蔽。8、统计端口为80且状态为SYN-REC...
    总共66页,当前第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