Kvm关闭VNC后Guest下的Centos系统无法启动问题
Kvm虚拟化下如果关闭VNC的话Centos将无法启动在启动进入了系统后我们修改一下grub再关闭VNC就可以启动guest的Centos系统了 附脚本
sed-i 's/hiddenmenu/#hiddenmenu/g' /boot/grub/grub.conf sed-i 's/splashimage/#splashimage/g' /boot /grub/grub.conf
none
sed-i 's/hiddenmenu/#hiddenmenu/g' /boot/grub/grub.conf sed-i 's/splashimage/#splashimage/g' /boot /grub/grub.conf
虽然经常安装DirectAdmin但是时间长了事情多了很多东西都记不住,写好的东西都放自己电脑里面偶尔有时候还很难找到,在这儿记录一些
安装directadmin
yum -y install wget gcc gcc-c++ flex bison make bind bind-libs bind-utils openssl openssl-devel perl quota libaio libcom_err-devel libcurl-devel gd zlib-devel zip unzip libcap-devel cronie bzip2 db4-devel cyrus-sasl-devel perl-ExtUtils-Embed cd /tmp wget http://www.directadmin.com/setup.sh chmod 755 setup.sh ./setup.sh
wget -c http://down.kvm.la/kloxo/kloxo_cn.tar.gz
tar zxf kloxo_cn.tar.gz -C /usr/local/lxlabs/kloxo/httpdocs/lang
/script/update --class=sp_specialplay --name=client-admin --subaction=skin --v-specialplay_b_s_language=cn
快速简洁,干净利落。
mysql5.5采用cmake代替了configure
groupadd mysql -g 27
useradd mysql -u 27 -g 27 -c "MySQL Server" -d /home/mysql -m
wget -c http://dev.mysql.com/get/Downloads/MySQL-5.5/mysql-5.5.19.tar.gz/from/http://mysql.he.net/
tar zxf mysql-5.5.19.tar.gz
cd mysql-5.5.19
CFLAGS="-O3" CXX=gcc
CXXFLAGS="-O3 -felide-constructors -fno-exceptions -fno-rtti"
wget -c http://pecl.php.net/get/memcache-3.0.6.tgz tar xzf memcache-3.0.6.tgz cd memcache-3.0.6红色部分需要根据您的具体情况修改改,安装完后运行/usr/bin/phpize./configure --enable-memcache --with-php-config=/usr/bin/php-config --with-zlib-dir make make install echo "extension_dir = /usr/lib/php/extensions/no-debug-non-zts-20060613" >>/etc/php.ini echo "extension = memcache.so">>/etc/php.ini/usr/bin/php -m|grep memcahe
if [ `uname -i` == "x86_64" ]; then cd /tmp wget -c http://download.savannah.gnu.org/releases/libunwind/libunwind-1.1.tar.gz tar zxf libunwind-1.1.tar.gz cd libunwind-1.1 ./configure make && make install fi cd /tmp wget -c https://gperftools.googlecode.com/files/gperftools-2.0.tar.gz tar zxf gperftools-2.0.tar.gz cd gperftools-2.0 ./configure make && make install echo "/usr/local/lib" > /etc/ld.so.conf.d/usr_local_lib.conf ldconfig将编译好的libtcmalloc.so模块加入mysqld_safe启动的时候进行动态加载
sed -i 's/executing mysqld_safe/executing mysqld_safe\nexport LD_PRELOAD=\/usr\/local\/lib\/libtcmalloc.so/g' /usr/bin/mysqld_safe /etc/init.d/mysql restartnginx不支持动态加载所以要重新编译
./configure 【其他参数】 --with-google_perftools_module make && make install echo "google_perftools_profiles /tmp/tcmalloc;">>/etc/nginx/nginx.conf /etc/init.d/nginx restart mkdir /tmp/tcmalloc/ chmod 0777 /tmp/tcmalloc/
sudo yum install glibc-static libstdc++-static wget http://ftp.gnu.org/gnu/gcc/gcc-4.7.1/gcc-4.7.1.tar.gz tar xzf gcc-4.7.1.tar.gz cd gcc-4.7.1 ./contrib/download_prerequisites cd .. mkdir build_gcc4.7.1 cd build_gcc4.7.1 ../gcc-4.7.1/configure --enable-checking=release --enable-languages=c,c++ --disable-multilib make -j24 #根据您的服务器CPU核心设置 sudo make install