Ò»¸ö¼òµ¥µÄ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
Ïà¹ØÎĵµ£º
½ñÌ쿽±´ÁËÐéÄâ»úÔÚÁíÍâһ̨µçÄÔÉÏʹÓ㬷¢ÏÖMACµØÖ·³åÍ»£¬ÓÚÊÇÈ¥ÍøÉÏÕÒÐ޸ķ½·¨¡£¿É°´ÕÕËù˵µÄ£¬ÎÒ²¢Ã»ÓкÜ˳ÀûÐ޸ijɹ¦¡£
ÏÂÃæÎÒ½«¹ý³Ìд³öÀ´£¬ÀïÃæÓÐЩµØ·½ÐèҪעÒâһϡ£
ÏÂÃæÊÇÎÒ´ÓÍøÉÏËÑË÷µ½´ó²¿·ÖµÄ×ö·¨ÈçÏ£¬ºìÉ«²¿·ÖÊÇÎÒ×¢Ê͵ģ¬ÐèҪעÒâµÄµØ·½£º
VMwareÐéÄâ»úÖÐÐÞ¸ÄLinux MACµØÖ·µÄ·½·¨£º
1¡¢ÐÞ¸ÄÐéÄâ»úµÄ*.v ......
ÎҵĵçÄÔ°²×°ÁË˫ϵͳ£¬WindowsºÍLinux£¬²»¹ýÓÉÓÚLinuxÔÚ×î½üÒ»¶Îʱ¼äÄÚ²»»áʹÓã¬ËùÒÔÎÒ´òËãɾ³ýLinux¡£
ɾ³ýLinux×îÐèҪעÒâµÄµØ·½£¬¾ÍÊÇMBR£¨Master Boot Record£©¡£ÔÚɾ³ýLinux·ÖÇøÇ°£¬ÎÒÃÇÐèÒª½«Æô¶¯WindowsµÄÒýµ¼ÐÅϢдÈëMBR£¬·ñÔò£¬MBRÖеÄLinuxÒýµ¼ÐÅÏ¢£¬µ±È»¾Í²»ÄÜÆô¶¯WindowsÏµÍ ......
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:/ ......
proftpÔÚlinuxϰ²×°ÅäÖÃÖ¸ÄÏ
Ò»¡¢°²×°»·¾³
¡ô Red Hat AS 5.0
¶þ¡¢°²×°°ü×¼±¸
¡ô proftpd-1.3.2.tar.gz
Èý¡¢Ð½¨Ä¿Â¼
¡ô /usr/app/
ËÄ¡¢°²×°²½Öè
¡ô Óû§£ºroot
¡ô ½«Ñ¹ËõÎļþ£ºproftpd-1.3.2.tar.gz¿½±´µ½/usr/app/ÏÂÃæ
¡ô ½âѹËõÎļþ
#cd /usr/app/
#tar –vzxf proftpd-1.3.2.tar.gz
......