³£ÓõÄlinuxÃüÁî
²é¿´°²×°µÄϵͳÐÅÏ¢£º
¼òµ¥µÄÐÅÏ¢£ºuname -a
ÏêϸµÄÐÅÏ¢£ºcat /proc/version
cat /etc/issue
lsb_release -a
GentooÉÏ°²×°mysql£¬Ö±½ÓÔËÐУº
(1) bigner
@localhost
/ $ sudo emerge mysql
(2) bigner
@localhost
/ $ sudo ebuild /var/db/pkg/dev-db/mysql-
5.0
.
44
/mysql-
5.0
.
44
.ebuild config
(3)
bigner
@localhost
/etc/init.d $ sudo /etc/init.d/mysql start
(4)
bigner
@localhost
/ $ mysql -u root -p
(ÊäÈëÃÜÂëºó¾Í¿ÉÒԵǼµ½mysqlÁË£¬ÏÂÃæÊÇmysqlÖеÄÃüÁî)
show databases;
(5) ÈÃmysql×Ô¶¯runÆðÀ´£º
bigner
@localhost
/ $ sudo rc-update add mysql
default
²é¿´ÃüÁîµÄÔʼ·¾¶ÊÇʲô£º
whereis mysql
which mysql
Ïà¹ØÎĵµ£º
ÔÌù£ºhttp://2bits.com/articles/installing-php-apc-gnulinux-centos-5.html
Published Mon, 2008/03/24 - 13:49, Updated Wed, 2009/07/15 - 23:40
Complex PHP applications, such as Drupal, can gain a lot of performance benefits from running a PHP op-code cache/accelerators
.
APC,
Alternate ......
MYSQL°²×°
//½âѹ±àÒë°²×°
# tar xzvf mysql-5.0.27.tar.gz
# cd mysql-5.0.27
# ./configure -prefix=/home/redadmin/mysql
# make
# make install
# cd /home/redadmin/mysql/
# cp share/mysql/my-medium.cnf ./
# mv my-medium.cnf my.cnf
// my.confÎļþÐÞ¸Ä
# vi my.cnf
ÐÞ¸ÄÇ°£º
port &nb ......
<!--
@page { margin: 2cm }
P { margin-bottom: 0.21cm }
-->
ʲôÊÇ
GNU/Linux
£¿Ê²Ã´ÊÇÕæÕýµÄ×ÀÃæ
Linux
£¿ÕâЩÎÊÌ⣬ÎÒÃDZØÐë¸ãÇå³þ£¬ËµÃ÷°×¡£×ÀÃæ
Linux
²»ÄÜÔÙÕÐÒ¡¹ýÊкöÓÆÈËÁË¡£
Àú ......
ʹÓÃ/dev/null
°Ñ/dev/null¿´×÷"ºÚ¶´". Ëü·Ç³£µÈ¼ÛÓÚÒ»¸öֻдÎļþ. ËùÓÐдÈëËüµÄÄÚÈݶ¼»áÓÀÔ¶¶ªÊ§. ¶ø³¢ÊÔ´ÓËüÄǶù¶ÁÈ¡ÄÚÈÝÔòʲôҲ¶Á²»µ½. È»¶ø, /dev/null¶ÔÃüÁîÐкͽű¾¶¼·Ç³£µÄÓÐÓÃ. ½ûÖ¹±ê×¼Êä³ö.
1 cat $filename >/dev/null
2 # ÎļþÄÚÈݶªÊ§£¬¶ø²»»áÊä³öµ½±ê×¼Êä³ö.
½ûÖ¹±ê×¼´íÎó
1 rm $badname 2>/dev/ ......
Ð޸ı¾µØÓû§ÃÜÂ룺
1¡¢½»»¥ÅäÖñ¾µØÓû§£º
ÒÔrootÓû§£º
passwd <username>
Changing passWord
for user dewang.
New UNIX passWord
:
BAD PASSWord
: it is too short
Retype new UNIX password:
passwd: all authentication tokens updated successfully.
ÒÔ·ÇrootÓû§ÐÞ¸Ä×Ô¼ºµÄÃÜÂ루עºóÃæ²»Äܸ ......