linuxÏ resin ÎÞ·¨Ê¹Óö˿Ú
ÔÚ linux ÏÂ×°ÁË /usr/java/j2sdk1.4.2.19
/opt/resin2.1.17
µ«ÊÇÆô¶¯ÁËresinÖ®ºó£¬ http can't bind to *:9004
¶Ë¿ÚºÅÒ»Ö±Á¬½Ó²»ÉÏÈ¥¡£¡£
ÊÔ¹ý»»¶Ë¿ÚÁË¡£¡£²»ÐС£
netstat -l ÉÏ9004ҲûÓб»Õ¼Óᣡ£
¸üÆæ¹ÖµÄÊÇ ÎÒÆô¶¯µÄÓ¦¸ÃÊÇ http ¶Ë¿Ú¡£¡£
½á¹ûÎÒÔÚnetstat Éϼà¿Øµ½µÄ£¬È·ÊÇ <srun host='127.0.0.1' port='6802'/> Õâ¸ö¶Ë¿Ú±»Æô¶¯ÁË¡£¡£
ÕâÊÇʲôÔÒò°¢¡£¡£
×¢£ºÃ»×° apache
¸÷λ´óϺ¿´¿´°¡
Ïà¹ØÎÊ´ð£º
СµÜ×î½üÐèÒªÒ»¸öÓÃsocket»ñÈ¡htmlÎĵµµÄ´úÂ룬µ«ÊÇÀÏÊDz»ÄÜ»ñÈ¡ÍêÕûµÄhtmlÔ´Âë¡£ÔÒò²»Ã÷£¬Íû¸ßÊÖÖ¸µã£¡
C/C++ code:
char *Http_GET(char *host,int port,char *data) //·¢ËÍGETÇëÇó
{
char response[2 ......
ÔÏȵÄGCC°æ±¾Îª4.1.2,ÎÒÖØбàÒë°²×°ÁËGCC4.3.2£¬µ«ÊDZàÒëÍê³ÌÐòÔËÐгÌÐòʱ»á³öÏÖversion `GLIBCXX_3.4.9' not found Õâ¸öÎÊÌ⣬ÎÒ²»Ì«Ã÷°×Ôõô»ØÊ£¬Çë¸÷λ´óϺָµãһϡ£
ÊÖ¶¯ÔÙ×°Ò»´Îglibc*_3.4.9
ÕâÊÇÎ ......
ÎÒµÄÒâ˼ÊÇ£º
ÔÚ²»¸ü¸ÄÔÀ´µÄÎļþ¼ÐËùÓÐÈË£¬ËùÓÐ×飬ÆäËûÈËȨÏÞµÄÇé¿öÏ£¬µ¥¶À¸øÎļþ¼ÐÊÚȨijÓû§
±ÈÈç/var/www Õâ¸öÎļþ¼Ð£¬ÔÀ´ÏµÍ³ÓÐĬÈϵÄÊôÖ÷ºÍÊô×飬ÎÒÏÖÔÚ²»ÏëÈ¥¸ÄËüÔÀ´µÄÉ趨£¬Ö»ÊÇÏë¸øËüÔö¼ ......
ÎÒҪд¸ö·þÎñ¶Ë¡£ ÒªÇóͬʱ֧³Öwindows ºÍ linux Á½¸ö ϵͳ¡£ Ò²¾ÍÊÇҪдһ¸ö dllºÍÒ»¸öso Îļþ¡£ÓÉÓÚÎÒÒ»Ö±¶¼ÊÇÔÚwindsÏÂд³ÌÐò¡£linuxµÄ»¹²»»á¡£ Ïò´ó¼Ò×Éѯ ͬʱ Ö§³Ö dllºÍso Ó¦¸ÃÔõôд¡£
Óô¿c/c ......