环境:1、ntp服务端:ip:192.168.4.1972、ntp客户端:ip:192.168.4.196我的服务器系统版本6.7(服务端)和6.4安装:1、新建服务器后设置网络,/etc/sysconfig/network-scripts/网卡位置在这个目录下。一般网卡的名称默认是ifcfg-eth0(现在centos7后面的版本网卡的默认名称已经..
分类:
其他好文 时间:
2016-04-14 12:25:10
阅读次数:
215
修改/etc/rc.local文件(增加红色部分) [root@localhost ~]# cat /etc/rc.local #!/bin/sh## This script will be executed *after* all the other init scripts.# You can ...
分类:
系统相关 时间:
2016-04-13 23:42:35
阅读次数:
219
/**author:老炮date:2014/5/10*/Centos6.4+PHP5.5.11+Mysql5.6.16+Tnginx2.02+Memcached1.4.17+Redis2.21:准备工作1.1配置网卡-确保能上网(dhcp方式或static方式) 1.1.1配置ifcfg-eth0文件 [root@localhostlog]#vi/etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0..
分类:
数据库 时间:
2016-04-13 20:54:10
阅读次数:
305
CentOS7 1、安装系统 基础设施服务器:Java平台、Linux远程管理、开发工具 2、打开网络连接: (1)cd /etc/sysconfig/network-scripts/ #进入网络配置文件目录 (2)vi ifcfg-eno16777736 #编辑配置文件,修改以下内容 (3)将on ...
分类:
其他好文 时间:
2016-04-13 20:27:33
阅读次数:
147
supertab.vim 这个插件是用来把tab键作为只能补全的映射,当然,具体更能肯定不仅仅只是如此,等待以后发现吧 地址 http://github.com/ervandew/supertab http://www.vim.org/scripts/script.php?script_id=164 ...
分类:
系统相关 时间:
2016-04-13 02:12:02
阅读次数:
452
进行搭建mysql集群的练习时,在Windows操作系统上、用VMware安装redhat的linux操作系统,直接克隆出两个redhat系统。当用ifconfig命令修改修改虚拟机ip地址的时候,eth0找不到。直接修改配置文件/etc/sysconfig/network-scripts/ifcfg-eth0,重启系统后,也没用。用ifconfig查看..
分类:
系统相关 时间:
2016-04-12 17:42:30
阅读次数:
269
1redis安装、keepalived安装2keepalived配置master:/etc/keepalived/keepalived.conf############!ConfigurationFileforkeepalivedvrrp_scriptchk_redis{script"/etc/keepalived/scripts/redis_check.sh"###监控脚本interval2###监控时间}vrrp_instanceVI_1{stateMASTER###设置..
分类:
其他好文 时间:
2016-04-11 19:05:18
阅读次数:
190
delimitMate.vim--这个插件主要是在插入模式下,用来自动补全括号、引号等 下载地址 http://www.vim.org/scripts/script.php?script_id=2754 http://github.com/Raimondi/delimitMate 如果使用vundl ...
分类:
系统相关 时间:
2016-04-10 17:56:38
阅读次数:
456
一:修改IP地址:vi /etc/sysconfig/network-scripts/ifcfg-eth0 IPADDR=192.168.80.100 NETMASK=255.255.255.0 GATEWAY=192.168.80.1 ONBOOT=yes IPADDR=192.168.80.10 ...
分类:
其他好文 时间:
2016-04-09 23:23:40
阅读次数:
266
一、设置CentOS上网自动获取IP设置 CentOS 没有ifconfig命令,IP命令替换 更改网卡设置,在目录/etc/sysconfig/network-scripts里面 设置onboot=no为yes 二、更新yum源 yum -y install wget wget 国内源 yum m ...
分类:
其他好文 时间:
2016-04-08 21:41:38
阅读次数:
199