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

¡¾Linux×ÀÃæÓ¦Óá¿sudoµÄÓ÷¨¼°ÅäÖÃ

sudoÊÇlinuxϳ£ÓõÄÔÊÐíÆÕͨÓû§Ê¹Ó󬼶Óû§È¨Ï޵Ť¾ß¡£
ËüµÄÖ÷ÒªÅäÖÃÎļþÊÇsudoers,linuxÏÂͨ³£ÔÚ/etcĿ¼Ï£¬Èç¹ûÊÇsolaris£¬È±Ê¡²»×°sudoµÄ£¬±àÒë°²×°ºóͨ³£ÔÚ°²×°Ä¿Â¼µÄ etcĿ¼Ï£¬²»¹ý²»¹ÜsudoersÎļþÔÚÄĶù£¬sudo¶¼ÌṩÁËÒ»¸ö±à¼­¸ÃÎļþµÄÃüÁvisudoÀ´¶Ô¸ÃÎļþ½øÐÐÐ޸ġ£Ç¿ÁÒÍƼöʹÓøÃÃüÁîÐÞ¸Ä sudoers£¬ÒòΪËü»á°ïÄãУÑéÎļþÅäÖÃÊÇ·ñÕýÈ·£¬Èç¹û²»ÕýÈ·£¬ÔÚ±£´æÍ˳öʱ¾Í»áÌáʾÄãÄĶÎÅäÖóö´íµÄ¡£
ÑÔ¹éÕý´«£¬ÏÂÃæ½éÉÜÈçºÎÅäÖÃsudoers
Ê×ÏÈдsudoersµÄȱʡÅäÖãº
#############################################################
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# User privilege specification
root    ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel        ALL=(ALL)       ALL
# Same thing without a password
# %wheel        ALL=(ALL)       NOPASSWD: ALL
# Samples
# %users  ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users  localhost=/sbin/shutdown -h now
##################################################################
1. ×î¼òµ¥µÄÅäÖã¬ÈÃÆÕͨÓû§support¾ßÓÐrootµÄËùÓÐȨÏÞ
Ö´ÐÐvisudoÖ®ºó£¬¿ÉÒÔ¿´¼ûȱʡֻÓÐÒ»ÌõÅäÖãº
root    ALL=(ALL) ALL
ÄÇôÄã¾ÍÔÚϱßÔÙ¼ÓÒ»ÌõÅäÖãº
support ALL=(ALL) ALL
ÕâÑù£¬ÆÕͨÓû§support¾ÍÄܹ»Ö´ÐÐrootȨÏÞµÄËùÓÐÃüÁî
ÒÔsupportÓû§µÇ¼֮ºó£¬Ö´ÐУº
sudo su -
È»ºóÊäÈësupportÓû§×Ô¼ºµÄÃÜÂ룬¾Í¿ÉÒÔÇл»³ÉrootÓû§ÁË
2. ÈÃÆÕͨÓû§supportÖ»ÄÜÔÚij¼¸Ì¨·þÎñÆ÷ÉÏ£¬Ö´ÐÐrootÄÜÖ´ÐеÄijЩÃüÁî
Ê×ÏÈÐèÒªÅäÖÃһЩAlias£¬ÕâÑùÔÚÏÂÃæÅäÖÃȨÏÞʱ£¬»á·½±ãһЩ£¬²»ÓÃд´ó¶Î´ó¶ÎµÄÅäÖá£AliasÖ÷Òª·Ö³É4ÖÖ
Host_Alias
Cmnd_Alias
User_Alias
Runas_Alias
1) ÅäÖÃHost_Alias£º¾ÍÊÇÖ÷»úµÄÁбí
Host_Alias      HOST_FLAG = hostname1, h


Ïà¹ØÎĵµ£º

linux½ø³ÌͨÐÅѧϰ±Ê¼Ç


Linux½ø³Ì¼äͨÐŵķ½·¨
1¡¢¹ÜµÀ(pipe)
2¡¢ÓÐÃû¹ÜµÀ(named pipe)
3¡¢ÐźÅÁ¿
4¡¢ÏûÏ¢¶ÓÁÐ
5¡¢ÐźÅ
6¡¢¹²ÏíÄÚ´æ
7¡¢Ì×½Ó×Ö
-------------------------------------------------------------------------------
linux½ø³Ì¼äͨÐÅ
1. ¹ÜµÀ¡£
  ÄäÃûÒ»´ÎÐÔʹÓõģ¬°ëË«¹¤¡£Ò»¸ö½ø³ÌÍùÊä³ö¶Ëд¹ÜµÀ£¬ÁíÒ»¸ö½ø³Ì´Ó ......

linuxÏÂApacheÆô¶¯Ê§°ÜµÄһЩÌå»á

ϵͳÖØÆôºó·¢ÏÖ£¬ApacheÆô¶¯Ê§°Ü
±¨´íÈçÏ£º
# ./apachectl start
(98)Address already in use: make_sock: could not bind to address [::]:80
no listening sockets available, shutting down
Unable to open logs
²éÁËÏÂ80
#netstat -Inp|grep 80
tcp        0 &n ......

linuxÅäÖÃiptablesºÍsquid

iptables-save > ipt.v1.0
iptables-save > ipt.v1.1
iptables-restore < ipt.v1.0
cp /etc/sysconfig/iptables iptables.raw
service iptables save
ipαװµÄ½Å±¾Îļþiptables_masquerade
#!/bin/bash
//ÉèÖÃlinuxϵͳÔÊÐíip°üµÄת·¢
echo "1" > /proc/sys/net/ipv4/ip_forward
//¼ÓÔØʵÏÖ ......

Linux±Ê¼Ç£¨11£©Èë¶ÔÐÐÓë¼Þ¶ÔÀÉ£ºLinuxµÄְҵǰ¾°

  ºÍÎÒÃÇÌÖÂÛµÄÖ÷ÌâÔ½À´Ô½½üÁË¡£¡°ÄÐÅÂÈë´íÐУ¬Å®Å¼޴íÀÉ¡±£¬ÎÒ¶ÔÕâ¾ä»°µÄÌå»áÔ½À´Ô½Éî¿ÌÁË¡£×î½üÓиöÃñÉúÒøÐеÄÀÏ×ܺÍÎÒ̽ÌÖÁËÕâ¸öÎÊÌ⣬ºÁÎÞÒÉÎÊ£¬ÔÚÒøÐÐÕâ¸öÐÐÒµ¿Ï¶¨±ÈÒ»°ãµÄÐÐÒµÕõÇ®¡£ÓÚÊÇ£¬×ÔÈ»Çе½ÎÒÃǵĻ°Ì⣺LinuxÕâ¸öÐÐÒµÔõôÑù£¿ÕõÇ®Âð£¿ÒÔºó¿ªÔ´ÁËÎÒ»¹Óз¹³ÔÂð£¿×î½ü£¬ÎÒÄõ½ÁËÒ»·ÝLinuxµÄÖ°Òµ±¨¸æ¡£µ÷²é ......

Linux³£ÓÃÃüÁî(»ù´¡)

1£®¹ØÓÚÎļþ/Ŀ¼´¦ÀíµÄÖ¸Áî
1.1  ls Ö¸Áî
lsµÄÒâÒåΪ“list”£¬Ò²¾ÍÊǽ«Ä³Ò»¸öĿ¼ÏµÄÄÚÈÝÏÔʾ³öÀ´¡£
lsÓÐһЩ²ÎÊý£¬¿ÉÒÔ¸øÓèʹÓÃÕ߸ü¶àÓйصÄ×ÊѶ£¬ÈçÏ£º
-a£ºÔÚlinuxÖÐÈôÒ»¸öĿ¼»òÎļþÃû×ֵĵÚÒ»¸ö×ÖԪΪ“.”£¬ÔòʹÓÃls½«²»»áÏÔʾ³öÕâ¸öÎļþµÄÃû×Ö£¬ÎÒÃdzƴËÀàÎļþΪÒþ²ØÎļþ¡£Èç¹ûÎÒà ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ