本站用于记录日常工作内容,虚拟化云计算,系统运维,数据库DBA,网络与安全。
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...
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最新版网上教程都是旧版的,没法用。自己想到办法解决了。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...
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
    总共58页,当前第7页 | 页数:
  1. 1
  2. 2
  3. 3
  4. 4
  5. 5
  6. 6
  7. 7
  8. 8
  9. 9
  10. 10
  11. 11
  12. 12
  13. 13
  14. 14
  15. 15
  16. 16
  17. 17