centos7下Samba安装

Install samba server Preparation disable selinux sed -i 's/SELINUX=enforcing/SELINUX=disabled/g' /etc/selinux/config stop iptables /etc/init.d/iptables stop [start,status,restart] check if old samba package exist [root@localtest home]# rpm -qa|grep samba samba-winbind-3.6.23-14.el6_6.x86_64 samba-common-3.6.23-14.el6_6.x86_64 samba4-libs-4.0.0-66.el6_6.rc4.x86_64 samba-client-3.6.23-14.el6_6.x86_64 samba-winbind-clients-3.6.23-14.el6_6.x86_64 # if exist, you can delete # rpm -e samba-common-3.6.23-14.el6_6.x86_64 # or not to delete and wait yum related update Installation via yum installation yum install -y samba samba-client samba-swat ========================================================================================================================= Package Arch Version Repository Size ========================================================================================================================= Installing: samba

centos7下Redis安装

Prodution Redis is an open source, BSD licensed, advanced key-value cache and store. It is often referred to as a data structure server since keys can contain strings, hashes, lists, sets, sorted sets, bitmaps and hyperloglogs. Preparation ## check if install gcc gcc-c++ make tcl(for make test) rpm -qa|egrep 'gcc|make|tcl' ## if not ,please install first ## yum install -y gcc gcc-c++ make tcl Installation # you can install one

centos7下Docker安装

Before installation root@pts/0 # uname -r 2.6.32-279.el6.x86_64 For Centos-6.5, the Docker package is part of Extra Packages for Enterprise Linux (EPEL) repository, a community effort to create and maintain additional packages for the RHEL distribution. Install epel package root@pts/0 # rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm Retrieving http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm warning: /var/tmp/rpm-tmp.jZDBGF: Header V3 RSA/SHA256 Signature, key ID 0608b895: NOKEY Preparing... ########################################### [100%] 1:epel-release ########################################### [100%] root@pts/0 # ls -lart /etc/yum.repos.d/ total 32 -rw-r--r--. 1

docker-compose-installation

Docker docker-compose docker-compose && fig Installation curl -L https://github.com/docker/compose/releases/download/1.1.0/docker-compose-`uname -s`-`uname -m` > /usr/local/bin/docker-compose chmod +x /usr/local/bin/docker-compose or you can install docker-compose by PyPi(Python Package Index) pip install docker-compose Install python pip Note: Python 2.5 was supported through v1.3.1, and Python 2.4 was supported through v1.1. refer to :https://pip.pypa.io/en/stable/ Method 1: ## install pip by yum method under centos yum install -y python-pip Method 2: wget --no-check-certificate https://github.com/pypa/pip/archive/1.5.5.tar.gz tar zvxf 1.5.5.tar.gz

Docker 错误集合

no such file or directory when build a Dockerfile ,and the file ‘redis.conf’ exists in real , but met such erro Step 5 : RUN mkdir /usr/local/redis/ ---> Running in 5cf73a52953f ---> 3351c41a56b4 Removing intermediate container 5cf73a52953f Step 6 : COPY /home/dockerdir/Dockerfiles/redis.conf /usr/local/redis/conf/ **INFO[0007] home/dockerdir/Dockerfiles/redis.conf: no such file or directory** the reason: if you build using STDIN (docker build - < somefile) , this is no build context ,so COPY