Ò»¸ö¼òµ¥µÄlinuxÏÂÍøÂç³ÌÐòʵÀý£ÍøÂç±à³ÌÈëÃÅ ÊÕ²Ø
http://blog.csdn.net/manio/archive/2006/10/13/1333202.aspx
/*
server
*/
#include
<
stdio.h
>
#include
<
sys
/
types.h
>
#include
<
netinet
/
in
.h
>
#include
<
sys
/
socket.h
>
#include
<
netdb.h
>
#include
<
unistd.h
>
#include
<
string
.h
>
#include
<
arpa
/
inet.h
>
#define
PORT 8848
#define
BACKLOG 1
main()
{
int
listenfd,connectfd;
struct
sockaddr_in server;
struct
sockaddr_in client;
int
sin_size;
if
(( listenfd
=
socket(AF_INET, SOCK_STREAM,
0
))
==
-
1
)
{
perror(
"
Creating socket failed.
"
);
return
0
;
}
int
opt
=
SO_REUSEADDR;
setsockopt(listenfd, SOL_SOCKET, SO_REUSEADDR,
&
opt,
sizeof
(opt));
bzero(
&
server,
sizeof
(server));
server.sin_family
=
AF_INET;
server.sin_port
=
htons(PORT);
server.sin_addr.s_addr
=
htonl(INADDR_ANY);
printf(
"
binding...
"
);
if
(bind(listenfd, (
struct
sockaddr
*
)
&
server,
sizeof
(
struct
sockaddr))
==
-
1
) {
perror(
"
Bind error
"
);
ret
Ïà¹ØÎĵµ£º
Ŀ¼½á¹¹ÈçÏ£º
|
|---- YourProject
| |-------- WebRoot
| | |---- WEB ......
package: download from:
Èí¼þ¼¯³É¿ª·¢»·¾³£¨´úÂë±à¼¡¢ä¯ÀÀ¡¢±àÒë¡¢µ÷ÊÔ£©
Emacs http://www.gnu.org/software/emacs/
Source-Navigator 5.2b2 http://sourceforge.net/projects/sourcenav
Anjuta http://anjuta.sourceforge.net(¿ÉÓÃyum°²×°)
´úÂëË÷Òý¹¤¾ß
Cscope http://cscope.sourceforge.net/
KScope http:/ ......
×÷Õߣºlch
matlab
for
Linux
°²×°
(
°²×°·½·¨ÎĵµÊÇ´ÓÍøÉϲé×ÊÁÏ+
ʵ¼ùµÃµ½µÄ )
Ò».
°²×°
1.
Ê×ÏÈÐèÒª½¨Á¢°²×°Ä¿Â¼
[wzh@localhost ~]$ su
[root@localhost ~]$ mkdir /usr/matlab
2.
È»ºó¼ÓÔØ¹âÅÌÓ³Ïñ
[root@localhost wzh]# mount -o loop -t iso9660
/mnt/hda7 ......
дÔÚÇ°ÃæµÄ»°
Linux Device Driver ³¢ÊÔ×Å¿´Á˺ü¸±é£¬×ܸоõÀí½â²»¹»Í¸³¹£¬ºÜ¶à¶«Î÷¾²»×¡ÎÊ£¬
²ÅÉîÉîµÄÒâʶµ½£¬Òª×ß½øºÆå«ÎÞ±ßµÄ Linux ÊÀ½ç£¬²¢²»ÊÇÒ»õí¶ø¾ÍµÄÊÂÇé¡£ÎÒ¾öÐÄ´ÓÀíÂÛµ½
ʵ¼ù£¬ÔÙÒ»´Î×ßÒ»±ßÕâ±¾Ê飬ͬʱ¼Ç¼ÏÂ×Ô¼ºµÄÐĵ㬺ʹó¼ÒÒ»Æð·ÖÏí£¬Ò»ÆðÌÖÂÛ£¬Ò»Æð½ø
²½¡£
&nb ......
1.JDK1.6°²×°×¼±¸
¡¡¡¡´Ósun¹«Ë¾ÍøÕ¾www.sun.comÏÂÔØlinux°æ±¾µÄjdk,ÎÒÏÂÔØµÄ°æ±¾ÊÇJDK 6 Update 7,
¡¡¡¡µØÖ·http://java.sun.com/javase/downloads/index.jsp
¡¡¡¡jdk-6u7-linux-i586.bin,´ò¿ªÖÕ¶Ë£¬ÓÃcdÃüÁî½øÈëjdkËùÔÚĿ¼,Ö´Ðи´ÖÆÃüÁî
¡¡¡¡sudo cp jdk-6u7-linux-i586.bin /usr
¡¡¡¡¼´½ ......