Red Hat enterprise linux 5 mysql°²×°²½Öè
Ò»¡¢°²×°·þÎñÆ÷¶Ë
£¨1£©¡¢ÔÚÓÐÁ½¸örmpÎļþµÄĿ¼ÏÂÔËÐÐÈçÏÂÃüÁ
[root@test1 local]# rpm -ivh MySQL-server-5.0.26-0.i386.rpm
ÏÔʾÈçÏÂÐÅÏ¢£º
warning: MySQL-server-5.0.26-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing……¡¡¡¡¡¡¡¡¡¡¡¡¡¡########################################### [100%]
1:MySQL-server¡¡¡¡¡¡¡¡¡¡########################################### [100%]
¡¡¡¡……£¨Ê¡ÂÔÏÔʾ£©
/usr/bin/mysqladmin -u root password 'new-password'
/usr/bin/mysqladmin -u root -h test1 password 'new-password'
Starting mysqld daemon with databases from /var/lib/mysql
¡¡Èç³öÏÖÈçÉÏÐÅÏ¢£¬·þÎñ¶Ë°²×°Íê±Ï¡£
£¨2£©¡¢²âÊÔ·þÎñ¶Ë°²×°ÊÇ·ñ³É¹¦£¬¿ÉÔËÐÐnetstat¿´Mysql¶Ë¿ÚÊÇ·ñ´ò¿ª£¬Èç´ò¿ª±íʾ·þÎñÒѾÆô¶¯£¬°²×°³É¹¦¡£MysqlĬÈϵĶ˿ÚÊÇ3306¡£
[root@test1 local]# netstat -nat
ÏÔʾÈçÏÂÐÅÏ¢£º
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address¡¡¡¡¡¡¡¡¡¡ Foreign Address¡¡¡¡¡¡¡¡ State
tcp¡¡¡¡0¡¡¡¡0 0.0.0.0:3306¡¡¡¡¡¡¡¡ 0.0.0.0:*¡¡¡¡¡¡¡¡¡¡ LISTEN
ÉÏÃæÏÔʾ¿ÉÒÔ¿´³öMySQL·þÎñÒѾÆô¶¯¡£
¶þ¡¢°²×°¿Í»§¶Ë
ÔËÐÐÈçÏÂÃüÁ
[root@test1 local]# rpm -ivh MySQL-client-5.0.26-0.i386.rpm
warning: MySQL-client-5.0.26-0.i386.rpm: V3 DSA signature: NOKEY, key ID 5072e1f5
Preparing……¡¡¡¡¡¡¡¡########################################### [100%]
1:MySQL-client¡¡ ########################################### [100%]
ÏÔʾ°²×°Íê±Ï¡£
Èý¡¢µÇ¼MySQL
£¨1£©¡¢MySQLĬÈÏÓû§ÊÇroot£¬ÓÉÓÚ³õʼûÓÐÃÜÂ룬µÚÒ»´Î½øÊ±Ö»Ðè¼üÈëmysql¼´¿É¡£
[root@test1 local]# mysql
³öÏÖÁË“mysql>”Ìáʾ·û£¬¹§Ï²Ä㣬°²×°³É¹¦£¡
£¨2£©¡¢Ôö¼ÓÁËÃÜÂëºóµÄµÇ¼¸ñʽÈçÏ£º
mysql -u root -p
Enter password: (ÊäÈëÃÜÂë)
ËÄ¡¢Ð޸ĵǼÃÜÂë
/usr/bin/mysqladmin -u root password 'new-password'
Îå¡¢Æô¶¯ÓëÍ£Ö¹
£¨1£©¡¢Æô¶¯
[root@test1 init.d]# /etc/init.d/mysql start
£¨2£©¡¢Í£Ö¹
/usr/bin/mysqladmin -u root -p shutdown
£¨3£©¡¢×Ô¶¯Æô¶¯
/sbin/chkconfig mysql on
Áù¡¢¿ªÆôÔ¶³ÌÁ¬½Ó
GRANT ALL PRIVILEGES ON *.* TO 'myuser'@'%' IDENTIFIED BY 'mypassword' WITH GRANT OPTION;
mysq
Ïà¹ØÎĵµ£º
»¶Ó»Øµ½KernelÖÐ……
¼ÌÐøËµ__vet_atagsº¯Êý£¬Õâ¸öº¯ÊýÈԾɶ¨ÒåÔÚarch\arm\kernel\head-common.sÎļþÖУº
/* Determine validity of the r2 atags pointer. The heuristic requires
* that the pointer be aligned, in the first 16k of physical RAM and
* that the ATAG_CORE marker ......
¼Ç¼ÔÚlinuxÏ¿ª·¢Óöµ½µÄ¸÷ÖÖÎÊÌ⣬·½±ãÒÔºó²éÕÒ¡£
1.¹ØÓÚshellÖнű¾µÄÖ´Ðз½Ê½£ºÔÚµ±Ç°½Å±¾Ö´Ðл¹ÊÇÆô¶¯Ò»¸öеÄshell½ø³ÌÀ´Ö´Ðнű¾¡£
¼ÙÉ赱ǰĿ¼ÏÂÓнű¾script.sh¡£
Æô¶¯Ò»¸öеÄshell½ø³ÌÀ´Ö´ÐУº
ÕâÊÇshellÖÐĬÈϵÄÖ´Ðз½Ê½ÊÇÆô¶¯Ò»¸öеÄshell½ø³Ì£¨×Ó½ø³Ì£©À´Ö´Ðнű¾£¬¼´sh script.sh»òÕ߸³Ó ......
1.µãºÅ½ø¶ÈÏÔʾcode 1
#!/bin/sh
#Êä³ö"."½ø¶ÈÌõº¯Êý£¬¼æÈÝbsh¡¢ksh¡¢bash
#Ê×ÏÈtrap 1 2 3 15Ðźţ¬ÖØÒª
trap 'kill $BG_PID;echo;exit' 1 2 3 15
function dots
{
stty -echo >/dev/null 2>&1
  ......
¸Ð¾õ¶ÔÕâ¸öÓÐЩÔΣ¬×öÁ˸öʵÑ飬ŪÇå³þÁË¡£
ʵÑé˼·£¬ÓÃͬһ·Ý´úÂë±àÒëͬʱÉú³É¶¯Ì¬ºÍ¾²Ì¬¿â£¬Í¨¹ý²âÊÔ³ÌÐòµ÷Ó㬿´µ÷ÓõÄÊǶ¯Ì¬¿â»¹ÊǾ²Ì¬¿â¡£
Éú³É¾²Ì¬¿â´úÂ룺
/***********hellod.h*************/
#ifndef _HELLO_S_H
#define _HELLO_S_H
void prints(char *str);
#endif
/*hellod.c*/
#include "hellod ......
http://en.wikipedia.org/wiki/Loop_device
In Unix-like operating systems, a loop device, vnd (vnode disk), or lofi (loopback file interface) is a pseudo-device that makes a file accessible as a block device.
Ëùνloop deviceÖ¸µÄ¾ÍÊÇÄÃÎļþÀ´Ä£Äâ¿éÉ豸¡£
Albert WoodhullÓ"The Linux loop device can ......