1. 安装 git-daemon-sysvinit
2. vi /etc/default/git-daemon
GIT_DAEMON_ENABLE=true
GIT_DAEMON_OPTIONS="--export-all"
3. cd /var/cache/git && ln -s /srv/www-data/chefull.com/@ www.git
4. update-rc.d git-daemon && service git-daemon start
5. ifconfig eth0 | grep '20.13.5.'
----
git remote set-url pengpeng git://20.13.5.x/git/www.git
vi /etc/apt/sources.list
23021 2014-05-13 10:19:21 apt-get update
23022 2014-05-13 10:20:33 apt-cache search git-daemon
23023 2014-05-13 10:20:49 apt-get install git-daemon
23024 2014-05-13 10:20:52 apt-get install git-daemon-run
23025 2014-05-13 10:21:25 apt-get purge aircrack-ng
23026 2014-05-13 10:21:38 apt-get install
23027 2014-05-13 10:21:41 apt-get -f install
23028 2014-05-13 10:21:47 apt-get install git-daemon-run
23029 2014-05-13 10:22:37 ll /etc/init.d/
23030 2014-05-13 10:22:50 update-rc.d git-daemon
23031 2014-05-13 10:22:57 update-rc.d git-daemon defaults
23032 2014-05-13 10:23:26 apt-get purge git-daemon-run
23033 2014-05-13 10:23:41 apt-get install git-daemon-sysvinit
23034 2014-05-13 10:23:51 ll /etc/init.d/
23035 2014-05-13 10:23:53 ll /etc/init.d/git-daemon
23036 2014-05-13 10:24:05 dpkg-reconfigure git-daemon-sysvinit
23037 2014-05-13 10:24:13 update-rc.d git-daemon defaults
23038 2014-05-13 10:24:28 cat /etc/init.d/git-daemon
23039 2014-05-13 10:27:49 service git-daemon restart
23040 2014-05-13 10:33:24 less /etc/init.d/git-daemon
23041 2014-05-13 10:33:37 vi /etc/init.d/git-daemon
23042 2014-05-13 10:34:33 service git-daemon start
23043 2014-05-13 10:34:36 ps | grep git
23044 2014-05-13 10:35:16 vi /etc/default/git-daemon
23045 2014-05-13 10:36:06 less /etc/init.d/git-daemon
23046 2014-05-13 10:36:25 service git-daemon stop
23047 2014-05-13 10:36:27 service git-daemon start
23048 2014-05-13 10:37:04 cat /etc/default/git-daemon
23049 2014-05-13 10:37:44 ifconfig eth0
23050 2014-05-13 10:38:02 ifconfig eth0 | grep inet addr
23051 2014-05-13 10:38:07 ifconfig eth0 | grep 'inet addr:'
23052 2014-05-13 10:38:21 ifconfig eth0 | grep '20.13.5.'
23053 2014-05-13 10:38:45 git remote -v
23054 2014-05-13 10:40:19 ifconfig eth0 | grep '20.13.5.'
git remote set-url fairyin git://20.13.5.51/git/www.git