linuxÏ°²×°MySQL
°²×°MySQL
ºÃ£¬ÎÒÃÇ¿ÉÒÔ¿ªÊ¼ÕýʽµÄ°²×°ÁË¡£¼ÙÉèÄã°ÑËùÓбØÐëµÄÔ´Âë»òÕß°ü¶¼·ÅÔÚÁË/tmpÏ¡£Èç¹ûÄãÏÂÔصÄÊÇRPM°üµÄ»°£¬ÄDZȽϼòµ¥£»Èç¹ûÄãÏÂÔصÄÊǶþ½øÖÆ°ü£¨ÄãûÓÐrpm³ÌÐò»òÕßÄãÏë×Ô¶¨ÒåµÄ»°£©£¬ÄÇô»áÉÔ΢Âé·³Ò»µã¡£
RPM°ü°²×°
Äã±ØÐë³ÉΪrootÓû§²ÅÄÜʹÓÃrpm°²×°³ÌÐò£¬ÒÔÏÂÊÇ°²×°¹ý³Ì£º
$ cd /tmp
$ su
# rpm -Uvh MySQL*(°²×°ºÍMySQLÏà¹ØµÄËùÓаü£©
Õ⽫°²×°ÄãÏÂÔصÄËùÓÐ3¸öMySQL°ü¡£Èç¹ûÄãµÄϵͳÊÇRedHat LinuxµÄ»°£¬½¨ÒéʹÓÃRPM°²×°·½Ê½£¬ÒòΪËùÓеŤ×÷¶¼ÓÉrpm³ÌÐò°ïÄã¸ãºÃÁË¡£
Ô´Âë°²×°
Ïà¶ÔÓÚÓÃRPM°²×°À´½²£¬Óöþ½øÖÆÔ´Âë°²×°ÊÇÉÔ΢Âé·³Á˵㡣µ«ÊÇÎÒÃÇ¿ÉÒÔÔÚ°²×°½Å±¾ÖпÉÒÔ×Ô¶¨Òå°²×°µÄÏà¹Ø²ÎÊý£¬¶ø²»ÓÃÏórpm·½Ê½Ö»ÄÜ°²×°Ä¬ÈϵÄÀ´°²×°¡£
°²×°¶þ½øÖÆÔ´´úÂë
Èç¹ûÄãÏÂÔصÄÊǶþ½øÖÆÔ´´úÂ룬ËüµÄÃû×ÖÀàËÆÓÚ£º mysql-3.22.21-pc-linux-gnu-i686.tar.gz¡£Äã±ØÐë³ÉΪrootÓû§£¬È»ºó½âѹµ½ /usr/localĿ¼£¬²Ù×÷²½ÖèÈçÏ£º
$ cd /usr/local
$ su
# tar -zxvf /tmp/mysql-3.22.21-pc-linux-gnu-i686.tar.gz
ÔÚËùÓÐÎļþ½âѹÍêºó£¬Ò»¸öÃû×Ö½Ðmysql-3.22.21-pc-linux-gnu-i686µÄĿ¼½«±»´´½¨³öÀ´¡£ÎÒÃÇΪÕâ¸öĿ¼×ö¸ö·ûºÅÁ´½Ó£¬²¢¸øËüÒ»¸ö¸üÓѺõÄÃû×Ömysql £¨ÃâµÃ½Ðmysql-3.22.21-pc-linux-gnu-i686Õâô³¤£©£º
# ln -s mysql-3.22.21-pc-linux-gnu-i686 mysql
Èç¹ûÒÔºóÓÐа汾µÄMySQLµÄ»°£¬Äã¿ÉÒÔ½ö½ö½«Ô´Âë½âѹµ½ÐµÄ·¾¶£¬È»ºóÖ»ÐèÒª×ö¸ö·ûºÅÁ´½Ó¾Í¿ÉÒÔÁË¡£ÕâÑù·Ç³£·½±ã£¬Êý¾ÝÒ²¸ü¼Ó°²È«¡£
¡¡
½¨Á¢Ò»¸öMySQL Óû§
ºÃ£¬ÏÖÔÚÎÒÃǽ«½¨Á¢Ò»¸öÄÜÔËÐÐMySQLÊØ»¤³ÌÐòµÄÓû§Õʺţ¬²¢ÇÒËùÓÐMySQLÎļþ¶¼¹é´ËÕÊ»§ÓµÓС£Ê¹Óà Linuxconf»òÕßuseraddÃüÁîÈ¥Ìí¼ÓÒ»¸ö½Ð mysql µÄÕʺţ¬ÔÚÌí¼Ó֮ǰ£¬È·±£Ã»ÓÐÈË×¢²áÁËÕâ¸öÕÊ»§£¬»¹ÒªÔÝʱ½ûÖ¹login¹¦ÄÜ£¨²»¹ýÒ»°ã¶¼ÊÇÔÚûÓÐÆäËûÈ˵ǽµÄÇé¿öϵ÷ÊÔ»úÆ÷£¬Òò´ËÕâ¸ö²½Öè¿ÉÃ⣩
¡¡
ΪMySQL×ö×¼±¸
Ê×ÏÈÈÃÎÒÃǽ«MySQLĿ¼ºÍÎļþµÄÓµÓÐȨ¸Ä³É mysql Óû§ºÍroot×飺
# cd /usr/local
# chown -R mysql:root mysql-3.22.21-pc-linux-gnu-i686 mysql
È»ºóÔËÐÐÒ»¸öС½Å±¾³ÌÐò£¬ÒÔ½¨Á¢³õʼ»¯µÄMySQLÊý¾Ý¿â¡£ÇëÒÔÒ»¸ömysql Óû§µÄÉí·ÝÍê³ÉÕâ¸öÈÎÎñ£¬ÕâÒ²ÊÇÎÒÃÇÄܹ»Ö±½ÓʹÓÃÕâ¸öÕÊ»§µÄΨһ»ú»á¡£
# su mysql
$ cd mysql
$ scripts/mysql_install_db
$ exit
Èç¹ûûÓÐÈκγö´íÐÅÏ¢ÏÔʾµÄ»°£¬ÄǾͿÉÒÔÁË¡£
¡¡
×Ô¶¯ÔËÐÐMySQL
ÔÚMySQL¶þ½øÖÆ°üÀïÃ棬ÓÐÒ»¸ö½Ðmyslq.serverµÄÆô¶¯½Å±¾³ÌÐò¡£°ÑËü¸´ÖƵ½/etc/rc.
Ïà¹ØÎĵµ£º
/*
* linux/fs/char_dev.c
*
* (C) 1991 Linus Torvalds
*/
#include <errno.h>
#include <sys/types.h> // ¶¨ÒåÁË»ù±¾µÄϵͳÊý¾ÝÀàÐÍ
#include <linux/sched.h>
#include <linux/kernel.h> // º¬ÓÐһЩÄں˳£Óú¯ÊýµÄÔÐζ¨Òå
#include < ......
ÔÚ/etc/rc.d/init.d/ ´´½¨oracle10gÎļþ
touch oracle10g
chmod a+x oracle10g
[root@test~]# vi /etc/rc.d/init.d/oracle10g
#!/bin/bash
#chkconfig:345 51 49
#description:starts the oracle database deamons
#
ORACLE_HOME=/oracle/product/10.2.0/db_1
ORACLE_OWNER=oracle
case "$1" in
start)
echo ......
/*
* ¸ÃÎļþÖеÄÁ½¸öº¯Êýread_pipeºÍwrite_pipeÊÇÉϲ㺯Êý
* readºÍwriteµÄµ×²ãʵÏÖ
*/
/*
* linux/fs/pipe.c
*
* (C) 1991 Linus Torvalds
*/
#include <signal.h>
#include <linux/sched.h>
// ÄÚ´æ¹ÜÀíÍ·Îļþ¡£º¬ÓÐÒ³Ãæ´óС¶¨Òåº ......
ÔÚlinuxÉÏ£¬jprofiler¿ÉÒÔ·ÖÎöjavaµÄÈí¼þϵͳ£¬oprofile¿ÉÒÔ·ÖÎöCµÄÈí¼þϵͳ¡£
oprofile¿ÉÒÔ˵ÊÇÒ»¸ö¹¤¾ß¼¯£¬°üº¬£º
ophelp£¬
opcontrol£¬
agent libraries£¬
opreport£¬
opannotate£¬
opgprof£¬
oparchive£¬
opimport¡£
³ ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
Ò»°ã˵À´£¬
Linux
ÉçÇø°æ×ÜÓеã¶ù´ÕºÏµÄÒâ˼£¬ÈËÃDz»¸ÒʹÓ㬵«ÊÇ£¬Ò²ÓÐÀýÍâµÄÇé¿ö¡£±ÈÈ磬¹ÚÃûΪ
Mint
µÄ
Linux
·¢Ðа档¾ßÌåÇé¿öÊÇÔõÑùµÄÄØ£¿
......