/var/log/messages ÀïÃæ¹ØÓÚFTPµÄÖ»ÓÐÕâÑù: vsftpd: warning: can't get client address: Bad file descriptor /var/log/vsftpd.log ÀïÃæÖ»ÓÐÿ´Î"½»Ò×"µÄ¼Ç¼ ÎÒÏëҪÿ´ÎµÇ¼ºÍµÇ³öµÄ¼Ç¼ÎļþÔÚÄÄÀï? /var/log/messagesÕâ¸öÎļþÂð?³ö´íÐÅÏ¢ÓÖ¸ÃÈçºÎÀí½âÄØ.
/var/log/messages ÀïÃæ¹ØÓÚFTPµÄÖ»ÓÐÕâÑù: vsftpd: warning: can't get client address: Bad file descriptor /var/log/vsftpd.log ÀïÃæÖ»ÓÐÿ´Î"½»Ò×"µÄ¼Ç¼ ÎÒÏëҪÿ´ÎµÇ¼ºÍµÇ³öµÄ¼Ç¼ÎļþÔÚÄÄÀï? /var/log/messagesÕâ¸öÎļþÂð?³ö´íÐÅÏ¢ÓÖ¸ÃÈçºÎÀí½âÄØ.
void WriteStartLog(CString sLog) { CFile m_LogFile; sLog+="\r\n"; m_LogFile.Open(".\\Log.Log",CFile::modeCreate| CFile::modeNoTruncate| CFile::modeWrite ); m_LogFile.SeekToEnd(); m_LogFile.Write(sLog,sLog.GetLength()); m_LogFile.Close(); } ±ÈÈçÕâÑùµ÷ÓãºWriteStartLog£¨¡°³É¹¦£¡£¡¡±£©£¬vc6Àïͨ¹ý¡£¡£vs2005Àﱨ´í£º²»Äܽ«²ÎÊý 1 ´Ó¡°const char [24]¡±×ª»»Îª¡°CString¡±£»²»Äܽ«²ÎÊý 1 ´Ó¡°const ...
²»À³Ã·ÄǸöÃŽ«Õæ¸ãЦ£¬Ó¢ÐÛÒ²ÊÇËû£¬Ê§°ÜµÄ×ïÈËÒ²ÊÇËû£¬°×°×ÈÃÓÈÎļñÁ˸ö±ãÒ˽ú¼¶¡£ ×ϲ»¶Àϸ¾ÈËÁË