Docker使用笔记

http://blog.csdn.net/mergerly/article/details/54587079

使用yum命令时,系统提示:
Loaded plugins: fastestmirror, refresh-packagekit, securityExisting lock /var/run/yum.pid: another copy is running as pid 1182.Another app is currently holding the yum lock; waiting for it to exit... The other application is: PackageKit Memory : 18 M RSS ( 33 MB VSZ) Started: Mon Sep 22 13:22:52 2014 - 06:25 ago State : Sleeping, pid: 11824主要原因就是yum在自动更新或你在用SoftUpadate更新软件, 只要关掉他就可以了
解决方案:
直接输入 rm -f /var/run/yum.pid或者: /etc/init.d/yum-updatesd stop也可以等更新完了再进行安装

centos7安装ssh服务

安装vim wget
yum -y install vim

service服务命令
yum list | grep initscripts

安装php
http://www.cnblogs.com/riverdubu/p/6428226.html
安装过程补充
configure: error: Cannot find OpenSSL's
yum install openssl openssl-devel

ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/lib/mysql/mysql.sock' (2)

docker 运行mysql实例
sudo docker run --name cdlmysql -p 33060:3306 -e MYSQL_ROOT_PASSWORD=123456 -d mysql

你可能感兴趣的:(Docker使用笔记)