×ðÁú¿­Ê±¹ÙÍøµÇ¼

ÔõÑùÉèÖÃCentOSϵͳÒÔ±ÜÃâÉç½»¹¤³Ì¹¥»÷µÄÈëÇÖ

ÔõÑùÉèÖà centos ϵͳÒÔ±ÜÃâÉç½»¹¤³Ì¹¥»÷µÄÈëÇÖ

ÔÚµ±½ñÊý×Ö»¯Ê±´ú£¬Éç½»¹¤³Ì¹¥»÷ÊÇÒ»ÖÖ³£¼ûµÄÈëÇÖÊֶΣ¬ºÚ¿Íͨ¹ýαװ³ÉÐÅÍеÄʵÌåÓÕʹÈËÃÇ×ß©Ãô¸ÐÐÅÏ¢£¬´Ó¶ø»ñÈ¡²»·¨ÀûÒ档ΪÁ˱£»¤Ð¡ÎÒ˽ÈËÒþ˽ºÍÍøÂçÇå¾²£¬ÎÒÃÇÐèÒªÔÚ CentOS ϵͳÉϾÙÐÐһЩÉèÖÃÀ´µÖÓùÉç½»¹¤³Ì¹¥»÷¡£±¾ÎĽ«ÏÈÈÝһЩÓÐÓõÄÉèÖÃÒªÁ죬ÒÔ¼°ÏìÓ¦µÄ´úÂëʾÀý¡£

½ûÓÃ×Ô¶¯µÇ¼

µ± CentOS ϵͳÆô¶¯Ê±£¬½ûÓÃ×Ô¶¯µÇ¼¹¦Ð§¿ÉÒÔ±ÜÃâδ¾­ÊÚȨµÄ»á¼û¡£±à¼­/etc/gdm/custom.confÎļþ£¬ÕÒµ½ÒÔÏÂÐУº

AutomaticLoginEnable=true
AutomaticLogin=<username>

µÇ¼ºó¸´ÖÆ

½«ÕâÁ½ÐиÄΪ£º

AutomaticLoginEnable=false

µÇ¼ºó¸´ÖÆ

ÉèÖÃÇ¿ÃÜÂëÕ½ÂÔ

ʹÓÃÇ¿ÃÜÂë¿ÉÒÔ±ÜÃâÉç½»¹¤³Ì¹¥»÷Õßͨ¹ýÍƲâÃÜÂë¾ÙÐÐÈëÇÖ¡£ÐÞ¸Ä/etc/pam.d/system-authÎļþ£¬ÕÒµ½ÒÔÏÂÐУº

password    requisite     pam_cracklib.so try_first_pass retry=3 type=

µÇ¼ºó¸´ÖÆ

½«ÆäÌ滻Ϊ£º

password    required     pam_cracklib.so retry=3 minlen=<min_length> difok=<min_different_characters>

µÇ¼ºó¸´ÖÆ

ÆäÖУ¬ ÊÇÃÜÂëµÄ×îС³¤¶ÈÒªÇó£¬ ÊÇÔÚÃÜÂëÖбØÐè°üÀ¨µÄ²î±ð×Ö·ûÊýÄ¿¡£

×°Ö÷À»ðǽ²¢ÉèÖùæÔò

CentOS ×Ô´øµÄ·À»ðǽ¹¤¾ßÊÇ iptables¡£Ê¹ÓÃÒÔÏÂÏÂÁî×°Ö÷À»ðǽ£º

sudo yum install -y iptables-services

µÇ¼ºó¸´ÖÆ

½ÓÏÂÀ´£¬ÉèÖ÷À»ðǽ¹æÔòÒÔÔÊÐíÐëÒªµÄÈëÕ¾ºÍ³öÕ¾ÅþÁ¬£¬²¢¾Ü¾ø²»ÐëÒªµÄÅþÁ¬¡£ÒÔÏÂÊÇһЩʾÀýÏÂÁ

# Çå¿ÕÄ¿½ñ·À»ðǽ¹æÔò
sudo iptables -F

# ÔÊÐí ssh ÅþÁ¬
sudo iptables -A INPUT -p tcp --dport 22 -j ACCEPT

# ÔÊÐí HTTP ºÍ HTTPS ÅþÁ¬
sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT
sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT

# ¾Ü¾øÆäËüÈëÕ¾ÅþÁ¬
sudo iptables -A INPUT -j REJECT

# ÔÊÐíËùÓгöÕ¾ÅþÁ¬
sudo iptables -A OUTPUT -j ACCEPT

µÇ¼ºó¸´ÖÆ

ÉèÖÃÓʼþ¾¯±¨

ͨ¹ýÉèÖÃÓʼþ¾¯±¨»úÖÆ£¬ÎÒÃÇ¿ÉÒÔʵʱÊÕµ½ÏµÍ³µÄÇ徲֪ͨ£¬ÒÔ±ãʵʱ½ÓÄÉÐж¯¡£ÒÔÏÂÊÇÒ»¸öʾÀýµÄÓʼþ¾¯±¨ÉèÖãº

# ×°ÖÃÓʼþ·¢Ë͹¤¾ß
sudo yum install -y mailx

# ±à¼­ÉèÖÃÎļþ
sudo vi /etc/aliases

# ½«ÒÔÏÂÐÐÌí¼Óµ½ÉèÖÃÎļþÖУ¬½«Óʼþ·¢Ë͵½ÄúµÄÓÊÏä
root:    your-email@example.com

# ¸üÐÂÉèÖÃÎļþ
sudo newaliases

# ²âÊÔÓʼþ·¢ËÍ
echo "Test email content" | mail -s "Test email subject" your-email@example.com

µÇ¼ºó¸´ÖÆ

°´ÆÚ¸üÐÂϵͳºÍÈí¼þ

°´ÆÚ¸üÐÂϵͳºÍÈí¼þ¿ÉÒÔÈ·±£ÄúµÄ CentOS ϵͳӵÓÐ×îеÄÇå¾²²¹¶¡ºÍ¹¦Ð§Ë¢Ð¡£Ê¹ÓÃÒÔÏÂÏÂÁîÀ´¸üÐÂϵͳ£º

sudo yum update -y

µÇ¼ºó¸´ÖÆ

ͨ¹ýÒÔÉÏÉèÖã¬Äú¿ÉÒÔÔÚ CentOS ϵͳÉÏÔöÇ¿Çå¾²ÐÔ£¬±£»¤ÄúµÄСÎÒ˽ÈËÒþ˽ºÍÍøÂçÇå¾²£¬Ô¤·ÀÉç½»¹¤³Ì¹¥»÷µÄÈëÇÖ¡£Çë¼Ç×Å£¬¼á³ÖСÐĺÍʵʱ¸üÐÂÊǼá³ÖϵͳÇå¾²µÄÒªº¦¡£

Çë×¢ÖØ£¬±¾ÎÄÌṩµÄÉèÖÃÒªÁìºÍ´úÂëʾÀý½ö¹©²Î¿¼£¬ÏêϸµÄÉèÖúÍÏÂÁî¿ÉÄÜÒòϵͳ°æ±¾¡¢ÇéÐαäÁ¿µÈÒòËضøÓÐËù²î±ð¡£ÔÚÉèÖÃϵͳʱ£¬Çë×ÐϸÔĶÁÏà¹ØÎĵµ£¬²¢Æ¾Ö¤ÏÖʵÐèÇó¾ÙÐÐÏìÓ¦µ÷½â¡£

ÒÔÉϾÍÊÇÔõÑùÉèÖÃCentOSϵͳÒÔ±ÜÃâÉç½»¹¤³Ì¹¥»÷µÄÈëÇÖµÄÏêϸÄÚÈÝ£¬¸ü¶àÇë¹Ø×¢±¾ÍøÄÚÆäËüÏà¹ØÎÄÕ£¡

ÃâÔð˵Ã÷£ºÒÔÉÏչʾÄÚÈÝȪԴÓÚÏàÖúýÌå¡¢ÆóÒµ»ú¹¹¡¢ÍøÓÑÌṩ»òÍøÂçÍøÂçÕûÀí£¬°æȨÕùÒéÓë±¾Õ¾Î޹أ¬ÎÄÕÂÉæ¼°¿´·¨Óë¿´·¨²»´ú±í×ðÁú¿­Ê±¹ÙÍøµÇ¼ÂËÓÍ»úÍø¹Ù·½Ì¬¶È£¬Çë¶ÁÕß½ö×ö²Î¿¼¡£±¾ÎĽӴýתÔØ£¬×ªÔØÇë˵Ã÷À´ÓÉ¡£ÈôÄúÒÔΪ±¾ÎÄÇÖÕ¼ÁËÄúµÄ°æȨÐÅÏ¢£¬»òÄú·¢Ã÷¸ÃÄÚÈÝÓÐÈκÎÉæ¼°ÓÐÎ¥¹«µÂ¡¢Ã°·¸Ö´·¨µÈÎ¥·¨ÐÅÏ¢£¬ÇëÄúÁ¬Ã¦ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼ʵʱÐÞÕý»òɾ³ý¡£

Ïà¹ØÐÂÎÅ

ÁªÏµ×ðÁú¿­Ê±¹ÙÍøµÇ¼

18523999891

¿É΢ÐÅÔÚÏß×Éѯ

ÊÂÇéʱ¼ä£ºÖÜÒ»ÖÁÖÜÎ壬9:30-18:30£¬½ÚãåÈÕÐÝÏ¢

QR code
ÍøÕ¾µØͼ