Maorongrong smile like sunshine

进行SPECweb2009测试,容器命令


还是本科必设那会的一些东西,关于启动并测试SPECweb2009容器的记录。。

Besim容器的启动与配置

[amy@localhost ~]$ sudo docker images
REPOSITORY           TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
webser_good          latest              7d57ddb2a172        5 days ago          1.463 GB
besim_good           latest              33966bb5b5db        5 days ago          1.056 GB
webser_done          latest              ba87b9adeb42        2 weeks ago         1.462 GB
besim_done           latest              9061dbe58d8e        2 weeks ago         1.056 GB
tpcw1.0              2                   807a4251848d        4 weeks ago         3.558 GB
csphere/csphere      0.9.1               111b2802d2fc        7 weeks ago         61.78 MB
csphere/csphere      latest              111b2802d2fc        7 weeks ago         61.78 MB
urelx/centos6-epel   latest              7871f0e862fd        11 weeks ago        228.1 MB
[amy@localhost ~]$ sudo docker run -ti -P --name Besim2 33966bb5b5db /bin/bash
[root@36ac0aaf89b8 /]# /usr/local/apache2/bin/apachectl start
[root@36ac0aaf89b8 /]# source /etc/profile
[root@282e3ac0b681 bin]# perl test_besim_bank.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi
[root@282e3ac0b681 bin]# perl test_besim_ecom.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi
[root@282e3ac0b681 bin]# perl test_besim_errs.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi
[root@282e3ac0b681 bin]# perl test_besim_support.pl http://127.0.0.1/fcgi-bin/besim_fcgi.fcgi
[root@282e3ac0b681 bin]# /usr/local/apache2/bin/apachectl  restart

webserver容器的启动与配置

[amy@localhost ~]$ sudo docker run -ti -P --name webserver2 -v /home/amy/ap2_ht2:/usr/local/apache2/htdocs 7d57ddb2a172 /bin/bash
[root@b47067cebb97 /]# cd /usr/local/apache2/htdocs/
[root@b47067cebb97 htdocs]# ll
total 20
drwxrwxrwx 6 root root 4096 Apr 28 02:51 bank
drwxrwxrwx 6 root root 4096 Apr 28 08:10 ecommerce
-rwxrwxrwx 1 root root   45 Apr 24 06:11 index.html
-rwxrwxrwx 1 root root   20 Apr 24 06:04 phpinfo.php
drwxrwxrwx 4 root root  135 Apr 29 03:32 Smarty
drwxrwxrwx 7 root root 4096 Apr 29 06:30 support
[root@b47067cebb97 htdocs]# cd -
/
[root@b47067cebb97 /]# source /etc/profile
[root@b47067cebb97 /]# /usr/local/apache2/bin/apachectl start

Similar Posts

Comments