Updates from 一月, 2011 Toggle Comment Threads | 键盘快捷键

  • bixuan 18:55 on 2011 年 01 月 26 日 链接地址 | 回复
    Tags: , 中文, 乱码   

    zabbix里图形中的汉字显示乱码 

    这个是装好就一直出现的,后来直接改了字体就解决了。

    方法:

    # 加入zabbix的front路径在:/opt/wwwroot/zabbix/
    # 先备份原先的字体:
    cd /opt/wwwroot/zabbix/fonts/
    cp -frp DejaVuSans.ttf DejaVuSans.ttf.old
    
    # 将新的字体复制过去,比较方便:
    cp /tmp/simhei.ttf DejaVuSans.ttf
    
    # 这样就OK了~
    

    其他方法,如果有朋友愿意分享可以留言,谢谢~

     
  • bixuan 18:50 on 2011 年 01 月 26 日 链接地址 | 回复
    Tags: ,   

    zabbix摘记 

    mark

     
  • bixuan 19:34 on 2011 年 01 月 16 日 链接地址 | 回复
    Tags: , Eucalyptus, 云平台   

    Installing Eucalyptus (2.0) on Centos 5.5(在Centos5.5上搭建私有云平台) 

    Eucalyptus can be installed on CentOS 5 from source or by using binary RPM packages. This document details the steps required to install Eucalyptus from RPMs. In what follows, the value of $VERSION must be set to the version of Eucalyptus you wish to install. For example, you can set the value to 2.0.2 using bash:

    export VERSION=2.0.2

    Notice: Before you begin, please ensure that you have an up-to-date CentOS installation on your target machine(s).

    Prerequisites

    If you start with a standard CentOS installation, you will satisfy all prerequisites with the following steps:

    1. Front-end, node(s), and client machine system clocks are synchronized (e.g., using NTP).
      yum install -y ntp
      ntpdate pool.ntp.org
    2. Front end needs java, command to manipulate a bridge, and the binaries for dhcp server (do not configure or run dhcp server on the CC):
      yum install -y java-1.6.0-openjdk ant ant-nodeps dhcp bridge-utils perl-Convert-ASN1.noarch scsi-target-utils httpd
    3. Node has a fully installed and configured installation of Xen that allows controlling the hypervisor via HTTP from localhost.
      yum install -y xen
      sed --in-place 's/#(xend-http-server no)/(xend-http-server yes)/' /etc/xen/xend-config.sxp
      sed --in-place 's/#(xend-address localhost)/(xend-address localhost)/' /etc/xen/xend-config.sxp
      /etc/init.d/xend restart
    4. Firewall rules must permit the Eucalyptus components to communicate with one another, and clients to communicate with Eucalyptus. On the front-end, ports 8443, 8773, 8774 and 9001 must be open; on the node, port 8775 must be open. If you are planning on using Elastic IPs and/or Security Groups, consider disabling the firewall and use Eucalyptus facilities for enabling custom firewall rules (see Network configuration for more information). To do so, on both the front-end and the nodes:
      • run system-config-securitylevel-tui
      • select Security Level: Disabled
      • select OK

    Download and Install RPMs

    Eucalyptus binary installation is broken up into several packages: one for each of the components (CLC, Walrus, CC, etc.), as well as a couple of common packages.

    There are two options for downloading and installing the packages:

    1. Yum option

    2. Packages are available from our yum repository. To use this option, create ‘/etc/yum.repos.d/euca.repo’ file with the following four lines:

      [euca]
      name=Eucalyptus
      baseurl=http://www.eucalyptussoftware.com/downloads/repo/eucalyptus/$VERSION/yum/centos/
      enabled=1

      Now install Eucalyptus on the front-end:

      yum install eucalyptus-cloud.$ARCH eucalyptus-cc.$ARCH eucalyptus-walrus.$ARCH eucalyptus-sc.$ARCH --nogpgcheck

      and install Eucalyptus on the node:

      yum install eucalyptus-nc.$ARCH --nogpgcheck

      where $ARCH is the architecture of your host (either ‘i386′ or ‘x86_64′).

    1. Tarball option

    2. The packages are available in a single tarball, wherein we also include copies of third-party CentOS packages that Eucalyptus depends on (Rampart, Axis2C, many Java libraries), at http://open.eucalyptus.com/downloads (look for a CentOS tarball of the right Eucalyptus version and architecture).

      Untar the bundle in a temporary location:

      tar zxvf eucalyptus-$VERSION-*.tar.gz
      cd eucalyptus-$VERSION-*

      In the examples below we use x86_64, which should be replaced with i386 or i586on 32-bit architectures.

      Install RPMs on the front end

      First, on the front end, install third-party dependency RPMs:

      cd eucalyptus-$VERSION*-rpm-deps-x86_64
      
      rpm -Uvh aoetools-21-1.el4.x86_64.rpm \
               euca-axis2c-1.6.0-1.x86_64.rpm \
               euca-rampartc-1.3.0-1.x86_64.rpm \
               vblade-14-1mdv2008.1.x86_64.rpm \
               vtun-3.0.2-1.el5.rf.x86_64.rpm \
               lzo2-2.02-3.el5.rf.x86_64.rpm\
             	 perl-Crypt-OpenSSL-Random-0.04-1.el5.rf.x86_64.rpm\
               perl-Crypt-OpenSSL-RSA-0.25-1.el5.rf.x86_64.rpm\
               perl-Crypt-X509-0.32-1.el5.rf.noarch.rpm\
               python25-2.5.1-bashton1.x86_64.rpm\
               python25-devel-2.5.1-bashton1.x86_64.rpm\
               python25-libs-2.5.1-bashton1.x86_64.rpm
      cd ..

      then install the -cloud, -walrus, -cc and -sc RPMs:

      rpm -Uvh eucalyptus-$VERSION-*.x86_64.rpm \
               eucalyptus-common-java-$VERSION-*.x86_64.rpm \
               eucalyptus-cloud-$VERSION-*.x86_64.rpm \
               eucalyptus-walrus-$VERSION-*.x86_64.rpm \
               eucalyptus-sc-$VERSION-*.x86_64.rpm \
               eucalyptus-cc-$VERSION-*.x86_64.rpm \
               eucalyptus-gl-$VERSION-*.x86_64.rpm

      Install RPMs on the nodes

      Next, on each node install the dependency packages:

      cd eucalyptus-$VERSION*-rpm-deps-x86_64
      rpm -Uvh aoetools-21-1.el4.x86_64.rpm \
               euca-axis2c-1.6.0-1.x86_64.rpm \
               euca-rampartc-1.3.0-1.x86_64.rpm\
               perl-Crypt-OpenSSL-Random-0.04-1.el5.rf.x86_64.rpm\
               perl-Crypt-OpenSSL-RSA-0.25-1.el5.rf.x86_64.rpm\
               perl-Crypt-X509-0.32-1.el5.rf.noarch.rpm\
               python25-2.5.1-bashton1.x86_64.rpm\
               python25-devel-2.5.1-bashton1.x86_64.rpm\
               python25-libs-2.5.1-bashton1.x86_64.rpm
      cd ..

      then install the node controller RPM with dependencies:

      rpm -Uvh eucalyptus-$VERSION-*.x86_64.rpm \
               eucalyptus-gl-$VERSION-*.x86_64.rpm \
               eucalyptus-nc-$VERSION-*.x86_64.rpm

    Post-Install Steps

    The last step in the installation is to make sure that the user ‘eucalyptus’, which is created at RPM installation time, is configured to interact with the hypervisor through libvirt on all of your compute nodes. On each node, access the libvirtd configuration file at:

    /etc/libvirt/libvirtd.conf

    Confirm that the following lines are uncommented, as shown:

    unix_sock_group = "libvirt"  =>  unix_sock_group = "libvirt"
    unix_sock_ro_perms = "0777"  =>  unix_sock_ro_perms = "0777"
    unix_sock_rw_perms = "0770"  =>  unix_sock_rw_perms = "0770"

    To check that libvirt is configured and interacting properly with the hypervisor, run the following command on each node:

    su eucalyptus -c "virsh list"

    The output of that command may include error messages (failed to connect to xend), but as long as it includes a listing of all domains (at least Domain-0), the configuration is in order.

    Now start up your Eucalyptus services. On the front-end:

    /etc/init.d/eucalyptus-cloud start
    /etc/init.d/eucalyptus-cc start

    On the node:

    /etc/init.d/eucalyptus-nc start

    At this point you should be ready to proceed with first-time configuration.

    原文:http://open.eucalyptus.com/wiki/EucalyptusInstallationCentos_v2.0

     
  • bixuan 14:03 on 2011 年 01 月 05 日 链接地址 | 回复
    Tags: 中国, 互联网, 参考数据, ,   

    中国互联网网站性能行业参考数据 

    中国互联网网站性能行业参考数据

    From:http://www.networkbench.com/?_m=ranklist_v3

     
  • bixuan 22:02 on 2011 年 01 月 04 日 链接地址 | 回复
    Tags: , ,   

    3个HandlerSocket的PHP扩展 

    Percona源码目录storage/HandlerSocket-Plugin-for-MySQL翻到目前有以下3个PHP扩展:

    http://openpear.org/package/Net_HandlerSocket
    http://github.com/tz-lom/HSPHP
    http://code.google.com/p/php-handlersocket/

    特地整理下。

     
c
写新的
j
下一篇文章/下一个回复
k
前一篇文章/以前的回复
r
回复
e
编辑
o
显示/隐藏 回复
t
回到顶部
l
go to login
h
show/hide help
esc
取消