- 博客(5)
- 收藏
- 关注
原创 centos查看内核版本 和 系统版本
1.centos查看系统版本cat /etc/redhat-releaseCentOS Linux release 7.2.1511 (Core)2.[root@localhost ~]# uname -aLinux localhost.localdomain 2.6.18-194.el5 #1 SMP Fri Apr 2 14:58:14 EDT 2010 x86_64 x86_64 x86_...
2018-05-07 10:39:33 1219
原创 docker常用命令
(1)搜索可用的centos的docker镜像 docker search <image>:在docker index中搜索image docker search centos这样就可以搜索出在Docker Hub上所有带centos的公共的可用镜像(2)下载centos镜像(拉取镜像)docker pull centos:latest查看镜像 docker images:列...
2018-05-07 10:33:26 122
转载 PHP中静态方法(static)与非静态方法的使用及区别
static方法是类中的一个成员方法,属于整个类,即使不用创建任何对象也可以直接调用!静态方法效率上要比实例化高,静态方法的缺点是不自动进行销毁,而实例化的则可以做销毁。静态方法和静态变量创建后始终使用同一块内存,而使用实例的方式会创建多个内存。C++中,若类的方法前加了static关键字,则该方法称为静态方法,反之为实例方法。静态方法为类所有,可以通过对象来使用,也可以通过类来使用。但一般提倡通...
2018-05-07 09:11:09 356
原创 centos开启路由转发
开启路由转发net.ipv4.ip_forward=1net.ipv4.conf.all.rp_filter=0net.ipv4.conf.default.rp_filter=0
2017-07-06 17:27:35 1197
原创 CENTOS 修改网络yum源
centos 6版本 以163为例wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS6-Base-163.repocentos 5版本wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/Cent
2017-07-06 17:17:53 399
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人