linux Æô¶¯ sendmail ºÍ sm client ÂýµÄ½â¾ö°ì·¨
×ªÔØ×Ô£ºhttp://howieshen.blogbus.com/logs/33958295.html
Æô¶¯·þÎñÆ÷ʱ·¢ÏÖÍ£ÔÚ starting sendmail ºÍ starting
sm-client£¬µÈÁ˺þòſÉÒÔ½øÈ¥£¬¿ªÊ¼ÒÔΪÊÇÖ÷»úÉèÖõÄÎÊÌ⣬²é¿´ÁËһϷ¢ÏÖÎÒÉèÖôíÎó
·þÎñÆ÷£º
/etc/hosts:
192.168.1.119 server
192.168.1.123 howie
/etc/sysconfig/netwrok:
HOSTNAME=server
¿Í»§»ú£º
/etc/hosts:
192.168.1.119 server
192.168.1.123 howie
/etc/sysconfig/netwrok:
HOSTNAME=client
×ÅÊÖÐ޸Ŀͻ§»úµÄHOSTNAME£¬½á¹ûÆô¶¯ºó·¢ÏÖ»¹ÊÇÍ£ÁôÔÚÄÇÀï£¬Ææ
¹Ö¡£ping Ò²pingµÃͨ°¡£¬Ò»Ïë²»¶Ô°¡£¬Ôõô·þÎñÆ÷Æô¶¯ÓÐÎÊÌâÐèÒª¸Ä¿Í»§»úÄØ£¬Ó¦¸Ã²»ÊÇÕâ¸öÎÊÌâ¡£
Ö®ºóÔÙ²éÁËÏÂ×ÊÁÏ£¬·¢ÏÖÊÇ sendmail ÊÇ MTA£¬ËùÒÔËûÈϵͼÊÇÍøÂçÖ÷»úÃû£¬Ïñ howieshen.blogbus.com
£¬google.com Ö®À࣬
ËùÒÔÎÒÔÚÉÏÃæµÄ HOSTNAME µÄÉèÖñØÐëÐÞ¸Äһϣ¬¸Ä³ÉÈçÏ£º
/etc/hosts:
192.168.1.119 server.localdomain
server
192.168.1.123 client.localdomain client
/etc/sysconfig/netwrok:
HOSTNAME=server.localdomain
P.S. /etc/hosts ÎļþµÄµÚÒ»À¸ÊÇÍøÂçµØÖ·£¬µÚ¶þÀ¸ÊÇÖ÷»úÃû£¬µÚÈýÀ¸ÊÇÖ÷»ú±ðÃû
È»ºóÔÙ´ÎÆô¶¯£¬·¢Ïֺܿì¾Í½øÈëÁË£¬¸ã¶¨£¡
Ïà¹ØÎĵµ£º
×î½ü¿´ÁËһЩLinuxÃüÁîÐеÄÎÄÕ£¬ÔÚϵͳÐÅÏ¢²é¿´·½ÃæÑ§µ½²»ÉÙÃüÁî¡£ÏëÆðÒÔǰд¹ýµÄһƪÆäʵLinuxÕâÑùÓøü¼òµ¥£¬·¢ÏÖÕâЩϵͳÐÅÏ¢²é¿´ÃüÁîÒ²¿ÉÒÔ×ܽá³öһƪССµÄ¶«Î÷À´ÁË¡£
ÁíÍâÕâÀﻹÓзdz£¶àµÄÃüÁ¿ÉÒÔ×÷Ϊ²Î¿¼¡£
ϵͳ
# uname -a &n ......
ÔÚubuntuÏ»ù±¾ÉÏÖ»Òªapt-get ¾Í¿ÉÒÔÁË£¬µ«ÊÇÓÐʱºòÒª³¢Ïʾ͵ÃÈ¥ÁíÍâÏÂÁË£¬Õâʱ¾ÍÒªÁ˽âһЩlinuxϰ²Èí¼þµÄ֪ʶÁË£¬ËùÒÔÔÚÍøÉÏÕÒÁËÕâÆªÎÄÕ£®Õª×Ô£ºCnXHacker.Net
¡¡¡¡ÔÚWindowsϰ²×°Èí¼þʱ£¬Ö»ÐèÓÃÊó±êË«»÷Èí¼þµÄ°²×°³ÌÐò£¬»òÕßÓÃZipµÈ½âѹËõÈí¼þ½âѹËõ¼´¿É°²×°¡£ÔÚLinuxϰ²×°Èí¼þ¶Ô³õѧÕßÀ´Ëµ£¬ÄѶȸßÓÚWindowsÏÂÈí¼ ......
++ʵÏÖRedHat·ÇÕý³£¹Ø»úµÄ×Ô¶¯´ÅÅÌÐÞ¸´
ÏȵǼµ½·þÎñÆ÷£¬È»ºóÔÚ/etc/sysconfigÀïÔö¼ÓÒ»¸öÎļþautofsck,ÄÚÈÝÈçÏ£º
AUTOFSCK_DEF_CHECK=yes
PROMPT=yes
++¸Ä±äÎļþ»òĿ¼֮×îºóÐÞ¸Äʱ¼ä(±äΪµ±Ç°Ê±¼ä)
Ö´Ðиñʽ£ºtouch name ( name ¿ÉΪÎļþ»òĿ¼Ãû³Æ¡£)
++ÈçºÎÉèÖÃloginºó»¶ÓÐÅÏ¢
ÐÞ¸Ä/etc/motd£¬ÍùÀïÃæÐ´ÈëÎı¾ ......
Èç¹ûϵͳ¹ÜÀíԱϣÍûÌí¼ÓÒ»¸öÓû§ÒÔºó£¬ÈøÃÓû§µÚÒ»´ÎµÇ¼ÒÔºó×Ô¼ºÉèÖÃ×Ô¼ºµÄÃÜÂ룬ÄÇô¾ÍҪʹµÃÓû§µÄ³õʼÃÜÂë»òÕß¿ÕÃÜÂëÁ¢¿Ì¹ýÆÚ£¬Ç¿ÖÆÓû§µÚÒ»´ÎµÇ¼ºóÁ¢¿ÌÐÞ¸ÄÃÜÂë¡£
ΪÁËÇ¿ÖÆÓû§µÚÒ»´ÎµÇ¼ʱÉèÖÃÒ»¸öÐÂÃÜÂ룬Çë°´ÕÕÏÂÃæµÄָʾÀ´×ö£¬µ«ÊÇÐèÒªµÄ×¢ÒâµÄʱºòÈç¹ûÓû§ÊÇͨ¹ýSSHÔ¶³ÌµÇ¼½øÈ¥µÄ£¬ÄÇô¸Ã·½·¨ÊDz»ÄÜÉúЧµÄ ......
Ê×ÏÈ,ÎÒÏëÒýÓÃһϱðÈË˵¹ýµÄÒ»¾ä»°:³ý·ÇÔÚ¹ýÈ¥µÄÊ®ÄêÄãÒ»Ö±Éú»îÔÚɽ¶´Àï,·ñÔòÄãÒ»¶¨Ìý˵¹ýlinux.
ÊǵÄ,ÏÖÔÚÌý˵¹ýlinux,
»áÒ»µãlinux»ù±¾²Ù×÷µÄÈ˶àÈçţë,È»¶øÕæÕýÄÜÓÃlinux×öÒ»µãÊÂÇéµÄÈ·ÉÙÖ®ÓÖÉÙ,Õâ¾ÍÔì³ÉÁËÏÖÔÚµÄ×´¿ö:¸÷´ó
linuxÂÛ̳ʮ·ÖÈÈÄÖ,µ«ÎÒ¹úlinuxÈ˲ÄÈ´»¹Ê®·Ö½ôȱ.µ½µ×ÊÇʲôÔÒòÔì³ÉÁËÕâÑùµÄ×´¿ö? ¾ÀÆäÔ ......