Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

ÔÚLinuxϱàÒëʹÓÃkfs

±àÒë°²×°KFS£º
kfs:kosmosfs
環¾³:
os:centos5.3
metaserver£ºVM-CentOS-5-SHU
chunkservers:VM-CentOS-5-SHU-2,VM-CentOS-5-SHU-3,VM-CentOS-5-SHU-4
Ç°ÌáÌõ¼þ£ºssh¤Ç¥Ñ¥¹¥ïー¥É無¤·¤Ç認証¤Ë¤Ê¤ë
kfs¤Î¥¤¥ó¥¹¥Èー¥ë
metaserver¤ÇÏÂ記¤Î²Ù×÷¤òÐФ¦
Ò»¡¢±ØÒª¥Ñ¥Ã¥±ー¥¸¤Î準備
£±¡¢boost¤Î¥¤¥ó¥¹¥Èー¥ë£¨ver1.34ÒÔÉÏ£©
yum -y install boost boost-devel
2.gcc¤Î¥¤¥ó¥¹¥Èー¥ë(ver4.1ÒÔÉÏ)
yum -y install gcc gcc-c++ ←´æÔڤǤʤ±¤ì¤Ð
3.cmake¤Î¥¤¥ó¥¹¥Èー¥ë£¨ver2.4.6£©
cd /usr/local/src
wget http://www.cmake.org/files/v2.6/cmake-2.6.4.tar.gz
tar -zxvf cmake-2.6.4.tar.gz
cd /usr/local/src/cmake-2.6.4
./bootstrap --prefix=/usr/local
make
make install
4.log4cpp¤Î¥¤¥ó¥¹¥Èー¥ë(ver1.0)
cd /usr/local/src
wget http://downloads.sourceforge.net/proj ... pp-1.0/log4cpp-1.0.tar.gz
tar zxvf log4cpp-1.0.tar.gz
cd log4cpp-1.0
./configure
make
make install
5.xfs devel RPMs on Linux¤Î¥¤¥ó¥¹¥Èー¥ë
yum -y install xfsprogs xfsprogs-devel
¶þ¡¢kfs¤Î¥Ó¥ë¥É
cd /usr/local/
wget http://downloads.sourceforge.net/proj ... fs/kfs-0.3/kfs-0.3.tar.gz
tar zxvf kfs-0.3.tar.gz
cd kfs-0.3
mkdir build
cd build
vi /usr/local/kfs-0.3/CMakeLists.txt¤ò編¼¯110ÐФËÏÂ記¤ò×·記
SET(JAVA_INCLUDE_PATH "/usr/java/latest/include")
SET(JAVA_INCLUDE_PATH2 "/usr/java/latest/include")
cmake -D CMAKE_BUILD_TYPE=RelWithDebInfo /usr/local/kfs-0.3/
gmake
gmake install
Èý¡¢設¶¨
mkdir /export/kosmix
vi /usr/local/kfs-0.3/scripts/machines.cfg
[metaserver]
node: VM-CentOS-5-SHU
clusterkey: kfs-test-cluster
rundir: /export/kfsmix/kfs/meta
baseport: 20000
loglevel: INFO
numservers: 3
[chunkserver_defaults]
rundir: /export/kfsmix/kfs/chunk
chunkDir: /export/kfsmix/kfs/chunk/bin/kfschunk
baseport: 30000
space: 3400 G
loglevel: INFO
vi /usr/local/kfs-0.3/conf/machines.txt
VM-CentOS-5-SHU-2
VM-CentOS-5-SHU-3
VM-CentOS-5-SHU-4
vi /usr/local/kfs-0.3/conf/ChunkServer.prp
# Co


Ïà¹ØÎĵµ£º

Linux ƽ̨Ï PHP °²×° Æô¶¯

php°²×°
# tar xzvf php-5.2.5.tar.gz
# cd php-5.2.5
./configure --prefix=/home/redadmin/php --with-apxs2=/home/redadmin/apache/bin/apxs --with-mysql=/home/redadmin/mysql --enable-mbstring=all --enable-track-vars
# make && make install
# cp php.ini-dist /home/redadmin/php/lib/php.ini
# c ......

Linux ƽ̨Ï MYSQL°²×° Æô¶¯ mysqlÃüÁî

MYSQL°²×°
//½âѹ±àÒë°²×°
# tar xzvf mysql-5.0.27.tar.gz
# cd mysql-5.0.27
# ./configure -prefix=/home/redadmin/mysql
# make
# make install
# cd /home/redadmin/mysql/
# cp share/mysql/my-medium.cnf ./
# mv my-medium.cnf my.cnf
// my.confÎļþÐÞ¸Ä
# vi my.cnf
ÐÞ¸ÄÇ°£º
port  &nb ......

¹ØÓÚLinuxϵÄ/dev/nullºÍ/dev/zeroÎļþ

ʹÓÃ/dev/null
°Ñ/dev/null¿´×÷"ºÚ¶´". Ëü·Ç³£µÈ¼ÛÓÚÒ»¸öֻдÎļþ. ËùÓÐдÈëËüµÄÄÚÈݶ¼»áÓÀÔ¶¶ªÊ§. ¶ø³¢ÊÔ´ÓËüÄǶù¶ÁÈ¡ÄÚÈÝÔòʲôҲ¶Á²»µ½. È»¶ø, /dev/null¶ÔÃüÁîÐкͽű¾¶¼·Ç³£µÄÓÐÓÃ. ½ûÖ¹±ê×¼Êä³ö.
1 cat $filename >/dev/null
2 # ÎļþÄÚÈݶªÊ§£¬¶ø²»»áÊä³öµ½±ê×¼Êä³ö.
½ûÖ¹±ê×¼´íÎó
1 rm $badname 2>/dev/ ......

linuxÖеĹÅÀÏËõÂÔÓï

ÎÞÒâÖп´µ½ÁËһƪzz  
http://hi.baidu.com/lyricidyll/blog/item/54e8f9a9c35bb8bbca130c7c.html
ÍÚLinuxÖеĹÅÀÏËõÂÔÓï
UnixÒѾ­ÓÐ35ÄêÀúÊ·ÁË¡£Ðí¶àÈËÈÏΪËü¿ªÊ¼ÓÚÖÐÊÀ¼Í£¬Õâ¸öÖÐÊÀ¼ÍÊÇÏà¶ÔÓÚ¼ÆËã»ú¼¼ÊõµÄ²úÉúºÍ·¢Õ¹À´ËµµÄ¡£ÔÚ¹ýÈ¥µÄʱ¼äÀUnixºÍËüµÄ×Ó·ÖÖ§
LinuxÊÕ¼¯ÓÐÐí¶àµÄÀúÊ·ºÍһЩÍêÈ«¹ÅÀϵÄÓïÑÔ¡£ ......

linux µÄ¿â²Ù×÷ÃüÁî arºÍnm


µ±ÎÒÃǵijÌÐòÖÐÓо­³£Ê¹ÓõÄÄ£¿é£¬¶øÇÒÕâÖÖÄ£¿éÔÚÆäËû³ÌÐòÖÐÒ²»áÓõ½£¬Õâʱ°´ÕÕÈí¼þÖØÓõÄ˼Ï룬ÎÒÃÇÓ¦¸Ã½«ËüÃÇÉú³É¿â£¬Ê¹µÃÒÔºó±à³Ì¿ÉÒÔ¼õÉÙ¿ª·¢´úÂëÁ¿¡£ÕâÀï½éÉÜÁ½¸öÃüÁîarºÍnm£¬ÓÃÀ´¶Ô¿â²Ù×÷¡£
1.ar»ù±¾Ó÷¨
2.nm»ù±¾Ó÷¨ÃüÁî
¡¡µ±ÎÒÃǵijÌÐòÖÐÓо­³£Ê¹ÓõÄÄ£¿é£¬¶øÇÒÕâÖÖÄ£¿éÔÚÆäËû³ÌÐòÖÐÒ²»áÓõ½£¬Õâʱ°´ÕÕÈí¼þÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ