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

Linux ÏÂMySQL NDBÅäÖÃ

A) Shutdown management node and data node
devmysql3# ndb_mgm -e shutdown
devmysql4# ndb_mgm -e shutdown
B) Shutdown MySQL proccess
devmysql3# mysqladmin shutdown
devmysql4# mysqladmin shutdown
devmysql3 ip: 10.130.30.217
devmysql4 ip: 10.130.30.218
rpm -ivh MySQL-Cluster-gpl-storage-6.3.20-0.rhel5.x86_64.rpm
rpm -ivh MySQL-Cluster-gpl-tools-6.3.20-0.rhel5.x86_64.rpm
rpm -ivh MySQL-Cluster-gpl-shared-6.3.20-0.rhel5.x86_64.rpm
rpm -ivh MySQL-Cluster-gpl-devel-6.3.20-0.rhel5.x86_64.rpm
rpm -ivh MySQL-Cluster-gpl-server-6.3.20-0.rhel5.x86_64.rpm
rpm -ivh MySQL-Cluster-gpl-client-6.3.20-0.rhel5.x86_64.rpm
rpm -ivh MySQL-Cluster-gpl-management-6.3.20-0.rhel5.x86_64.rpm
rpm -ivh MySQL-Cluster-gpl-extra-6.3.20-0.rhel5.x86_64.rpm
2.Configure MySQL Cluster
mkdir /var/lib/mysql-cluster
cd /var/lib/mysql-cluster
vi config.ini
[ndbd default]
NoOfReplicas = 2
MaxNoOfConcurrentOperations = 2000000
DataMemory = 3000M
IndexMemory = 500M
TimeBetweenWatchDogCheck = 30000
DataDir = /var/lib/mysql-cluster
MaxNoOfOrderedIndexes = 512
StartPartialTimeout = 205
StartPartitionedTimeout = 205
ArbitrationTimeout = 5000
TransactionDeadlockDetectionTimeout = 15000
HeartbeatIntervalDbDb = 5000
StopOnError = 0
TimeBetweenLocalCheckpoints = 15
NoOfFragmentLogFiles = 300

[ndb_mgmd default]
DataDir = /var/lib/mysql-cluster

[ndb_mgmd]
Id = 1
HostName = 10.130.30.217

[ndb_mgmd]
Id = 2
HostName = 10.130.30.218

[ndbd]
Id = 3
HostName = 10.130.30.217

[ndbd]
Id = 4
HostName = 10.130.30.218

[mysqld]
HostName = 10.130.30.217

ArbitrationRank = 2

[mysqld]
HostName = 10.130.30.218
ArbitrationRank = 2

[tcp default]
PortNumber = 63132

vi /etc/my.cnf
[mysqld]
max_connections = 500
default-character-set = utf8
default-storage-engine = ndbcluster
ndbcluster
ndb-connectstring = 10.130.30.217,10.130.30.218

[client]
default-character-set = utf8

[ndbd]
connect-s


Ïà¹ØÎĵµ£º

mysql ´´½¨±íʱ ÈÕÆÚ×Ö¶ÎĬÈÏֵΪµ±Ç°Ê±¼ä

    mysql version 5.1
    ÔÚmysql´´½¨±íµÄʱºò¾­³£»áÓöµ½´´½¨ÈÕÆÚ×Ö¶ÎÐèÒªÉèÖõ±Ç°Ê±¼äΪĬÈÏÖµµÄʱºò£¬¾ÍÈçsqlserver2000Ò»Ñù£¬°ÑĬÈÏÖµÉèΪgetdate()¼´¿É£¬ÎÒÔÚÍøÉϲéÁËN¾Ã¶¼Ã»Óв鵽ʹÓÃÓÐЧµÄ·½·¨£¬×îºó×Ô¼ºÑо¿ÁËһЩ·½·¨Óë´ó¼Ò·ÖÏí£º
Êý¾Ý¿â£ºtest_db1
´´½¨±í£ºtest_ta1
Á½¸ö×Ö¶ ......

תÔØ Ð´µÃÂùºÃµÄlinuxѧϰ±Ê¼Ç

linuxĿ¼¼Ü¹¹
/   ¸ùĿ¼
/bin    ³£ÓõÄÃüÁî binary file µÄÄ¿錄
/boot   ´æ·ÅϵͳÆô¶¯Ê±±ØÐë¶ÁÈ¡µÄµµ°¸£¬°üÀ¨ºËÐÄ (kernel) ÔÚÄÚ
     /boot/grub/menu.lst   GRUBÉèÖÃ
     /boot/vmlinuz   ÄÚºË
   ......

LinuxÄÚ´æ¹ÜÀí(zt)


Linux
ÄÚ´æ¹ÜÀí
ÕªÒª
£º±¾ÕÂÊ×ÏÈÒÔÓ¦ÓóÌÐò¿ª·¢ÕߵĽǶÈÉóÊÓ
Linux
µÄ½ø³ÌÄÚ´æ¹ÜÀí£¬ÔÚ´Ë»ù´¡ÉÏÖð²½ÉîÈëµ½ÄÚºËÖÐÌÖÂÛϵͳÎïÀíÄÚ´æ¹ÜÀíºÍÄÚºËÄÚ´æµÄʹÓ÷½·¨¡£Á¦Çó´ÓÍâµ½ÄÚ¡¢Ë®µ½Çþ³ÉµØÒýµ¼ÍøÓÑ·ÖÎö
Linux
µÄÄÚ´æ¹ÜÀíÓëʹÓá£ÔÚ±¾ÕÂ×îºó£¬ÎÒÃǸø³öÒ»¸öÄÚ´æÓ³ÉäµÄʵÀý£¬°ïÖúÍøÓÑÃÇÀí½â
ÄÚºËÄÚ´æ¹ÜÀíÓëÓû§ÄÚ´æ¹ÜÀíÖ ......

LinuxÏÂMP3¸èÇúÐÅÏ¢ÂÒÂëÖ®¼úÈ˽â¾ö·½°¸

תÔØ£º
ÏÖÔÚlinuxÏÂÓÐÔ½À´Ô½¶àµÄÓÅÐãµÄ²¥·ÅÈí¼þ£¬xmms£¬m-player£¬beep-media-player£¬totme£¬rhythmbox£¬µÈµÈµÈµÈ£¬µ«ÊÇÕâЩ²¥·ÅÈí¼þ¶¼²»ÄܺܺõĽâ¾ömp3ÎļþÖÐÎÄÐÅÏ¢ÂÒÂëµÄÎÊÌâ¡£
¾¿ÆäÔ­Òò£¬ÏÖÔÚÍøÉϾø´ó¶àÊý£¨99%ÒÔÉÏ£©µÄmp3¶¼ÊÇÍøÓÑÔÚwindowsÏÂѹÖƵģ¬ÎÄ×ÖÐÅÏ¢±àÂ뷽ʽ×ÔÈ»ÊÇGBK£¬µ½ÁËlinuxÏÂÃæ¾ÍûÓÐlftp ......

LinuxÏ¿ìËٴntpʱ¼äͬ²½·þÎñÆ÷

Ò»¡¢´î½¨Ê±¼äͬ²½·þÎñÆ÷
1¡¢±àÒë°²×°ntp server
wget http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2.4p4.tar.gz
tar zxvf ntp-4.2.4p4.tar.gz
cd ntp-4.2.4p4
./configure --prefix=/usr/local/ntp --enable-all-clocks --enable-parse-clocks
make && make install
×¢£ºÈçÒÔÉÏÏÂÔصØÖ·ÎÞ·¨·ÃÎÊ£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ