LinuxÏÂÅäÖÃSVN Server(¶þ)
ÔÚÒ»ÖÐÒѾ˵Ã÷ÁËÔÚlinuxÏÂÅäÖÃSVN serverµÄÖ÷Òª²½Ö裬Èç¹ûÈí¼þÒÀÀµÃ»ÓÐÎÊÌâµÄ»°Ó¦¸ÃÒѾ°²×°³É¹¦ÁË£¬ÏÂÃæ¾ÍÊÇÅäÖõÄÎÊÌâÁË¡£Ê×ÏÈҪȷ¶¨subversionµÄÁ½¸öÄ£¿éÊDz»ÊÇÕýÈ·µÄ°²×°µ½ÁËapacheÏ£¬¿ÉÒÔÔÚapacheµÄÒ»¸öÅäÖÃÎļþÖп´µ½£¬¸ÃÅäÖÃÎļþÔÚapacheµÄ°²×°Ä¿Â¼Ï /conf/httpd.conf
ÔÚhttpd.confÏÂÃæ»áÓÐÁ½ÐУº
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
ÕâÑù±íʾ°²×°³É¹¦£¬·ñÔò»¹ÐèÒª×Ô¼ºÊÖ¶¯½«ÕâÁ½¸öÄ£¿é´ÓsubversionµÄԴĿ¼ÀïÃæÕÒµ½ÕâÁ½¸öÄ£¿é£¬È»ºó¿½±´µ½ apacheµÄ°²×°Ä¿Â¼/modulesÏÂÃæ£¬È»ºóÐÞ¸ÄÅäÖÃÎļþ/conf/httpd.conf£¬Ìí¼Ó½øÈ¥ÄÇÁ½ÐС£
È»ºó»¹ÊÇÒªÐÞ¸ÄapacheÅäÖÃÎļþ£¬Ìí¼Ó½øÈ¥subversionµÄ·ÃÎÊλÖ㬲¢Öƶ¨·ÃÎÊ·½Ê½£¬ÎÒµÄÊéд·½Ê½ÈçÏ£º
<Location /svn>
57 DAV svn
58 SVNParentPath
/data3/SVN/repos
59 AuthType Basic
60 AuthName "Subversion
repository"
61 AuthUserFile
/data3/SVN/passwd
62 AuthzSVNAccessFile /data3/SVN/auth
63 Require valid-user
64 </Location>
ÆäÖУ¬/svn±íʾÁËÔÙ·ÃÎÊapache·þÎñÆ÷µÄʱºò£¬ÓòÃûµØÖ·µÄ×ÓĿ¼£¬ SVNParentPath±íʾµÄÊÇ´ÅÅÌÉϵÄλÖ㬼ǼÎļþĿ¼ÊÇrepos£»AuthUserFile ±íʾµÄÊÇÓû§ÎļþÁÐ±í£»AuthzSVNAccessFile ±íʾµÄÊÇ·ÃÎÊȨÏÞÁÐ±í¡£ÆäÖУ¬passwdºÍauthÐèÒª×Ô¼ºÊÖ¶¯´´½¨£¬²¢Ìí¼ÓÄÚÈÝ¡£passwdÓÐÌṩµÄÃüÁî¿ÉÒÔ´´½¨£¬Ö»ÐèҪ˵Ã÷Îļþ·¾¶¡¢ÊäÈëÓû§ÃûºÍÓû§ÃÜÂë¾Í¿ÉÒÔÁË£¬ÔÚʵ¼ÊµÄÎļþÖУ¬Óû§ÃÜÂëÊÇÓÃMD5¼ÓÃܵÄ×Ö·û´®¡£
´´½¨passwd£º#apache°²×°Ä¿Â¼/bin/htpasswd -c /data3/SVN/passwd usrname
È»ºó»áÌáʾÄãÊäÈëÃÜÂ룬ÃüÁî»á×Ô¶¯´´½¨Îļþpasswd²¢Ð´ÈëusrnameºÍÃÜÂëµÄMD5¼ÓÃÜ×Ö·û´®¡£
#svnadmin create /data/svn/repos/usrname
Ïà¹ØÎĵµ£º
Ê×ÏÈÎÒÃÇÐèÒªÁ˽âlinux
ÏÂÓ²Á´½ÓÒÔ¼°ÈíÁ¬½ÓµÄ»ù±¾¸ÅÄî.
Ó²Á´½Ó£ºÐ½¨µÄÎļþÊÇÒѾ´æÔÚµÄÎļþµÄÒ»¸ö±ðÃû£¬µ±ÔÎļþɾ³ýʱ£¬Ð½¨µÄÎļþÈÔÈ»¿ÉÒÔʹÓÃ.
ÈíÁ´½Ó£ºÒ²³ÆÎª·ûºÅÁ´½Ó£¬Ð½¨µÄÎļþÒÔ“
·¾¶”
µÄÐÎʽÀ´±íʾÁíÒ»¸öÎļþ£¬ºÍWindows
µÄ¿ì½Ý·½Ê½Ê®·ÖÏàËÆ£¬Ð½¨µÄÈíÁ´½Ó¿ÉÒÔÖ¸Ïò²»´æÔÚµÄÎļþ.
ÏÂÃæÏêϸ½ ......
½ñÌìµÄÊÂÌ«¶à£¬Ã»ÓÐÈÏÕæµÄÍê³ÉÈÎÎñ£¬²»¹ý°Ñ·þÎñÆ÷¶ËµÄÎļþ´«Êä×öºÃÁË£¡
Ã÷Ìì°Ñ·þÎñÆ÷¶ËµÄ´úÂ뼯³ÉÆðÀ´²âÊÔһϣ¬²¢°ÑÍøÂç¿Í»§¶Ë³ÌÐò×öºÃ£¡
°Ñ´úÂëÌù³öÀ´°É£¡±ãÓÚ±£´æ£¡
Í·Îļþ£ºserver_udpsocket.h
#ifndef _SERVER_UDPSOCKET_H_
#define _SERVER_UDPSOCKET_H_
#include <stdio.h>
#include <stdlib.h>
......
ÍøÂçÉ豸½á¹¹Ì壺
struct sk_bufff{}
ËüµÄ¶¨ÒåÔÚlinux/skbuff.hÖÐ
sk_buff ÖÐÓÐÈý²¿·ÖÐÒéÍ··Ö±ðÃüÃûΪ¡°h,nh,mac¡±
h:Ϊ´«Êä²ãÐÒé(ICMP,IGMP)¡£
nh:ÎªÍøÂç²ãÐÒéÍ·¡£
mac:Á´Â·²ãÐÒéÍ·¡£ Èý¸öÐÒéÍ·ÊÇʹÓÃÁªºÏÌåµÄ£¬ÔÒòÊÇ£¬ÐÒé±¾ÉíÊÇ»¥³âµÄ¡£ ½á¹¹ÌåµÄ¶¨Òå¿ÉÒÔ¿´Í·Îļþ»òÊÇ¡¶ÄÚºË ......
ÔÚFC8ÖÐĬÈϰ²×°µÄÓÐmysql£¬Ã»Óеϰ¿ÉÒԺܷ½±ãµÄ°²×°Ï¡£
ĬÈϵÄmysqlµÄincludeÎļþĿ¼ÔÚ/usr/include/mysql
ĬÈϵÄmysqlµÄlibÎļþ¼ÐÔÚ/usr/lib/mysql
ÕâÁ½¸öĿ¼ÔÚÎÒÃDZàÒëʱºòÐèÒªµ½¡£
ÎҵIJâÊÔÓõÄC´úÂëΪ£º
££include <stdio.h>
#include <stdlib.h>
#include <mysql.h>
#define CONN_HOST ......
1. ´ÓÓ²Å̰²×°linuxµÄѧϰ£¬ºÍʵÑé Done
Use wingrub, install the Ubuntu on /dev/sda2. and could boot!
2. pppoe connection &nbs ......