练习:分别使用CentOS 7和CentOS 6实现以下任务
(1) 配置三个基于名称的虚拟主机;
(a) discuzX
(b) wordpress
(c) https: phpMyAdmin
(2) 对discuzX的主页做压测;
分别给出并发10, 100, 200, 500等每秒的响应数
建立私有CA
(umask 077;openssl genrsa -out /etc/pki/CA/private/cakey.pem 2048)
openssl req -new -x509 -key /etc/pki/CA/private/cakey.pem -out /etc/pki/CA/cacert.pem -days 7300
echo 01 > /etc/pki/CA/serial
touch /etc/pki/CA/index.txt
建立http证书
mkdir /etc/httpd/conf/ssl
(umask 077;openssl genrsa -out /etc/httpd/conf/ssl/httpd.key 1024)
openssl req -new -key /etc/httpd/conf/ssl/httpd.key -out /etc/httpd/conf/ssl/httpd.csr
openssl ca -in /etc/httpd/conf/ssl/httpd.csr -out /etc/httpd/conf/ssl/httpd.crt
测试
下载discuz并解压到/var/web/dis
更改权限
授权mysql用户账号
安装wordpress
解压到/var/web/wor
安装phpMyAdmin
解压到/var/web/admin
用ab工具压力测试discuz
原创文章,作者:landanhero,如若转载,请注明出处:http://www.178linux.com/50261