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

linux statº¯Êý½²½â

statº¯Êý½²½â£¨×ª£©
±íÍ·Îļþ:    #include <sys/stat.h>
            #include <unistd.h>
¶¨Ò庯Êý:    int stat(const char *file_name, struct stat *buf);
º¯Êý˵Ã÷:    ͨ¹ýÎļþÃûfilename»ñÈ¡ÎļþÐÅÏ¢£¬²¢±£´æÔÚbufËùÖ¸µÄ½á¹¹ÌåstatÖÐ
·µ»ØÖµ:     Ö´Ðгɹ¦Ôò·µ»Ø0£¬Ê§°Ü·µ»Ø-1£¬´íÎó´úÂë´æÓÚerrno
´íÎó´úÂë:
    ENOENT         ²ÎÊýfile_nameÖ¸¶¨µÄÎļþ²»´æÔÚ
    ENOTDIR        ·¾¶ÖеÄĿ¼´æÔÚµ«È´·ÇÕæÕýµÄĿ¼
    ELOOP          Óû´ò¿ªµÄÎļþÓйý¶à·ûºÅÁ¬½ÓÎÊÌ⣬ÉÏÏÞΪ16·ûºÅÁ¬½Ó
    EFAULT         ²ÎÊýbufΪÎÞЧָÕ룬ָÏòÎÞ·¨´æÔÚµÄÄÚ´æ¿Õ¼ä
    EACCESS        ´æÈ¡Îļþʱ±»¾Ü¾ø
    ENOMEM         ºËÐÄÄÚ´æ²»×ã
    ENAMETOOLONG   ²ÎÊýfile_nameµÄ·¾¶Ãû³ÆÌ«³¤
#include <sys/stat.h>
#include <unistd.h>
#include <stdio.h>
int main() {
    struct stat buf;
    stat("/etc/hosts", &buf);
    printf("/etc/hosts file size = %d\n", buf.st_size);
}
-----------------------------------------------------
struct stat {
    dev_t         st_dev;       //ÎļþµÄÉ豸±àºÅ
    ino_t         st_ino;       //½Úµã
    mode_t        st_mode;      //ÎļþµÄÀàÐͺʹæÈ¡µÄȨÏÞ
    nlink_t       st_nlink;     //Á¬µ½¸ÃÎļþµÄÓ²Á¬½ÓÊýÄ¿£¬¸Õ½¨Á¢µÄÎļþֵΪ1
    uid_t         st_uid;  


Ïà¹ØÎĵµ£º

ÈçºÎ¿ªÆô¹Ø±Õlinux·À»ðǽ

ÈçºÎ¿ªÆô¹Ø±Õlinux·À»ðǽ
 
 
¡¡¡¡ÖØÆôºóÉúЧ
¡¡¡¡¿ªÆô£ºchkconfig iptables on
¡¡¡¡¹Ø±Õ£ºchkconfig iptables off
¡¡¡¡¼´Ê±ÉúЧ£¬ÖØÆôºóʧЧ
¡¡¡¡¿ªÆô£ºservice iptables start
¡¡¡¡¹Ø±Õ£ºservice iptables stop
¡¡¡¡»ò
¡¡¡¡¹Ø±Õ£º /etc/rc.d/init.d/iptables stop
¡¡¡¡Æô¶¯£º /etc/rc.d/init.d/ip ......

Connection reset by peer > Linux ϵĴíÎó error.h

ÎÊÌ⣺Á½Ì¨DVRͬʱÁ¬½Óͬһ̨2·µÄDVS£¬ÆäÖÐһ̨DVRÕý³£Á¬½ÓDVSµÄÁ½Â·Êä³ö£¬Ô¤ÀÀÒ²Õý³£¡£
         ¶øÁíһ̨DVRÖ»ÄÜÁ¬ÉÏDVSµÄ1·Êä³ö£¬Áíһ·ÔõôҲÁ¬²»ÉÏ¡£
        
         ¸ú×Ù·¢ÏÖ£¬D ......

LinuxÄÚºËÉý¼¶(ubuntu+virtual Box)


ÄÚºËÖÕÓÚ±à¹ý²¢ÇÒÉý¼¶ÁË£¬±¾À´´òËã×¥½ô¼ÌÐøÍùÏÂѧϰ¡£µ«ÊÇÔÚÀÏÆŵĹÄÀøÏ£¬¸Ð¾õ»¹ÊÇÍ£ÏÂÀ´×ܽáϱȽϺã¬ÕâÑù¶Ô×Ô¼º¶Ô±ðÈ˶¼ÓÐËù°ïÖú¡£
 
0¡¢»·¾³½éÉÜ
    ÎÒÊÇÔÚVirtualBox-3.1.6-59338-WinµÄÐéÄâ»úÉÏ°²×°ÁËubuntu-9.10-desktop-i386.iso¡£µçÄÔ±¾ÉíÊÇXPϵͳ¡£
    ×¢Ò⣬ÔÚ½øÐÐÏ ......

LinuxÖа²×°Tomcat6ÊÖ¼Ç

°²×°²½Ö裺
Ø  °²×°tomcatÇ°ÏÈÒª±£Ö¤°²×°ÁËJDK£¬¿ÉÒÔÓÃÃüÁî²é¿´ÊÇ·ñ°²×°ÁËJDK£º
[root@wxr webapps]# java -version
java version "1.6.0_19"
Java(TM) SE Runtime Environment (build 1.6.0_19-b04)
Java HotSpot(TM) Client VM (build 16.2-b04, mixed mode, sharing)
 
Ø  ÏÂÔØTom ......

xpÏÂLinux˫ϵͳµÄ°²×°

xpÏ´ÓÓ²ÅÌ°²×°Linux£¬°üÀ¨redflag6 RedHat9 fc4¶¼ÀàËÆ£¨¶¼²»Ð£¡£©£¬µ«ÊÇ°²×°¹ý³Ì¾ø¶ÔÏêϸ£¡
1¡£Ê×ÏÈÊÇ×¼±¸Ìõ¼þ
    £¨1£© ÌÚ³öµØ·½£ºxpÏÂÒªÓеط½·ÅLinuxµÄ¾µÏñ£¨.iso£©£¬¶øÇÒËùÔÚ´ÅÅÌҪΪfat32¸ñʽ£¬¿ÉÒÔÓÃnorton partitionmagic£¨ºÜ²»´íµÄ¹¤¾ß£¬ÍøÉϺܶàÏÂÔØ£¡£©½«´ÅÅ̸ñʽת»»  ²»¹ýÒòΪÈí ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ