刚刚有客户反应网站无法打开,进服务器看了下,原来HTTPD死掉了,尝试service httpd restart但无法启动,检查/var/log/httpd/error.log后发现这个错误有很多条:
[Thu Feb 14 11:04:02 2013] [error] (17)File exists: Cannot create SSLMutex with file `/var/log/httpd/ssl_mutex’
于是rm -rf ssl_mutex,然后再尝试重启httpd,问题解决!
Tag: Linux
Step by Step install of CentOS 6.3 on Microsoft Hyper-V Server with Linux Integration Services Version 3.4
Create new VHD w/ Legacy Network Adapter for CentOS 6.3
Download CentOS 6.3-minimal.iso (insert disk & install)
Download LinuxICv34.iso (insert disk)
mkdir -p /mnt/cdrom
mount /dev/cdrom /mnt/cdrom
cp -rp /mnt/cdrom /opt/linux_ic
umount /mnt/cdrom
cd /opt/linux_ic/RHEL63
./install.sh
Once the install is down, shutdown the VPS, note the mac address and then remove the legacy adapter.
Add a standard network adapter with static mac previously noted. apply and restart the VPS
Update your network settings via vi
vi /etc/sysconfig/network-scripts/ifcfg-eth0
use “i” to insert text, (esc) to exit and “:wq” to write your changes.
IT should look something like this:
DEVICE=”eth0″
BOOTPROTO=none
ONBOOT=”yes”
TYPE=”Ethernet”
HWADDR=(MAC ADDRESS, This should match what is configured in Hyper-V)
IPADDR=(YOUR SERVER IP)
GATEWAY=(YOUR DEFAULT GATEWAY)
DNS1=(PRIMARY DNS SERVER IP)
DNS2=(SECONDARY DNS SERVER IP)
If your system is still not online for static IP do this:
Networking=yes
ifconfig eth0 (IP) (MASK) up