[关闭]
@maorongrong 2015-05-18T11:58:53.000000Z 字数 1646 阅读 650

进行SPECweb2009测试,容器命令

SPECweb2009 docker 毕设 原创


Besim容器的启动与配置

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

webserver容器的启动与配置

  1. [amy@localhost ~]$ sudo docker run -ti -P --name webserver2 -v /home/amy/ap2_ht2:/usr/local/apache2/htdocs 7d57ddb2a172 /bin/bash
  2. [root@b47067cebb97 /]# cd /usr/local/apache2/htdocs/
  3. [root@b47067cebb97 htdocs]# ll
  4. total 20
  5. drwxrwxrwx 6 root root 4096 Apr 28 02:51 bank
  6. drwxrwxrwx 6 root root 4096 Apr 28 08:10 ecommerce
  7. -rwxrwxrwx 1 root root 45 Apr 24 06:11 index.html
  8. -rwxrwxrwx 1 root root 20 Apr 24 06:04 phpinfo.php
  9. drwxrwxrwx 4 root root 135 Apr 29 03:32 Smarty
  10. drwxrwxrwx 7 root root 4096 Apr 29 06:30 support
  11. [root@b47067cebb97 htdocs]# cd -
  12. /
  13. [root@b47067cebb97 /]# source /etc/profile
  14. [root@b47067cebb97 /]# /usr/local/apache2/bin/apachectl start
添加新批注
在作者公开此批注前,只有你和作者可见。
回复批注