Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

linux PHP »·¾³´î½¨

Ò»¡¢µÇ½
1.½øÈëlinux
2.̞: root
3.¿ÚÁî:123456
4.mysql Óû§Ãû root ÃÜÂë 123456
¶þ¡¢Æô¶¯mysqlÓëapache·þÎñ
1.Æô¶¯mysqÊý¾Ý¿â:/usr/local/mysql/bin/./mysqld_safe --user=mysql &
2.Í£Ö¹mysqlÊý¾Ý¿â:/usr/local/mysql/bin/mysqladmin -u root -p shutdown
3.Æô¶¯apache: /usr/local/apache2/bin/./apachectl start
4.Í£Ö¹apache£º/usr/local/apache2/bin/./apachectl stop
5.ÖØÆôapache£º/usr/local/apache2/bin/./apachectl restart
Ò²¿ÉÒÔʹÓà £º/usr/local/apache2/bin/./apachectl (-k)¿É¼Ó start/stop/restart
Èý¡¢ÂÛ̳µÄ°²×°Ä¿Â¼
1.Ó¦Óð²×°Ä¿Â¼£º/usr/local/apache2/htdocs/
2.
ËÄ¡¢Êý¾Ý¿â»¹Ô­Ó뱸·Ý
½øÈëµ½mysql°²×°Ä¿Â¼µÄbin\
 Ö´ÐÐmysqldump -u root(Óû§Ãû) -p bbs(Êý¾Ý¿âÃû) --default-character-set=gbk (°´Ö¸¶¨×Ö·û¼¯µ¼³ö)  >d:/bbs.sql(µ¼³öλÖÃ)
--mysql Êý¾Ý¿â±¸·ÝÓ뻹ԭÀý
1.µ¼³ö£º
 /usr/local/mysql/bin/mysqldump -u root -p bbs --default-character-set=gbk >d:/bbs.sql
2.Êý¾Ý»¹Ô­
 ½øÈëmysql\bin\ Ö´ÐÐ mysql -u root -p bbs --default-character-set=gbk<d:\bbs.sql
µ¼È룺
 mysql -u root -p superclub --default-character-set=gsr/local/superclub20090625bak.sql
×¢ÒâÇмǣºµ¼È룬µ¼³ö±ØÐëʹÓÃͬһ×Ö·û¼¯¡£
Îå¡¢³£ÓÃÃüÁî
1.ÏÔʾÖÐÎÄÃüÁexport LANG=GBK
2.²é¿´ÎļþÄÚÈÝÃüÁî vi XXXÎļþ
3.viÖÐÍ˳ö дÈë Ç¿ÐÐÍ˳ö Ç¿ÐÐдÈë ²éѯ q, wq, q£¡, wq£¡, :²é¿´
4.½øÈëmysqlÃüÁ/usr/local/mysql/mysql -u root -p
5.¸ü¸ÄÎļþ¼Ð»òÎļþµÄ¶ÁдȨÏÞ£º chmod -R 777 bbs£»
6.ÏÔʾÎļþ·¾¶ÃüÁî £ºpwd£»
7.²é¿´½ø³Ì


Ïà¹ØÎĵµ£º

PHPʵÏÖÎļþµÄ¶ÁºÍд¹¦ÄÜ

½øÐÐÎļþµÄ¶ÁºÍд£¬ÏÈ´ò¿ªÒ»¸öÎļþ£¬È»ºó¿ªÊ¼¶Á»òÕßдÎļþ£¬×îºóÔÙ¹ØϵÕâ¸öÎļþ×ÊÔ´¡£
È磬ÎļþµÄ¶Á²Ù×÷£º
<?php
$file = fopen('your file path','r');
while(!feof($file)){ //µ±Ã»ÓжÁÈ¡µ½Îļþ½á⣬¼ÌÐøÑ­»·¶ÁÈ¡²Ù×÷
$line = fgets($file); //¶ÁÈ¡µ½Ò»ÐеÄÄÚÈÝ
echo $line.'<br/>';
}
fclose($file) ......

Socket±à³Ì£ºÓÉLinuxÏòWindowsÒÆÖ²ÎÊÌâ


ת×Ô£ºhttp://www.cic.tsinghua.edu.cn/jdx/book1/CHAPTER3.htm
 
ÔÚÔ´Îļþ¿ªÊ¼Ôö¼Ó#include <winsock.h>Óï¾ä¡£
µ÷ÓÃWSAStartup()º¯Êý³õʼ»¯Windows Sockets DLL£¬²¢ÔÚ½áÊøʱµ÷ÓÃWSACleanup()º¯Êý֪ͨWindows Sockets DLLÊÍ·Å×ÊÔ´¡£
½«Ì×½Ó×ÖµÄÀàÐÍΪint¸ÄΪSOCKET¡£
»ñÈ¡¡¢ÉèÖôíÎóÂ벻ҪʹÓÃÈ«¾Ö±äÁ¿er ......

linuxÏÂdnw(6410)

ÍøÉÏÓÐƪÌû×Ó°üº¬ÀïlinuxϵÄdnw£¬ÎÒÔÚÓÃidea6410£¬±àÒëdnwºÍsecbulkºó²¢²»ÄÜÕý³£Ê¹ÓÃ
LINUXϵÄDNW³ÌÐòÏÂÔØ
http://linux.chinaunix.net/bbs/viewthread.php?tid=1055992
secbulkÉ豸佨Á¢£¬ÊÖ¶¯½¨Á¢/dev/secbulk0²¢²»Æð×÷Óã¬Ô­ÒòÊÇsecbulk probe»áÆ¥Åäid_table£¬Õâ¸öÊÇΪQQ2440×¼±¸µÄ£¬ËùÒÔÐèÒª¸Äid_table
static s ......

LinuxÏ°Ñkernel¿Õ¼äÓ³Éäµ½Óû§½ø³Ì¿Õ¼ä(mmapʵÏÖ)

 ÔÚmmapº¯ÊýÀʹÓÃremap_pfn_range
º¯Êý¡£´úÂëÈçÏ¡£×¢ÒâÒªÉèÖÃÒ»ÏÂvma->vm_pgoffΪÄãÒªmapµÄio¿Õ¼äµÄÎïÀíµØÖ·¶ÔÓ¦µÄÒ³¡£
arm  IO/ ÄÚ´æͳһ±àÖ·  ËùÒÔ
#define io_remap_pfn_range(vma,from,pfn,size,prot) \
             &nb ......

Àí½âPHPÖеÄMVC±à³ÌÖ®MVC¿ò¼Ü¼ò½é

¡¾Ê²Ã´ÊÇMVC£¿¡¿
        MVCÊÇÒ»¸ö¿ÉÒÔÈÃÄã°Ñ“Èý¸ö²¿·Ö£¨¼´MVCµÄÈ«³Æ£¬Model¡¢ View¡¢Controller£©”гµ÷µØ×é³ÉÒ»¸ö¸´ÔÓÓ¦ÓóÌÐòµÄ¸ÅÄî¡£Ò»Á¾Æû³µ¾ÍÊÇÒ»¸öÔÚÏÖʵÉú»îÖзdz£ºÃµÄMVCÀý×Ó¡£ÎÒÃÇ¿´³µ¶¼¿´Á½¸öView£¨ÏÔ Ê¾£©²¿·Ö£ºÄÚ²¿ºÍÍⲿ¡£¶øÕâÁ½¸ö¶¼Àë²»¿ªÒ»¸öController£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ