8 月 292013
 

……

 

[root@monitor ~]# ./webbench -c 500 -t 300 “http://www.linuxcache.com/interface.php?m=Apiactivity&a=getChoice&areaid=147&language=hk&version=1”
Webbench – Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.

Benchmarking: GET http://www.linuxcache.com/interface.php?m=Apiactivity&a=getChoice&areaid=147&language=hk&version=1
500 clients, running 300 sec.

Speed=6266 pages/min, 310539 bytes/sec.
Requests: 26556 susceed, 4776 failed.
[root@monitor ~]#

8 月 292013
 

使用SCP命令从远端服务器复制文件到本地时的错误提示

[root@localhost ~]# scp root@101.78.100.200:~/webbench ./
root@101.78.100.200's password:
bash: scp: command not found
[root@localhost ~]#

查看本地是否安装openssh-clients软件包

 [root@localhost ~]# yum install openssh-clients
 Loaded plugins: fastestmirror, presto
 Loading mirror speeds from cached hostfile
 * base: mirrors.hust.edu.cn
 * extras: mirrors.hust.edu.cn
 * updates: mirrors.hust.edu.cn
 Setting up Install Process
 Package openssh-clients-5.3p1-84.1.el6.x86_64 already installed and latest version
 Nothing to do
 [root@localhost ~]#

查看远端服务器是否安装openssh-clients软件包并执行安装

[root@monitor ~]# rpm -q openssh-clients
 package openssh-clients is not installed
 [root@monitor ~]#
[root@monitor ~]# yum install openssh-clients

命令执行成功

 [root@localhost ~]# scp root@101.78.100.200:~/webbench ./
 root@101.78.100.200's password:
 webbench                                      100%   24KB  23.9KB/s   00:00
 [root@localhost ~]#

查看安装包路径与文件

[root@monitor ~]# rpm -lq openssh-clients
 /etc/ssh/ssh_config
 /usr/bin/.ssh.hmac
 /usr/bin/scp
 /usr/bin/sftp
 /usr/bin/slogin
 /usr/bin/ssh
 /usr/bin/ssh-add
 /usr/bin/ssh-agent
 /usr/bin/ssh-copy-id
 /usr/bin/ssh-keyscan
 /usr/share/man/man1/scp.1.gz
 /usr/share/man/man1/sftp.1.gz
 /usr/share/man/man1/slogin.1.gz
 /usr/share/man/man1/ssh-add.1.gz
 /usr/share/man/man1/ssh-agent.1.gz
 /usr/share/man/man1/ssh-copy-id.1.gz
 /usr/share/man/man1/ssh-keyscan.1.gz
 /usr/share/man/man1/ssh.1.gz
 /usr/share/man/man5/ssh_config.5.gz
 [root@monitor ~]#
8 月 242013
 

发布日期 2013-8-20

Issues Resolved In This Hotfix
When detaching an HBA Storage Repository (SR), and then attempting to reattach it using XenCenter, the reattach operation will fail with the message: “The SCSI id parameter is missing or incorrect”.
When using XenCenter to move a large disk to a different SR, the operation can time out and fail to complete.
System Alerts generated for XenServer v6.1.0 hosts display numerical alert severities. Customers should ignore these numerical severities as they are invalid for XenServer v6.1.0 hosts.
For XenServer v6.1.0 and earlier versions, the XenCenter License Manager can incorrectly report the license type as ‘Free Edition’ for paid-for editions (that is, Advanced, Enterprise, or Platinum).
When trying to join an unlicensed host to a licensed pool, XenCenter should offer to apply a license to the new host. This works correctly for XenServer v6.1.0 and earlier servers, but does not happen in v6.2.0. This means that the new host cannot join a pool until it is licensed separately.
Joining a licensed host to an unlicensed pool should not be possible, however XenCenter does not apply this rule to v6.2.0 hosts and allows the customer to attempt this operation.
In rare cases when a pool contains hosts with different license types, the pool’s license should be reported as the least privileged license in the pool. However XenCenter’s License Manager incorrectly lists the pool master’s license as the pool’s license type.
In a pool consisting of XenServer v6.1.0 or earlier hosts, it is impossible to apply a free license to the pool using XenCenter. This is because free licenses have to be applied to each host separately; XenCenter incorrectly lists the whole pool as one item in the License Manager.
When configuring High Availability (HA), XenCenter may not set the restart priority on all of the VMs, so they will not be protected to the required level. (It will only set the rows that are selected (blue) on the table of VMs and their restart priorities).

This hotfix also includes additional functionality for large deployments:

Adds creation of up to 50 new fibre-channel HBA SRs in a single step using an updated New SR wizard, with the following restrictions:
Customers who select greater than 50 SRs may find that the New SR wizard prematurely exits. Re-running the New SR wizard will create the remaining SRs.
In some circumstances, the automatic numbering of the new SRs may skip one of the sequenced numbers. However, all SRs are created.
The New SR wizard uses Hardware HBA virtual disk storage (n) as the naming seed, even if customers select a different name.
When adding HBA SRs to a pool of XenServer hosts, before running the New SR wizard, customers should ensure that each LUN is mapped to all hosts in the pool
Adds a feature to attach multiple fibre channel LUNs to reduce downtime in the event of a disaster.

http://support.citrix.com/article/CTX138801

相关下载:
(1) XenCenter version 6.2.0 (build #1204)

8 月 232013
 

生成私钥

[root@linuxcache ~]# openssl genrsa -des3 -out server.key 2048
Generating RSA private key, 2048 bit long modulus
………………+++
……………………………+++
e is 65537 (0x10001)
Enter pass phrase for server.key:
Verifying – Enter pass phrase for server.key:
[root@linuxcache ~]#wildcard-ssl-cert-01

 

使用私钥生成证书请求CSR(Certificate Signing Request)

[root@linuxcache ~]# openssl req -new -key server.key -out server.csr
Enter pass phrase for server.key:
You are about to be asked to enter information that will be incorporated
into your certificate request.
What you are about to enter is what is called a Distinguished Name or a DN.
There are quite a few fields but you can leave some blank
For some fields there will be a default value,
If you enter ‘.’, the field will be left blank.
—–
Country Name (2 letter code) [GB]:CN
State or Province Name (full name) [Berkshire]:Guangdong
Locality Name (eg, city) [Newbury]:Shenzhen
Organization Name (eg, company) [My Company Ltd]:linuxcache.com
Organizational Unit Name (eg, section) []:linuxcache.com
Common Name (eg, your name or your server’s hostname) []:*.linuxcache.com
Email Address []:hostmaster@linuxcache.com

Please enter the following ‘extra’ attributes
to be sent with your certificate request
A challenge password []:
An optional company name []:
[root@linuxcache ~]#

wildcard-ssl-cert-02

在线提交CSR请求生成证书

wildcard-ssl-cert-03 wildcard-ssl-cert-04 wildcard-ssl-cert-05 wildcard-ssl-cert-06 wildcard-ssl-cert-07 wildcard-ssl-cert-08 wildcard-ssl-cert-09 wildcard-ssl-cert-10

8 月 152013
 

[root@localhost ~]# yum install httpd php php-mysql php-pdo mysql-server
[root@localhost ~]# yum install wget

[root@localhost ~]# wget http://cn.wordpress.org/wordpress-3.6-zh_CN.tar.gz
[root@localhost ~]# tar xzf wordpress-3.6-zh_CN.tar.gz
[root@localhost ~]# mv wordpress/* /var/www/html/

[root@localhost ~]# vi /etc/httpd/conf/httpd.conf
ServerName 192.168.111.131

[root@localhost ~]# apachectl start
[root@localhost ~]# netstat -lutn |grep 80
tcp 0 0 :::80 :::* LISTEN
[root@localhost ~]#

[root@localhost ~]# service mysqld start
[root@localhost ~]# /usr/bin/mysqladmin -u root password ‘mysqlpass’
mysql> create database wordpress;
Query OK, 1 row affected (0.00 sec)

mysql> grant all on wordpress.* to wpuser;
Query OK, 0 rows affected (0.00 sec)

mysql> grant all on wordpress.* to wpuser@localhost;
Query OK, 0 rows affected (0.00 sec)

mysql> set password for wpuser@localhost=password(‘wppass’);
Query OK, 0 rows affected (0.00 sec)