|
|
µÚÒ»ÖÖ·½·¨:
yumÔ´À´×Ôchinalinuxpub.com,ÓõÄÊÇcentos°ü,
ÏÂÔØµØÖ·: http://www.chinalinuxpub.com/yum.tgz
°²×°:
tar zxvf yum.tgz
cd yum
rpm -ivh *.rpm
rm -rf /etc/yum.repos.d/CentOS-Base.repo
vi /etc/yum.repos.d/as4-update.repo
¼ÓÈ룺
#released updates
[update]
name=Red Hat Enterprise AS release 4 Updates
baseurl=http://ftp.chinalinuxpub.com/redhat/enterprise/updates/4AS/
gpgcheck=1
gpgkey=http://ftp.chinalinuxpub.com/redhat/enterp...
|
|
| |
|
±±¾©DNSµØÖ·£ºns.bta.net.cn 202.96.0.133
ns.spt.net.cn 202.96.199.133
ns.cn.net 202.97.16.195
202.106.0.20
202.106.148.1
202.106.196.115
¹ã¶«DNSµØÖ·£ºns.guangzhou.gd.cn 202.96.128.143
dns.guangzhou.gd.cn 202.96.128.68
ÉîÛÚDNSµØÖ·£ºns.shenzhen.gd.cn 202.96.134.1...
|
|
| |
|
1.»ù±¾ÅäÖÃ
¡¡¡¡°²×°Íê³Éºó£¬½ÓÏÂÀ´Òª¶ÔSquidµÄÔËÐнøÐÐÅäÖá£ËùÓÐÏîÄ¿¶¼ÔÚsquid.confÖÐÍê³É¡£Squid×Ô´øµÄsquid.conf°üÀ¨·Ç³£Ï꾡µÄ˵Ã÷£¬Ï൱ÓÚһƪÓû§Êֲᣬ¶ÔÅäÖÃÓÐÈκÎÒÉÎʶ¼¿ÉÒÔ²ÎÕÕ½â¾ö¡£
¡¡¡¡ÔÚÕâ¸öÀý×ÓÖУ¬´úÀí·þÎñÆ÷ͬʱҲÊÇÍø¹Ø£¬ÄÚ²¿ÍøÂç½Ó¿Úeth0µÄIPµØÖ·Îª192.168.0.1£¬Íâ²¿ÍøÂç½Ó¿Úeth1µÄIPµØÖ·Îª202.103.x.x¡£ÏÂÃæÊÇÒ»¸ö»ù±¾µÄ´úÀíËùÐèÒªÅäÖÃÑ¡Ï
¡¡¡¡http_port 192.168.0.1:3128
¡¡¡¡Ä¬È϶˿ÚÊÇ3128£¬µ±È»Ò²¿ÉÒÔÊÇÈÎºÎÆäËü¶Ë¿Ú£¬Ö»Òª²»ÓëÆäËü·þÎ...
|
|
| |
|
¹Ø±ÕÊý¾Ý¿â
/data01/mysql/bin/mysqladmin -p shutdown
µ¼³öÊý¾Ý¿â
/usr/local/mysql/bin/mysqldump -opt -uroot -p -h10.15.0.45 bbsdb > 20070918.bbsdb.sql
µ¼ÈëÊý¾Ý¿â
/usr/local/mysql/bin/mysql target_db_name < backup-file.sql
ÏÞÖÆÖ»ÓÐÄÚ²¿ip¿ÉÒÔÁ´½Ó
/usr/local/mysql/bin/mysqld_safe --bind-address=10.15.0.72 &
Êý¾Ý¿â°²×°
./configure --prefix=/usr/local/mysql --with-charset=gbk --with-collation=gbk_chinese_ci
Êý¾Ý¿âÐÞ±í
/usr/local/my...
|
|
| |
|
ÏÖÏó£º
mysql> use yourealcn
Database changed
mysql> select user,company from biz_user where commend='1' order by regtime desc,checked desc limit 0,5;
ERROR 145 (HY000): Table './yourealcn/biz_user' is marked as crashed and should be repaired
mysql> exit
ʹÓÃÃüÁîmyisamchkÐÞ¸´Êý¾Ý¿âµÄMYIÎļþ¼´¿É
# /usr/local/mysql5/bin/myisamchk -c -r /bak/lib/mysql/yourealcn/biz_user.*
myisamchk: error: '/bak/lib/mysql/yourealcn/biz_user.frm' i...
|
|
| |
|
Mysql·þÎñÆ÷ÈçºÎµÃµ½×î¼ÑÐÔÄÜÓÅ»¯
My favorite question during Interview for people to work as MySQL DBAs or be involved with MySQL Performance in some way is to ask them what should be tuned in MySQL Server straight after installation, assuming it was installed with default settings.
ÔÚÃæÊÔMySQL DBA»òÕßÄÇЩ´òËã×öMySQLÐÔÄÜÓÅ»¯µÄÈËʱ£¬ÎÒ×îϲ»¶ÎÊÌâÊÇ£ºMySQL·þÎñÆ÷°´ÕÕĬÈÏÉèÖð²×°ÍêÖ®ºó£¬Ó¦¸Ã×öÄÄЩ·½ÃæµÄµ÷½ÚÄØ£¿
I¡¯m surprised how many people ...
|
|
| |
|
|
| µÚ3Ò³ ¹²108Ò³ ÉÏ¡¡Ò³ Ï¡¡Ò³ Êס¡Ò³ Ä©¡¡Ò³ |
|