<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://wiki.yepn.net/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel>
        <title>记事本</title>
        <description></description>
        <link>http://wiki.yepn.net/</link>
        <lastBuildDate>Tue, 07 Feb 2012 02:23:19 -0700</lastBuildDate>
        <generator>FeedCreator 1.7.2-ppt DokuWiki</generator>
        <image>
            <url>http://wiki.yepn.net/lib/tpl/dokubook/images/favicon.ico</url>
            <title>记事本</title>
            <link>http://wiki.yepn.net/</link>
        </image>
        <item>
            <title>Cobbler - [常用命令] </title>
            <link>http://wiki.yepn.net/cobbler?rev=1325657029&amp;do=diff</link>
            <description>Install

yum -y install cobbler tftp-server dhcp httpd xinetd

Setting

#vi /etc/cobbler/settings
161: manage_dhcp: 1
362: server: your_server_ip

cobbler check

dhcp.template

# more dhcp.template
# ******************************************************************
# Cobbler managed dhcpd.conf file
#
# generated from cobbler dhcp.conf template ($date)
# Do NOT make changes to /etc/dhcpd.conf. Instead, make your changes
# in /etc/cobbler/dhcp.template, as /etc/dhcpd.conf will be
# overwritten.
#…</description>
            <author>admin</author>
            <pubDate>Tue, 03 Jan 2012 23:03:49 -0700</pubDate>
        </item>
        <item>
            <title>Hadoop - [config文件] </title>
            <link>http://wiki.yepn.net/hadoop?rev=1321426085&amp;do=diff</link>
            <description>cloudera hadoop

Install

rpm -ivh cdh3-repository-1.0-1.noarch.rpm

yum install hadoop-0.20-conf-pseudo hadoop-0.20-native

config文件

core-site.xml

&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;?xml-stylesheet type=&quot;text/xsl&quot; href=&quot;configuration.xsl&quot;?&gt;

&lt;configuration&gt;
  &lt;property&gt;
    &lt;name&gt;fs.default.name&lt;/name&gt;
    &lt;value&gt;hdfs://namenode.mobcon.inside:8020&lt;/value&gt;
  &lt;/property&gt;

  &lt;property&gt;
     &lt;name&gt;hadoop.tmp.dir&lt;/name&gt;
     &lt;value&gt;/var/lib/hadoop-0.20/cache/${user.name}&lt;/value&gt;
  &lt;/property&gt;

  &lt;!-- OOZIE pr…</description>
            <author>admin</author>
            <pubDate>Tue, 15 Nov 2011 23:48:05 -0700</pubDate>
        </item>
        <item>
            <title>Flume - 创建</title>
            <link>http://wiki.yepn.net/flume?rev=1321352640&amp;do=diff</link>
            <description>确认路径[/tmp/]</description>
            <author>admin</author>
            <pubDate>Tue, 15 Nov 2011 03:24:00 -0700</pubDate>
        </item>
        <item>
            <title>Linux Tips - [Linux Tips] </title>
            <link>http://wiki.yepn.net/linux?rev=1320195449&amp;do=diff</link>
            <description>动态切换 Linux 使用的 CPU 数量

singlecore

#!/bin/bash

cpus_dir=&quot;/sys/devices/system/cpu&quot;

for cpu in $(ls &quot;$cpus_dir&quot; | grep 'cpu[0-9]\+')do
        cpu_online=&quot;$cpus_dir/$cpu/online&quot;
        if [[ -e &quot;$cpu_online&quot; &amp;&amp; $(cat $cpu_online) = 1 ]]
        then
                echo 0 &gt; &quot;$cpu_online&quot;
        fi
done</description>
            <author>admin</author>
            <pubDate>Tue, 01 Nov 2011 18:57:29 -0700</pubDate>
        </item>
        <item>
            <title>Puppet - [Puppet] </title>
            <link>http://wiki.yepn.net/puppet?rev=1319524999&amp;do=diff</link>
            <description>notify和require要成对使用

如何检查puppet的class文件语法：
This is how to do a a syntax check on a file.

puppet parser validate &lt;filename&gt; #e.g. ruby-server.pp
err: Could not parse for environment development: Syntax error at ';'; expected ']'
at /etc/puppet/manifests/classes/ruby-server.pp:2</description>
            <author>admin</author>
            <pubDate>Tue, 25 Oct 2011 00:43:19 -0700</pubDate>
        </item>
        <item>
            <title>PHP - [PHP 源码安装] </title>
            <link>http://wiki.yepn.net/php?rev=1317363799&amp;do=diff</link>
            <description>PHP Error

Warning: session_start()的解决方法

修改php.ini中的session.auto_start = 0 为 session.auto_start = 1

PHP学习笔记

字符串运算符.
&lt;?php
$a=my;
$b=name;
echo ($a.$b);    #把字符串$a与字符串$b连起来
?&gt;

数组运算符+
+ 运算符把右边的数组附加到左边的数组后面，但是重复的键值不会被覆盖。
&lt;?php
$a = array(&quot;a&quot; =&gt; &quot;apple&quot;, &quot;b&quot; =&gt; &quot;banana&quot;);
$b = array(&quot;a&quot; =&gt; &quot;pear&quot;, &quot;b&quot; =&gt; &quot;strawberry&quot;, &quot;c&quot; =&gt; &quot;cherry&quot;);

$c = $a + $b; // Union of $a and $b
echo &quot;Union of \$a and \$b: \n&quot;;
var_dump($c);

$c = $b + $a; // Union of $b and $a
echo &quot;Union of \$b and \$a: \n&quot;;
var_dump…</description>
            <author>admin</author>
            <pubDate>Fri, 30 Sep 2011 00:23:19 -0700</pubDate>
        </item>
        <item>
            <title>OpenLDAP - [源码安装] </title>
            <link>http://wiki.yepn.net/openldap?rev=1317107659&amp;do=diff</link>
            <description>因为现在公司里的员工帐号分为邮件、上网、Samba、SNS、Desknets等帐号，管理起来非常的麻烦，特别是员工入社和退社时需要在每个服务器上做一次操作，加大了管理成本，主要是把我的复杂化了很多，所以想把帐号统一起来，因为以前也没有接触过Openldap，所以这次是从头学起，包括数据库部分。
特作此笔记方便以后自己记录和查找相关资料</description>
            <author>admin</author>
            <pubDate>Tue, 27 Sep 2011 01:14:19 -0700</pubDate>
        </item>
        <item>
            <title>Git</title>
            <link>http://wiki.yepn.net/git?rev=1316676295&amp;do=diff</link>
            <description>git clone https时报错解决办法

Cloning into cancan...
error: SSL certificate problem, verify that the CA cert is OK. Details:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed while accessing &lt;https://github.com/ryanb/cancan.git/info/refs&gt;</description>
            <author>admin</author>
            <pubDate>Thu, 22 Sep 2011 01:24:55 -0700</pubDate>
        </item>
    </channel>
</rss>

