源码安装saltstack 之前在redhat6.2_x64上装saltstack比较容易,当时考虑到服务器没有联网,就用的本地yum源和所需的包进行安装的,当时也比较顺利,光盘中的包以及自己下载的包都能够很好的方便的进行安装;后来又使用同样的方法在master端起一个httpd服务将所需的包作为网络中的yum源,继续在redhat6.2上安装saltstack真是屡试不爽;但是,今天再次尝试使用以上2种方法在redhat5.7上安装saltstack时就问题多多,无论是联网... 2015年01月15日 Other Tech 暂无评论 喜欢 6 阅读 4,378 次 阅读全文
使用salt一键批量安装/配置/管理Apache 该文档是使用salt集中安装/配置/管理Tomcat的姊妹文档 但是该文档将之前安装tomcat的各个步骤集中在一个配置文件中进行一键安装配置管理Apache 其他细节不在赘述,具体见:http://www.yallonking.com/?p=1302 Apache的sls配置文件如下: [root@mysqlhost apache]# cat apache.sls apache-install: file.managed: - name: /apache/httpd-2.2.27.tar.gz - source: salt://apache/files/htt... 2014年09月07日 Other Tech 暂无评论 喜欢 3 阅读 3,349 次 阅读全文
使用salt集中安装/配置/管理Tomcat 首先我们有2台机器需要部署tomcat如下: [root@mysqlhost ~]# salt-key -L Accepted Keys: 192.168.137.154 192.168.137.155 Unaccepted Keys: Rejected Keys: 查看2台机器OS版本 [root@mysqlhost ~]# salt '*' cmd.run "uname -a;cat /etc/redhat-release" 192.168.137.155: Linux mysqlhost 2.6.32-71.el6.x86_64 #1 SMP Wed Sep 1 01:33:01 EDT 2010 x86_64 x86_6... 2014年09月07日 Other Tech 暂无评论 喜欢 0 阅读 5,553 次 阅读全文
使用udev绑定裸设备 查看当前分区情况 [root@ocm4 ~]# fdisk -l Disk /dev/sda: 21.4 GB, 21474836480 bytes 255 heads, 63 sectors/track, 2610 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 1 64 514048+ 83 Linux /dev/sda2 65 586 4192965 82 Linux sw... 2014年05月29日 Other Tech 暂无评论 喜欢 0 阅读 2,120 次 阅读全文
VI使用方法 一、进入vi的命令 vi file 打开或新建文件file,并定位光标到第一行行首。 vi +10 file 打开文件,并定位光标到第10行行首。 vi + file 打开文件,并定位光标到末行行首。 vi + /keyword file 打开文件,并定位光标到第一个与keyword匹配的串处。 vi -r file 在上次编辑file时,发生系统崩溃,此次恢复file。 二、移动光标类命令 k或nk 光标上移一行或n行。 j或nj 光标下移一行或n行。 h... 2014年04月29日 Other Tech 暂无评论 喜欢 0 阅读 1,889 次 阅读全文
Secure CRT复制中文显示乱码 今天在捣鼓oracle字符集的时候,无法将crt中的中文字符复制到txt等文本中,查验了各种字符集设置,最后定位到crt的设置上。 只要把crt中的外观中的字体设置为任意一种中文字体即可解决。 具体如图: 2013年06月17日 Other Tech 暂无评论 喜欢 0 阅读 2,148 次 阅读全文
wordpress插件coolcode使用说明 CoolCode 所做的改进 增加了直接以文件形式下载源代码的功能。 增加了选择是否显示行号功能,在行号显示模式下还可以通过双击代码来隐藏或显示行号。 将固定宽高的代码窗口改成了自适应的窗口。 重新定义了样式表。使显示的代码更美观。 将代码加亮处理后的 class 改为了内嵌式的 style。这样是为了方便将彩色代码复制到 Word 之类的 Rich Text 编辑器中。 修改了 Text_Highlighter 中的 Html Renderer。修... 2013年01月12日 Other Tech 暂无评论 喜欢 0 阅读 2,175 次 阅读全文
hadoop+hive+hbase的简单安装 hadoop+hive+hbase的简单安装 hadoop、hive、hbase下载地址:http://mirror.bit.edu.cn/apache/ (一)hadoop安装: 解压hadoop-0.20.2.tar.gz #tar xf hadoop-0.20.2.tar.gz 在目录 /root/hadoop-0.20.2/conf 下修改文件 hadoop-env.sh 添加: export JAVA_HOME=/usr --根据自己具体情况 在目录 /root/hadoop-0.20.2/conf 下修改文件 hdfs-site.xml fs.default.name hdfs://oraking:9000 mapred.job.t... 2013年01月12日 Other Tech 暂无评论 喜欢 0 阅读 1,663 次 阅读全文
hive的简单操作 hive的简单操作 环境说明: 一般台式机+vmware8.0+orcel enterprise linux6.0+hadoop-0.20.2+hive-0.7.1 --创建测试表 test_hive2[测试表 test_hive3 同理] hive> create table test_hive2 (id int,id2 int,name string) > row format delimited > fields terminated by '\t'; OK Time taken: 0.055 seconds hive> load data local inpath '/root/tmp001.txt' > overwrite into table test_h... 2013年01月12日 Other Tech 暂无评论 喜欢 0 阅读 1,876 次 阅读全文