LinuxÏÂsamba·þÎñÆ÷µÄ¼ÜÉè
×î½üÔÚѧϰlinux ½ñÌì°Ñ¼ÜÉèlinux samba·þÎñÆ÷µÄ·½·¨Ð´³öÀ´ »¶Ó´ó¼ÒÌÖÂÛºÍÖ¸µã
±¾»úÊÇÐéÄâ»úºÍwinxp½øÐвâÊÔ£¬ÐéÄâ»úµØÖ·ÊÇ192.168.1.144 Ö÷»úµØÖ·ÊÇ192.168.1.10.Á½ÕßÊÇ¿ÉÒÔ»¥Í¨µÄ¡£
Ê×ÏÈÎÒÃÇÏÈ×ölinuxϵÄÅäÖÃ
Ò». Ê×ÏÈҪȷ¶¨linuxÊÇ·ñ°²×°ÁËsmb
[root@localhost zy]#rpm -qa | grep samba
samba-2.2.5-10
samba-swat-2.2.5-10
samba-common-2.2.5-10
samba-client-2.2.5-10
ºÇºÇ ±¾»úÒѾ°²×°ÁËÎҾͲ»¶à˵ÁË£¬Ã»°²×°µÄÕÒ¹âÅÌ°²×°ÁË
¶þ¡¢È»ºóÎÒÃÇÅжÏһϣ¬ÊÇ·ñsamba·þÎñÒѾÆô¶¯£¬
[root@localhost zy]#ps -aux | grep smb
root 1719 0.0 0.3 4916 1820 ? S 08:21 0:00 smbd -D
root 1849 0.0 0.1 4776 628 pts/1 S 08:48 0:00 grep smb
Èç¹ûûÓÐÆô¶¯µÄ»° ÓÃ[root@localhost zy]#/etc/init.d start
¹Ø±ÕÊÇ [root@localhost zy]#service smb stop
ÖØÆôÊÇ [root@localhost zy]#service smb restart
ÕâÀïÖ»ÊDZ¾´ÎÆô¶¯£¬Èç¹ûÐèҪÿ´Î¿ª»ú¶¼Æô¶¯µÄ»°
ÓÃsetup »òÕß ntsysv
Èý.±¾»úÊÇûÓÐ×°linuxϵķÀ»ðǽµÄ Èç¹ûÒòΪ·À»ðǽµÄÔÒòÔì³É²»ÄÜ»¥Ïà·ÃÎÊ
[root@localhost zy]#/sbin/iptables -F
ËÄ£¬ÅäÖÃsmbµÄÖ÷ÒªÅäÖÃÎļþsmb.conf
[root@localhost zy]# cd /etc/samba
[root@localhost samba]# mv smb.conf smb.confbak
È»ºóÎÒÃÇÀ´ÖØд´½¨Ò»¸ösmb.confÎļþ
[root@localhost zy]touch smb.conf
È»ºóÎÒÃÇ°ÑÏÂÃæÕâ¶ÎдÈësmb.confÖÐ
[global]
workgroup = workgroup
netbios name = zy
server string = Linux Samba Server
security = user
vaild user = zhaoyong
[zy]
path = /home/zy
writeable = yes
browseable = yes
create mask = 0664
guest ok = yes
[global]Õâ¶ÎÊÇÈ«¾ÖÅäÖã¬ÊDZØдµÄ
workgroup ¾ÍÊÇWindowsÖÐÏÔʾµÄ¹¤×÷×飻ÔÚÕâÀïÎÒ»¹ÊÇworkgroup
netbios name ¾ÍÊÇÔÚWindowsÖÐÏÔʾ³öÀ´µÄ¼ÆËã»úÃûzy
server string ¾ÍÊÇSamba·þÎñÆ÷˵Ã÷£¬¿ÉÒÔ×Ô¼ºÀ´¶¨Ò壻Õâ¸ö¿ÉÒÔÊ¡ÂÔ
security ÕâÊÇÑéÖ¤ºÍµÇ¼·½Ê½£¬ÕâÀïÎÒÃÇÓÃÁËuesr £»ÑéÖ¤·½Ê½ÓкöàÖÖ£¬ÕâÊÇÆäÖÐÒ»ÖÖ£»Èç¹ûÓÃshareÄØ£¬¾ÍÊDz»ÓÃÉèÖÃÓû§ºÍÃÜÂëÁË£»
[zy] Õâ¸öÔÚWindowsÖÐÏÔʾ³öÀ´Êǹ²ÏíµÄĿ¼£»
path = ¿ÉÒÔÉèÖÃÒª¹²ÏíµÄĿ¼·ÅÔÚÄÄÀ
writeable ÊÇ·ñ¿Éд£¬ÕâÀïÎÒÉèÖÃΪ¿Éд£»
browseable ÊÇ·ñ¿ÉÒÔä¯ÀÀ£¬¿ÉÒÔ£»¿ÉÒÔä¯ÀÀÒâζ×Å£¬ÎÒÃÇÔÚ¹¤×÷×éÏÂÄÜ¿´µ½¹²ÏíÎļþ¼Ð¡£Èç¹ûÄú²»ÏëÏÔʾ³öÀ´£¬ÄǾÍÉèÖÃΪ browseable=no
create maskÊÇÓû§´´½¨ÎļþʱµÄȨÏÞ
Ïà¹ØÎĵµ£º
£¨1£©ÔÚ\drivers\input\Input.cÖС£
A£¬subsys_initcall(input_init);
B£¬static int __init input_init(void)ÖÐÍê³É¼¸¸öÖØÒªµÄ²Ù×÷£º
err = class_register(&input_class);ÒÔÊäÈëÀ෽ʽע²áÀà
input_proc_init(); //´´½¨procϵÄĿ¼ºÍ ......
Ò»¡¢POSIX Ïß³ÌÏê½â
1¡¢
Ò»ÖÖÖ§³ÖÄÚ´æ¹²ÏíµÄ¼ò½Ý¹¤¾ß
2¡¢³Æ×÷»¥³â¶ÔÏóµÄСÍæÒâ
3¡¢Ê¹ÓÃÌõ¼þ±äÁ¿Ìá¸ßЧÂÊ
¶þ¡¢PosixÏ̱߳à³ÌÖ¸ÄÏ
1¡¢
Ï̴߳´½¨ÓëÈ¡Ïû
2¡¢
Ïß³Ì˽ÓÐÊý¾Ý
3¡¢Ïß³Ìͬ²½
4¡¢Ïß³ÌÖÕÖ¹
5¡¢ÔÓÏî
......
ͨ¹ý×ÛºÏʹÓöàÖÖ±ê×¼ÎļþϵͳBenchmarks¶ÔExt3, Ext4, Reiserfs, XFS, JFS, Reiser4µÄÐÔÄܲâÊԶԱȣ¬¶Ô²»Í¬Ó¦ÓÃÑ¡ÔñºÏÊʵÄÎļþϵͳ¸ø³öÒÔÏ·½°¸£¬¹©´ó¼Ò²Î¿¼¡£ÎļþϵͳÐÔÄܲâÊÔÊý¾Ý¼û¸½±í¡£
1¡¢´óÁ¿Ð¡Îļþ£¨LOSF, Lost of small files£©I/OÓ¦ÓÃ(ÈçСͼƬ)
Reiserfs(Ê×Ñ¡), Ext4ÎļþϵͳÊʺÏÕâÀฺÔØÌØÕ÷£¬IOµ÷¶ÈË㷨ѡ ......
LinuxÏ»·¾³°²×°ÅäÖÃRose HAÈ«¹¥ÂÔ(ͼ)
Ò».°²×°Rose HA
ÈçºÎÔÚLinux»·¾³Ï°²×°Rose HA¡£±¾ÎļÙÉè»·¾³ÎªLinux²Ù×÷ϵͳ£¬²ÉÓÃ9.2°æ±¾µÄoracleÊý¾Ý¿â¡£ÏÂÃæÎÒÃÇ¿´¿´£¬ÔÚLinux Oracle»·¾³ÏÂÈçºÎ°²×°ºÍÅäÖÃRose HA¡£
Ê×ÏȽ«¹âÅ̷Žø¹âÇý
A £º ÔÚ¹¤×÷»úÉϽ«×ÊÔ´Ò»Ò»µãÖУ¬Ê¹×ÊÔ´´¦ÓÚ¸ßÁÁ× ......
/*±¾ÎÄÑ¡×Ô²©´´linuxʵÑéÖ¸µ¼Êé
*Áô×Å×Ô¼ºÑ§Ï°Ö®ÓÃ
*ÔÚÕâÀï±£´æ×Å£¬·ÖÏíÒ»ÏÂ*/
VI ¼ò½é
vi ÊÇ Linux/Unix ÊÀ½çÀKΪÆÕ±éµÄ¿ÉÊÓ»¯µÄÈ«ÆÁÄ»Îı¾±à¼Æ÷(visual edit),¼¸ºõ¿É
ÒÔ˵ÈκÎһ̨ Linux/Unix »úÆ÷¶¼»áÌṩÕâ¸öÈí¼þ¡£
vi ÓÐÈýÖÖ״̬,¼´±à¼·½Ê½¡¢²åÈ뷽ʽºÍÃüÁî·½Ê ......