Linux Ô´Âë°²×°Mysql5.5
¹«Ë¾µÄ·þÎñÆ÷ÊÇCentOS 5.4(Final)°æµÄ£¬½ñÌìÔÚÉÏÃæ°²×°ÁËÒ»»Ømysql5.5£¬¼Ç¼ÈçÏ£º
1¡¢´Óhttp://blog.s135.com/soft/linux/nginx_php/mysql/mysql-5.5.2-m2.tar.gz ÏÂÔØÔ´Âë°²×°°üµ½/usr/local/src
2¡¢tar zxvf mysql-5.5.2-m2.tar.gz ½âѹµ½/usr/local/src/mysql-5.5.2-m2ÏÂ
cd mysql-5.5.2-m2/
./configure --prefix=/home/mysql/ --enable-assembler --with-extra-charsets=complex --enable-thread-safe-client --with-big-tables --with-readline --with-ssl --with-embedded-server --enable-local-infile --with-plugins=partition,innobase,myisammrg
£¨ÔÚÁíÍâһ̨·þÎñÆ÷°²×°Ê±£¬³öÏÖconfigure: error: No curses/termcap library found´íÎ󣬼ÓÉÏ--with-named-curses-libs=/usr/lib/libncursesw.so.5²ÎÊý¿ÉÒÔ½â¾ö£¬»òÕßÔÙÓÃyum°²×°ncurses-develÒ²¿É£©
make
make install
ÔÚmake installµÄºó°ë¹ý³Ì£¬ÓÐÒ»¶Î±È½Ï³¤Ê±¼äµÄÍ£¶Ù£¬²»Òªµ£ÐÄËÀµôÁË£¬Êµ¼ÊÉÏËü»¹»î×Å£¬ÄÍÐĵĵȴý£¬×îÖջᰲװÍê±Ï¡£
3¡¢Èç¹û»¹Ã»ÓÐmysqlÓû§£¬´´½¨£º
groupadd mysql
useradd mysql -g mysql
4¡¢ÐÞ¸ÄĿ¼ȨÏÞ£º
chmod +w /home/mysql
chown -R mysql:mysql /home/mysql
5¡¢´´½¨Êý¾ÝĿ¼£¨mysql5.5ĬÈÏÒѾûÓÐdataĿ¼ÁË£©
mkdir /home/mysql/data
6¡¢³õʼ»¯Êý¾Ý¿â£º
/home/mysql/bin/mysql_install_db --basedir=/home/mysql --datadir=/home/mysql/data --user=mysql
7¡¢´´½¨mysqlÅäÖÃÎļþ£º/etc/my.cnf
[mysqld]
datadir=/home/mysql/data
socket=/tmp/mysql.sock
user=mysql
log=/home/mysql/sql.log
log_slow_queries=ON
log_slow_queries=/home/mysql/sql_slow.log
long_query_time=2
[client]
port = 3306
socket = /tmp/mysql.sock
8¡¢Æô¶¯mysql
/home/mysql/bin/mysqld_safe &
´ó¹¦¸æ³É£¡
²»¹ý£¬ÕâÖ»ÊÇ×î¼òµ¥µÄ°²×°ÅäÖùý³Ì£¬mysql5ÒѾ֧³ÖÊý¾Ý¿â¼¯ÈºµÈºÜ¶à¸ß¼¶¹¦ÄÜ£¬´ýÒÔºóÔÙÉîÈëÑо¿¡£
Ïà¹ØÎĵµ£º
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
[url=http://www.netdigedu.com/jiagoubaike/13063.html]Linux:LinuxÎļþÃüÁָͨÄÏ[/url]
[url=http://www.netdigedu.com]ÍøѶͨÐÅѧԺ[/url]
Ϊ¸Õ½Ó´¥ Linux ÎļþÃüÁîµÄ³õѧÕßÌṩµÄËٳɽ̳Ì
ËäÈ» GUI ×ÀÃ棨Èç KDE ºÍ GNOME£©Äܹ»°ïÖúÓû§ÀûÓà Linux ÌØÐÔ£¬¶øÎÞÐè¹ØÓÚÃüÁîÐнӿڵŦÄÜ֪ʶ£¬µ«»¹ÊǾ³£»áÐèÒª¸ü¶àµÄ ......
Ò»¡¢Ðźż°ÐźÅÀ´Ô´
Ðźű¾ÖÊ
ÐźÅÊÇÔÚÈí¼þ²ã´ÎÉ϶ÔÖжϻúÖƵÄÒ»ÖÖÄ£Ä⣬ÔÚÔÀíÉÏ£¬Ò»¸ö½ø³ÌÊÕµ½Ò»¸öÐźÅÓë´¦ÀíÆ÷ÊÕµ½Ò»¸öÖжÏÇëÇó¿ÉÒÔ˵ÊÇÒ»ÑùµÄ¡£ÐźÅÊÇÒì²½µÄ£¬Ò»¸ö½ø³Ì²»±Øͨ¹ýÈκβÙ×÷À´µÈ´ýÐźŵĵ½´ï£¬ÊÂʵÉÏ£¬½ø³ÌÒ²²»ÖªµÀÐźŵ½µ×ʲôʱºòµ½´ï¡£
ÐźÅÊǽø³Ì¼äͨÐÅ»úÖÆÖÐΨһµÄÒ첽ͨÐÅ»úÖÆ£¬¿ÉÒÔ¿´×÷ÊÇÒì²½Í¨Ö ......
Linux³£ÓÃÃüÁîÇåµ¥
NO
·ÖÀà
PS1
ÃüÁîÃû
Ó÷¨¼°²ÎÊý
¹¦ÄÜ×¢½â
1
Îļþ¹ÜÀí
#
ls
ls -a
Áгöµ±Ç°Ä¿Â¼ÏµÄËùÓÐÎļþ£¬°üÀ¨ÒÔ.Í·µÄÒþº¬Îļþ
Îļþ¹ÜÀí
#
ls
ls -l»òll
Áгöµ±Ç°Ä¿Â¼ÏÂÎļþµÄÏêϸÐÅÏ¢
Îļþ¹ÜÀí
#
pwd
pwd
²é¿´µ±Ç°ËùÔÚĿ¼µÄ¾ø¶Ô·¾
  ......
½ñÌìѧµ½µÄ¶«¶«£º
1¡¢²é¿´½ø³ÌËù¶ÔÓ¦¿ÉÖ´ÐгÌÐòµÄ¾ø¶Ô·¾¶
[1]. ps -ef | grep ½ø³ÌÃû »ñµÃPID
[2]. ½øÈëprocÎļþϵͳÀï¶ÔÓ¦µÄĿ¼£º/proc/ <PID>
[3]. ls -l
exeÁ´½Ó¶ÔÓ¦µÄ¾ÍÊÇ¿ÉÖ´ÐÐÎļþµÄȫ·¾
......