LAMP 指的 Linux(操作系统)、ApacheHTTP 服务器,MySQL(有时也指MariaDB,数据库软件) 和 PHP(有时也是指 Perl 或 Python) 的第一个字母,一般用来建立 web 服务器。 虽然这些开放源代码程序本身并不是专门设计成同另几个程序一起工作的,但由于它们的免费和开源,这个组合开始流行(大多数Linux发行版本捆绑了这些软件)。当一起使用的时候,它们表现的像...
分类:
其他好文 时间:
2014-10-15 14:04:50
阅读次数:
289
docker 中的容器互联是一个较为复杂的话题,详细内容将在后续章节中介绍。 续前 2 个章节的内容,我们创建了一个 mysql 容器和一个 tomcat 容器,可以使用 「docker ps」来查看他们的状态。core@localhost ~/base $ docker ps
CONTAINER ID IMAGE COMMA...
分类:
数据库 时间:
2014-10-15 12:45:20
阅读次数:
292
首先 查看1.用ps -ef|grep postgres 查看进程是否已经启动;正常情况如下:postgres 1445 1 0 07:54 ? 00:00:00 /usr/bin/postgres -D /var/lib/pgsql/data -p 5432postgres 1853 1445.....
分类:
数据库 时间:
2014-10-15 12:40:00
阅读次数:
773
tomcat 服务器是目前比较流行的开源中间件服务器,下面介绍如何使用 docker 来做一个 tomcat 数据库服务。官方的仓里没有标 OFFICIAL 的 tomcat 的镜像,不过 「tutum」的镜像做的非常好,我们可以直接 pull 他们的镜像来完成我们的操作。core@localhost ~/base $ docker pull tutum/tomcat:8.0
Pulling r...
分类:
其他好文 时间:
2014-10-15 11:22:40
阅读次数:
220
mysql 服务器是目前比较流行的开源数据库服务器,下面介绍如何使用docker来做一个mysql数据库服务从网站直接 pull 一个 mysql 的镜像core@localhost ~/base $ docker pull dl.dockerpool.com:5000/mysql:5.7
Pulling repository dl.dockerpool.com:5000/mysql
e95cbb...
分类:
数据库 时间:
2014-10-14 19:26:09
阅读次数:
269
为了性能测试需要,写一个了简单的jsp页面: docker is 在测试过程中,发现jvm堆内存有泄露情况!这个实在让人费解啊...经过百度发现装载JSP的tomcat每接受一次请求,就会为这个请求开一个Session,而这个Sessio...
分类:
Web程序 时间:
2014-10-14 14:43:28
阅读次数:
131
下载官方镜像core@localhost ~ $ docker pull ubuntu:14.04
#如果官方下载较慢,可到www.dockerpool.com下载标准镜像
core@localhost ~ $ docker pull dl.dockerpool.com:5000/ubuntu:14.04
core@localhost ~ $ docker tag dl.dockerpool.co...
分类:
系统相关 时间:
2014-10-14 13:21:18
阅读次数:
316
1.初始化数据库;postgresql-setup initdb2.启动postgresql并设置为开机自启动;systemctl restart postgresqlsystemctl enable postgresql3.登进数据库看看状态;(可略)su - postgrespsql\du (查...
分类:
数据库 时间:
2014-10-13 19:02:27
阅读次数:
303
cd/usr/local/src
wgethttp://nginx.org/download/nginx-1.7.6.tar.gz
tar–xvfnginx-1.7.6.tar.gz
cdnginx-1.7.6
./configure--prefix=/usr/local/nginx--with-http_stub_status_module--with-http_ssl_module--with-pcre
makemakeinstall
vi/usr/local/nginx/conf/nginx.con..
分类:
Web程序 时间:
2014-10-13 17:47:30
阅读次数:
552