Ubuntu LinuxϵͳÏÂÐÞ¸ÄÎĵµ¼°Îļþ¼ÐȨÏ޵ķ½·¨
UbuntuµÄÐí¶à²Ù×÷ÊÇÔÚÖÕ¶ËÖнøÐеģ¬Í¨¹ýsudoÃüÁîÖÎÀíµÄÎļþÊÇÓÉroot
³ÖÓÐȨÏÞ£¨Ä¬ÈÏÓû§Ã»ÓÐȨÏÞÔËÐкÍÐ޸ģ©µÄ£¬Ò»°ãÓû§ÊÇÎÞ·¨¸Ä±äµÄ¡£ÔÚͼÐνçÃæÉÏ£¬ÎÒÃÇ¿ÉÒÔͨ¹ýÊôÐÔÖеÄȨÏÞÑ¡Ïî¼Ð½øÐвÙ×÷¡£µ«ÊÇÒ»µ©ÎļþµÄÊôÐÔÏÔʾµ±Ç°
Óû§Ã»ÓжÁдȨÁ¦Ê±£¬ÎÞ·¨ÔÚͼÐνçÃæÉÏÐÞ¸ÄȨÏÞ¡£
³£Ó÷½·¨ÈçÏ£º
£¨Æô¶¯Ò»¸öshell£¬¼üÈëÃüÁîÈçÏ£©
sudo chmod 600 ××× £¨Ö»ÓÐËùÓÐÕßÓжÁºÍдµÄȨÏÞ£©
sudo chmod 644 ××× £¨ËùÓÐÕßÓжÁºÍдµÄȨÏÞ£¬×éÓû§Ö»ÓжÁµÄȨÏÞ£©
sudo chmod 666 ××× £¨Ã¿¸öÈ˶¼ÓжÁºÍдµÄȨÏÞ£©
sudo chmod 700 ××× £¨Ö»ÓÐËùÓÐÕßÓжÁºÍдÒÔ¼°Ö´ÐеÄȨÏÞ£©
sudo chmod 777 ××× £¨Ã¿¸öÈ˶¼ÓжÁºÍдÒÔ¼°Ö´ÐеÄȨÏÞ£©ÆäÖÐ×××Ö¸ÎļþÃû£¨Ò²¿ÉÒÔÊÇÎļþ¼ÐÃû£¬²»¹ýÒªÔÚchmodºó¼Ó-ld£©¡£
½âÊÍһϣ¬ÆäʵÕû¸öÃüÁîµÄÐÎʽÊÇ
sudo chmod -£¨´ú±íÀàÐÍ£©×××£¨ËùÓÐÕߣ©×××£¨×éÓû§£©×××£¨ÆäËûÓû§£©
ÈýλÊýµÄÿһλ¶¼±íʾһ¸öÓû§ÀàÐ͵ÄȨÏÞÉèÖá£È¡ÖµÊÇ0¡«7£¬¼´¶þ½øÖƵÄ[000]~ [111]¡£
Õâ¸öÈýλµÄ¶þ½øÖÆÊýµÄÿһλ·Ö±ð±íʾ¶Á¡¢Ð´¡¢Ö´ÐÐȨÏÞ¡£
Èç000±íʾÈýÏîȨÏÞ¾ùÎÞ£¬¶ø100±íʾֻ¶Á¡£ÕâÑù£¬ÎÒÃǾÍÓÐÁËÏÂÃæµÄ¶ÔÓ¦£º
0 [000] ÎÞÈκÎȨÏÞ
4 [100] Ö»¶ÁȨÏÞ
6 [110] ¶ÁдȨÏÞ
7 [111] ¶ÁдִÐÐȨÏÞ
ÏÖÔÚ¿´ÉÏÃæµÄ¼¸¸ö³£ÓÃÓ÷¨¾Í·Ç³£Çå³þÁË¡£ÊÔ×Å×Ô¼ºÀ´ÐÞ¸ÄȨÏÞ°É
×îºóͬʱ¸½ÉϲéѯÎļþ£¨»òÎļþ¼Ð£©È¨ÏÞµÄÃüÁî
ls -l ÎļþÃû³Æ £¨Îļþ¼Ð½«-l¸ÄΪ-ld£©¡£
¸½£ºÐÞ¸ÄÎļþ¼ÐµÄÊôÐÔ£¬ÔÚÉÏÊöÃüÁîºóÌí¼Ó£R²ÎÊý
ÀýÈç sudo chmod -R 777 /home/usr £¬Íê³É½«/home/usrȨÏÞÐÞ¸ÄΪÈκÎÈ˶¼¿ÉÒÔ¶ÁдÔËÐУ¨111£©
Ïà¹ØÎĵµ£º
2009 Äê 4 ÔÂ 23 ÈÕ
±¾ÎÄÖÐÎÒÃÇÕë¶Ô Linux É϶àÏ̱߳à³ÌµÄÖ÷ÒªÌØÐÔ×ܽá³ö 5 Ìõ¾Ñ飬ÓÃÒÔ¸ÄÉÆ Linux ¶àÏ̱߳à³ÌµÄÏ°¹ßºÍ±ÜÃâÆäÖеĿª·¢ÏÝÚå¡£ÔÚ±¾ÎÄÖУ¬ÎÒÃÇ´©²åһЩ Windows µÄ±à³ÌÓÃÀýÓÃÒÔ¶Ô±È Linux ÌØÐÔ£¬ÒÔ¼ÓÉî¶ÁÕßÓ¡Ïó¡£
±³¾°
Linux ƽ̨ÉϵĶàÏ̳߳ÌÐò¿ª·¢Ïà¶ÔÓ¦ÆäËûƽ̨£¨±ÈÈç Windows£©µÄ¶àÏß³Ì API ÓÐһЩϸ΢ ......
ÓÉÓÚ Linux Á¼ºÃµÄÓû§È¨ÏÞ¹ÜÀíÌåϵ£¬²¡¶¾ÍùÍùÊÇ Linux ϵͳ¹ÜÀíÔ±×îºó²ÅÐèÒª¿¼ÂǵÄÎÊÌâ¡£ÒÔÍù£¬Linux ÉϵÄɱ¶¾Èí¼þÖ÷ÒªÊÇΪÆóÒµµÄÓʼþºÍÎļþ·þÎñÆ÷ËùÉè¼ÆµÄ¡£Èç½ñ£¬Ëæ×Å Linux ×ÀÃæÓû§ÊýÁ¿µÄÔö³¤£¬×ÀÃæÓû§ÔÚÊÜÒæÓÚ Linux ϵͳ¶Ô²¡¶¾½ÏÇ¿µÄÌìÈ»ÃâÒßÁ¦µÄͬʱ£¬Ò²ÐèҪɱ¶¾Èí¼þÇåÀí´ÓÍøÂç»òUÅÌ´øÀ´µÄWIndows²¡¶¾¡£¾¡¹ÜÄÇЩ ......
linux ¿ª»úÆô¶¯½Å±¾Ë³Ðò¡£
µÚÒ»²½£ºÆô¶¯ÄÚºË
µÚ¶þ²½£ºÖ´ÐÐinit £¨ÅäÖÃÎļþ/etc/inittab£©
µÚÈý²½£ºÆô¶¯ÏàÓ¦µÄ½Å±¾£¬²¢ÇÒ´ò¿ªÖÕ¶Ë/etc/init.d
rc.sysinit rc.d(ÀïÃæµÄ½Å±¾£© rc.local
µÚËIJ½£ºÆô¶¯loginµÇ¼½çÃæ login
µÚÎå²½:ÔÚÓû§µÇ¼µÄʱºòÖ´ÐÐsh½Å±¾µÄ˳Ðò£ºÃ¿´ÎµÇ¼µÄʱºò¶ ......
½ÓÏÂÀ´£¬ÎÒÃǽøÈësysfs²¿·Ö¡£¿´¿´
kobject_add()->create_dir()->sysfs_create_dir()
bus create file->sysfs create file()
. . .
ÕâЩsysfsº¯ÊýµÄÄÚÄ»¡£
˵°×ÁË£¬sysfs¾ÍÊÇÀûÓÃVFSµÄ½Ó¿ÚÈ¥¶ÁдkobjectµÄ²ã´Î½á¹¹£¬½¨Á¢ÆðÀ´µÄÎļþϵͳ¡£¹ØÓÚsysfsµÄÄÚÈݾÍÔÚfs/sysfs/Ï¡£&nbs ......
±¾½ÚºÍ´ó¼ÒÒ»ÆðѧϰһÏÂÔÚlinuxÏÂʹÓÃapache+svn+sslÅäÖð²È«°æ±¾¿ØÖÆƽ̨ÎÊÌ⣬¿´Íê±¾ÎÄÄã¿Ï¶¨Óв»ÉÙÊÕ»ñ£¬Ï£Íû±¾ÎÄÄ̻ܽáÄã¸ü¶à¶«Î÷¡£Ê×ÏȽéÉÜÒ»ÏÂlinuxÏÂapache+svn+sslÅäÖõĻ·¾³¡£
»·¾³£º
centos5.4_x64
apache2.2.14
subversion-1.4.2(µ£ÐÄ°ü¹ØÁªÐÔÎÊÌ⣬¾ÍûÓп¼ÂÇ×îа汾£©
°²×°¹ý³Ì£º
1£¬apache°²×°
#./co ......