Monthly Archives: January 2016

CentOS6.4下Mysql数据库的安装与配置

http://www.cnblogs.com/xiaoluo501395377/archive/2013/04/07/3003278.html Quick Guide: yum install -y mysql-server mysql mysql-deveservice mysqld start chkconfig mysqld on /usr/bin/mysqladmin -u root password 'root'  //... Read More | Share it now!

Centos 查看系统启动时间和运行时间

1.uptime命令 uptime 输出:16:11:40 up 59 days, 4:21, 2 users, load average: 0.00, 0.01, 0.00 如下图所示: 2.查看/proc/uptime文件计算系统启动时间 cat /proc/uptime 输出: 5113396.94... Read More | Share it now!

Hive:简单查询不启用Mapreduce job而启用Fetch task

如果你想查询某个表的某一列,Hive默认是会启用MapReduce Job来完成这个任务,如下: 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 hive> SELECT id,... Read More | Share it now!

CentOS 修改IP地址, DNS, 网关

一、CentOS 修改IP地址 修改对应网卡的IP地址的配置文件 # vi /etc/sysconfig/network-scripts/ifcfg-eth0 修改以下内容 DEVICE=eth0 #描述网卡对应的设备别名,例如ifcfg-eth0的文件中它为eth0 BOOTPROTO=static... Read More | Share it now!

What is a keytab, and how do I use one?

On this page: Introduction Creating a keytab file Using a keytab to authenticate scripts Listing the keys in a keytab file Deleting a key from a keytab file Merging keytab files Copying a keytab file to another computer Introduction A keytab is a... Read More | Share it now!

Hortonworks installer RHEL/CentOS/Oracle Linux 6

http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.0.0/bk_Installing_HDP_AMB/content/_download_the_ambari_repo_lnx6.html Before installing Hortonworks, please set up your Centos Envirenment: ... Read More | Share it now!

Bash Shell中命令行选项/参数处理

0.引言 写程序的时候经常要处理命令行参数,本文描述在Bash下的命令行处理方式。 选项与参数: 如下一个命令行: ./test.sh -f config.conf -v –prefix=/home 我们称-f为选项,它需要一个参数,即config.conf,... Read More | Share it now!