Redhat AS4 Linux³£Ó÷þÎñºÍ¹¤¾ß
ÕâÀï¼Ç¼Redhat LinuxÖеÄһЩ³£Ó÷þÎñºÍÅäÖù¤¾ß¡£°æ±¾»ùÓÚAS4¡£
1.Firewall
ͨ¹ýÃüÁîÐÐÅäÖãºlokkit
ͼÐνçÃæÅäÖãºApplications->System Settings->Security Level
2.samba
/etc/init.d/smb start | /etc/init.d/smb stop | /etc/init.d/smb restart
»òÕß
service smb start | service smb stop | service smb restart
sambaµÄÅäÖ㬿ÉÒÔͨ¹ýÐÞ¸Ä/etc/samba/smb.confÎļþ»òÕßApplications->System Settings->Server Settings->Samba´ò¿ªÍ¼ÐνçÃæÅäÖá£
ʹÓÃsmbmount //ip/sharefolder /localmoutpoint ¿ÉÒÔ½«¹²ÏíĿ¼mountµ½±¾µØÎļþϵͳÖУ¬·ñÔòÐèҪʹÓÃsmbclient //ip/sharefolderµÄ·½Ê½À´·ÃÎÊ£¬²»Ì«·½±ã¡£
3.telnet
ĬÈÏ°²×°ºótelnetδÆôÓ᣼ì²âtelnet״̬#chkconfig --list | grep telnet£¬Èç¹û·µ»ØΪkrb5-telnet:off¡£ÔòtelnetδÆôÓá£
Ö´ÐÐ#chkconfig krb5-telnet on¼´¿É¿ªÆôtelnet·þÎñ¡£
Ò²¿ÉÒÔͨ¹ýntsysv¹¤¾ß£¬»òÕßÖ±½ÓÐÞ¸Ä/etc/xinetd.d/krb5-telnetÅäÖÃÎļþʵÏÖ¡£
ĬÈÏÇé¿öÏ£¬rootÎÞ·¨telnet£¬ÕâÊÇΪ°²È«¿¼ÂÇ£¬ÊµÔÚÐèҪʹÓÃroot¿ÉÒÔ¿¼ÂÇÆÕͨÓû§loginºósu³Éroot¼´¿É¡£
service xinetd start | service xinetd stop | service xinetd restart
4.SSH
ϵͳĬÈÏÆôÓÃÁËssh£¬Ò²¿ÉÒÔʹÓÃchkconfigÀ´²é¿´ºÍ¸ü¸Ä·þÎñ״̬¡£
ÕâÊÇÒ»ÖֱȽϰ²È«µÄÔ¶³Ì½ÓÈëϵͳµÄ·½·¨£¬½¨ÒéʹÓÃÒÔÌæ´útelnet¡£²»ÐèÒª×öʲôÅäÖã¬Ö±½ÓʹÓÃssh¿Í»§¶Ë£¬±ÈÈçputty¾ÍÄܵÇÈ룬ĬÈÏÒ²²»ÄÜʹÓÃrootÓû§¡£
service sshd start | service sshd stop | service sshd restart
Í£Ö¹·þÎñºó²»Ó°ÏìÒѾµÇÈëµÄÁ¬½Ó£¬Ö»»á¾Ü¾øеĽÓÈëÇëÇó¡£
SSH¿ÉÒÔ»ùÓÚ¿ÚÁîÈÏÖ¤»òÕßÃÜÔ¿ÈÏÖ¤¡£ÔÚrac°²×°ÖУ¬ÓÉÓÚÒªÇó²»µ¯³öÊäÈëÓû§ÃÜÂëµÄÌáʾ£¬ÐèÒª¶Ôssh½øÐÐÅäÖÃÒÔʹÓÃÃÜÔ¿ÈÏÖ¤¡£
ʹÓÃssh-keygen -d ÃüÁîÉú³ÉÒ»¶ÔÃÜÔ¿£¬Ä¬ÈÏ·ÅÔÚ/root/.ssh/id_dsa(˽Կ)ºÍ/root/.ssh/id_dsa.pub(¹«Ô¿)¡£È»ºó½«¹«Ô¿¸½¼Óµ½Ä¿±ê»úÆ÷µÄ/home/oracle/.ssh/id_dsa/authorized_keysÎļþÖУ¬¾Í¿ÉÒÔ´Ó±¾µØÎÞÐëÃÜÂë·ÃÎÊÔ¶³ÌÖ÷»úÁË¡£
Ïà¹ØÎĵµ£º
º¯ÊýÔÐÍ£º
#include <pthread.h>
int pthread_create(pthread_t *restrict tidp,const pthread_attr_t *restrict attr, void *(*start_rtn)( ......
At first, GCC is used for GNU C Compiler. At present£¬it supports JAVA Ada C++ and so on.
GCC±àÒëÁ÷³Ì·ÖΪ£º
1.Pre-Processing£¨Ô¤´¦Àí£©
gcc -E -o hello.i hello.c
Ñ¡Ïî-E ʹµÃ±àÒëÆ÷ÔÚÔ¤´¦Àí½áÊøʱֹͣ±àÒë
Ñ¡Ïî-o Ö¸¶¨GCCµÄÊä ......
×î½üÔÚÍøÉÏ¿´Á˼¸¸öLinuxÄں˱àÒë·½ÃæµÄÎÄÕ£¬ÓÉÓںܶàÕâÑùµÄÌû×Ó£¬Ëæ±ã¿´Á˼¸¸ö¶¼²î²»¶à°É¡£ÔÚÎÒÕæÕý×Ô¼º¶¯ÊÖȥʵ¼ùµÄʱºò£¬³öÏÖÁ˺ܶàµÄÎÊÌâ¡£¸Ð¾õÊDz»ÄÜÍêÈ«°´ÕÕ±ðÈ˵ķ½·¨À´£¬ÒòΪÄãÃǵĵ±Ê±µÄ»úÆ÷¹¤×÷»·¾³¿ÉÄÜÊDz»Ò»ÑùµÄ¡£Õû¸ö¹ý³ÌÇúÕÛ¿²¿À¡£µ«ÊÇ×îºó»¹Êdzɹ¦À²£¡ÏÂÃæÎÒ½«¸ø³ö×Ô¼ºµÄʵ¼ù¹ý³ÌºÍ×¢Òâµã¡£
Ò»,ΪʲôҪ± ......
rzÉÏ´«Îļþµ½Ä³Ä¿Â¼
½âѹËõ tar zxvf
½øÈëlibeventĿ¼ ./configure
תµ½rootÓû§ make install
½øÈëmemcachedĿ¼ ./configure
תµ½rootÓû§ make install
Æô¶¯memcached
cd /usr/local/bin
/usr/local/bin/memcached -d -P /var/local/logs/memcached.pid -t 4 -m 200 -u root -c 1024 -v >> /var/local/l ......
1£¬shell export ×÷ÓÃ
http://blog.sina.com.cn/s/blog_62945c360100ffvk.html
2£¬alias ls="ls --color=auto"
°²×°ÁËarchlinuxºó£¬·¢ÏÖʹÓÃlsÃüÁîʱ£¬Ä¿Â¼ºÍÎļþ²¢Ã»ÓÐÒÔÑÕÉ«Çø·Ö¿ªÀ´£¬¾õµÃºÜ²»·½±ã£¬ËùÒԾ͵½ÍøÉÏËÑÁËһϣ¬·¢ÏÖ¿ÉÒÔʹÓÃaliasÃüÁÔÚ/etc/profileµÄĩβ¼ÓÈëalias ls="ls ......