1 网络配置
本人采用centos系统,为了ip不变动,用桥接方式联网(bridge)。
2 SSH无密码访问,三个机器都要有三个机器的key
可以用Master机器可以用ssh Node1 ssh Node2来测试。
3 防火墙问题
关闭防火墙:`service iptables stop`
永久关闭防火墙:`chkconfig iptables off`
查看防火墙关闭状态:`servi...
分类:
其他好文 时间:
2015-06-01 09:50:05
阅读次数:
165
#!/bin/bash##httpdStartupscriptfortheApacheHTTPServer##chkconfig:-8515#description:ApacheisaWorldWideWebserver.Itisusedtoserve\#HTMLfilesandCGI.#processname:httpd#config:/etc/httpd/conf/httpd.conf#config:/etc/sysconfig/httpd#pidfile:/var/run/httpd.pid#Sourc..
分类:
其他好文 时间:
2015-05-31 01:33:31
阅读次数:
128
. 通过yum安装复制代码代码如下:yum -y install memcached#安装完成后执行:memcached -h#出现memcached帮助信息说明安装成功2. 加入启动服务复制代码代码如下:chkconfig --level 2345 memcached on3. 配置Memcach...
分类:
系统相关 时间:
2015-05-29 17:30:34
阅读次数:
171
为了php-fpm管理方便,从php安装目录拷贝了启动脚本,更改相应路径,然后执行添加启动服务,出现如下错误。servicephp-fpmdoesnotsupportchkconfig经过多方查找,原来是启动脚本中缺少了下面两行内容:#chkconfig:23451595#description:PHP-FPM(FastCGIProcessManager)isanalte..
分类:
Web程序 时间:
2015-05-28 18:28:33
阅读次数:
278
一、安装前准备
CentOS6.5(64bit)
hadoop-2.6.0-64.tar.gz
jdk-7u67-linux-x64.tar.gz
二、安装
1、关闭防火墙和SELinux
service iptables status (查看)
service iptables stop
chkconfig iptables off (永久关闭)
vi /et...
分类:
其他好文 时间:
2015-05-27 22:51:08
阅读次数:
159
1最小化安装(自定义选包:最基本为:Bash;Compatibilltylibrarles;DebuggingTools;Developmenttools)最小化启动:foroldboyin`chkconfig--list|grep"3:on"|awk‘{print$1}‘|grep-vE"crond|network|sshd|rsyslog|xinetd"`;dochkconfig$oldboyoff;done2ulimit:ulimit-n如果系统进..
分类:
系统相关 时间:
2015-05-27 01:05:47
阅读次数:
323
准备linux环境【java、ip、hostname、hosts、iptables、chkconfig、ssh】
下载稳定版2.6.0
修改etc/hadoop目录下的配置文件core-site.xml、hdfs-site.xml、yarn-site.xml、mapred-site.xml
启动
验证
下面主要配置文件:
core-site.xml:
fs.defau...
分类:
其他好文 时间:
2015-05-23 18:29:52
阅读次数:
215
Corosync+Pacemaker+Ldirectord+Lvs+Httpd一、硬件环境4台虚拟机在同一网段操作系统:centos6.3关闭系统不必要的服务脚本#!/bin/bash
services=`chkconfig--list|cut-f1|cut-d""-f1`
forserin$services
do
if["$ser"=="network"]||["$ser"=="rsyslog"]||["$ser"=="sshd"]||["$s..
分类:
Web程序 时间:
2015-05-21 12:56:10
阅读次数:
319
Heartbeat+Ldirectord+LVS+httpd集群部署一、硬件环境4台虚拟机在同一网段操作系统:centos6.3关闭系统不必要的服务脚本#!/bin/bash
services=`chkconfig--list|cut-f1|cut-d""-f1`
forserin$services
do
if["$ser"=="network"]||["$ser"=="rsyslog"]||["$ser"=="sshd"]||["$se..
分类:
Web程序 时间:
2015-05-20 09:59:01
阅读次数:
253
VMware克隆CentOS后无法启动网卡的解决(1)确保udev-post启动#chkconfig--listudev-postudev-post0:关闭1:启用2:启用3:启用4:启用5:启用6:关闭#/etc/init.d/udev-poststart(2)把网卡配置全删除(删除70-persistent-net.rules文件),重启让系统重新分配#cd/etc/udev/rules.d..
分类:
系统相关 时间:
2015-05-19 07:34:54
阅读次数:
253