今天在做测试时,用到了nohup命令遇到一下问题
[concert@mhamanager ~]$ nohup /usr/bin/masterha_manager --conf=/etc/appl.cnf &
[1] 12501
[concert@mhamanager ~]$ nohup: appending output to `nohup.out'
使用该命令后单机关闭按钮关闭终端,再次...
分类:
其他好文 时间:
2014-09-16 18:59:21
阅读次数:
259
一、安装apache
[root@server03 etc]# yum install httpd
二、配置
[root@server03 etc]# cd /var/www/html
建一个网页
[root@server03 html]# vim index.html
开启服务
[root@server03 html]# service httpd start
在浏览器输入本机i...
分类:
其他好文 时间:
2014-09-16 18:57:51
阅读次数:
238
一、安装
yum install bind-utils.x86_64
yum install bind
二、配置
vim /etc/named.conf
编辑文件内容为:
############################################################
options {
listen-on port 53 { 127.0.0...
分类:
其他好文 时间:
2014-09-16 17:25:50
阅读次数:
328
[root@salt_serverhome]#ifconfigeth0|grep"inetaddr:"|awk-F:‘{print$2}‘|awk‘{print$1}‘
192.168.100.228
[root@salt_serverhome]#cat/etc/redhat-release
CentOSrelease6.3(Final)
[root@salt_serverhome]#uname-r
2.6.32-279.el6.x86_64
[root@salt_serverhome]#下载地址ht..
分类:
其他好文 时间:
2014-09-16 16:09:41
阅读次数:
250
/etc/LinuxNTP.confSystem-config-dateNetworkTimeProtocol(LinuxNTP,网络时间协议)用于同步它所有客户端时钟的服务。LinuxNTP服务器将本地系统的时钟与一个公共的LinuxNTP服务器同步然后作为时间主机提供服务,使本地网络的所有客户端能同步时钟。同步时钟最大的好处就是相关..
分类:
系统相关 时间:
2014-09-16 16:09:11
阅读次数:
301
Hadoop系列之Hive(数据仓库)安装配置1.在NameNode安装cd/root/softtarzxvfapache-hive-0.13.1-bin.tar.gzmvapache-hive-0.13.1-bin/usr/local/hadoop/hive2.配置环境变量(每个节点都需要增加)打开/etc/profile#添加以下内容:exportHIVE_HOME=/usr/local/hadoop/hiveexportPATH..
分类:
其他好文 时间:
2014-09-16 16:07:12
阅读次数:
256
exists和in 干的事是一样的,那为什么还要弄两个呢,其实是效率问题
例如下面两个例子
1.select * from t1 where exists(select 'X' from t2 where t1.a=t2.a)
PS:这里的‘X'换成其他任意常亮都是可以的,例如数字字符etc。
2.select * from t1 where t1.a in(select t2.a fro...
分类:
其他好文 时间:
2014-09-16 15:57:20
阅读次数:
170
零、Ubuntu的安装官网下载,我装的是12.04的x64版。一、系统升级更换ubuntu的源1.备份更新源$ sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup2.修改更新源$ sudo gedit /etc/apt/sources...
分类:
其他好文 时间:
2014-09-16 15:51:40
阅读次数:
245
Linux 下什么都比较麻烦,就连修改主机名也不例外。我们就下文说一下具体方法。Linux 安装好后,其默认的主机名是 localhost。修改 Linux 主机名需要3步。使用 hostname 修改当前主机名。hostname new-hostname修改 /etc/sysconfig/netw...
分类:
系统相关 时间:
2014-09-16 15:49:30
阅读次数:
175
JDK从oracle官网上下载JDK直接解压,生成/usr/java/然后创建/etc/profile.d/java.shexportJAVA_HOME=/usr/java/jdk1.7.0_67exportPATH=$PATH:$JAVA_HOME/bintomcat在tomcat.apache.org上下载tomcat直接解压,-C/usr/local做个软链ln-s然后创建/etc/profile.d/tomcat.shexportCA..
分类:
其他好文 时间:
2014-09-16 12:51:31
阅读次数:
232