一.本地镜像举个例子:现在把自己的开发环境打包,取名为centos6-base.tar,然后在docker中,以centos6-base.tar作为基准镜像。 1.创建自己的镜像,放置于/root目录下:#tar --numeric-owner --exclude=/proc --exclude=....
分类:
其他好文 时间:
2014-07-31 16:30:56
阅读次数:
332
系统环境 ??????? RHEL5.4最小化安装(关iptables,关selinux) + ssh + yum 一,安装必须的软件包. ??????? yum install subversion (SVN服务器) ??????????????????? mysql-serv...
分类:
其他好文 时间:
2014-07-31 13:45:16
阅读次数:
294
列出镜像列出镜像,有两个可选參数,一个是all,一个是filter,all可选值有,0/False/false,1/True/true,默觉得0;filter是一个包括一个过滤对象的json,形式如‘{"dangling":["true"]}'GET /images/json我们能够尝试请求一下cu...
新配置的一台服务器,安装的是CentOS6.3系统,在安装完LNMP之后,发现nginx进程存在,且php解析正常,但是用分配的独立IP去访问的时候发现无法访问。查了下网上的资料,发现可能是Linux防火墙iptables导致nginx不能访问。我们访问一个网站,一般用的是80端口,那么这个问题的原...
分类:
系统相关 时间:
2014-07-30 00:54:32
阅读次数:
288
本文计划:一.安装Docker(Centos)二.注册Docker官网帐号三.下载基础centos镜像,安装需要的软件和环境后,push到自己的repository一.安装Docker(Centos)在https://fedoraproject.org/wiki/EPEL#How_can_I_use...
分类:
其他好文 时间:
2014-07-29 21:01:22
阅读次数:
296
一、环境部分:[root@localhost~00:17&2]#cat/etc/redhat-release;uname-r;getenforce;iptables-L
CentOSrelease5.10(Final)#发行版本号
2.6.18-371.el5#内核版本号
Disabled#selinux模式
ChainINPUT(policyACCEPT)#防火墙状态(可以根据需求自个配置)
targetprotoptsourc..
分类:
其他好文 时间:
2014-07-29 18:18:22
阅读次数:
212
iptables防火墙可以用于创建过滤(filter)与NAT规则。所有Linux发行版都能使用iptables,因此理解如何配置iptables将会帮助你更有效地管理Linux防火墙。如果你是第一次接触iptables,你会觉得它很复杂,但是一旦你...
分类:
其他好文 时间:
2014-07-29 16:07:59
阅读次数:
393
本文的目的主要用来说明如何在CentOS6.5的环境下配置出一个简单可用的samba服务,并且可以通过windows对其文件进行访问
安装相关软件
# yum install samba samba-client samba-commo
# chkconfig smb on
# chkconfig nmb on
对路由表做如下操作
# iptables -I INPUT 4 -...
分类:
其他好文 时间:
2014-07-29 15:12:31
阅读次数:
489
一、Linux系统安装配置
1.安装系统时选Desktop
2.设置eth0网卡为静态IP,添加子网掩码,网关,DNS,并配置自动启动
3.修改/etc/hosts,添加主机名和对应IP
4.禁用firewall和selinux
chkconfig iptables off
vi /etc/selinux/config
SELINUX=disabled...
分类:
数据库 时间:
2014-07-29 14:18:48
阅读次数:
412
启动memcache
./memcached -d -m 2048 -u root -c 1024 -p 12000 -P /tmp/memcached1.pid
启动nginx
service nginx start 或者 /etc/init.d/nginx start
启动redis
redis-server /etc/redis.conf
re...
分类:
其他好文 时间:
2014-07-29 12:54:57
阅读次数:
219