锘??xml version="1.0" encoding="utf-8" standalone="yes"?> 棣栧厛寰楀畨瑁?Subversion 搴撳嚱鏁?/p>
鎵ц杞崲鍛戒護 娉ㄦ剰錛岃繖閲岃漿鎹㈢殑 SVN 鐩綍鍙兘鏄粨搴撶洰褰曡屼笉鏄伐浣滅洰褰?/p>
wget http://mirrors.hust.edu.cn/apache/subversion/subversion-1.8.8.tar.gz
tar xzf subversion-1.8.8.tar.bz2
cd subversion-1.8.8
subversion-1.8.8 aliang$ ./autogen.sh
buildcheck: checking installation...
buildcheck: autoconf not found.
You need autoconf version 2.59 or newer installed.
brew install autoconf
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/autoconf-2.69.mavericks.bottle.tar.gz
#################################################### 100.0%
==> Pouring autoconf-2.69.mavericks.bottle.tar.gz
馃嵑 /usr/local/Cellar/autoconf/2.69: 69 files, 2.0M
./autogen.sh
buildcheck: checking installation...
buildcheck: autoconf version 2.69 (ok)
buildcheck: autoheader version 2.69 (ok)
buildcheck: libtool not found.
You need libtool version 1.4 or newer installed
brew install libtool
Warning: A newer Command Line Tools release is available
Update them from Software Update in the App Store.
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/libtool-2.4.2.mavericks.bottle.2.tar.gz
##################################################### 100.0%
==> Pouring libtool-2.4.2.mavericks.bottle.2.tar.gz
==> Caveats
In order to prevent conflicts with Apple''s own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
馃嵑 /usr/local/Cellar/libtool/2.4.2: 66 files, 2.2M
./autogen.sh
buildcheck: checking installation...
buildcheck: autoconf version 2.69 (ok)
buildcheck: autoheader version 2.69 (ok)
buildcheck: libtool version 2.4.2 (ok)
Copying libtool helper: /usr/local/share/aclocal/libtool.m4
Copying libtool helper: /usr/local/share/aclocal/ltoptions.m4
Copying libtool helper: /usr/local/share/aclocal/ltsugar.m4
Copying libtool helper: /usr/local/share/aclocal/ltversion.m4
Copying libtool helper: /usr/local/share/aclocal/lt~obsolete.m4
Creating build-outputs.mk...
Creating svn_private_config.h.in...
Creating configure...
You can run ./configure now.
Running autogen.sh implies you are a maintainer. You may prefer
to run configure in one of the following ways:
./configure --enable-maintainer-mode
./configure --disable-shared
./configure --enable-maintainer-mode --disable-shared
./configure --disable-optimize --enable-debug
./configure CUSERFLAGS='--flags-for-C' CXXUSERFLAGS='--flags-for-C++'
Note: If you wish to run a Subversion HTTP server, you will need
Apache 2.x. See the INSTALL file for details.
brew install swig
==> Downloading http://downloads.sourceforge.net/project/swig/swig/swig-2.0.11/swig-2.0.11.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/swig/2.0.11
==> make
==> make install
馃嵑 /usr/local/Cellar/swig/2.0.11: 597 files, 6.2M, built in 10.1 minutes
./configure --with-swig=/usr/local/bin/swig
configure: Configuring Subversion 1.8.8
... ...
==================================================================
WARNING: You have chosen to compile Subversion with a different
compiler than the one used to compile Apache.
Current compiler: gcc
Apache's compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/OSX10.9.xctoolchain/usr/bin/cc
This could cause some problems.
==================================================================
... ...
make swig-py
make install
make check-swig-py
sudo make install-swig-py
sudo cp -r /usr/local/lib/svn-python/ /Library/Python/2.7/site-packages/
mkdir hgpath
cd hgpath
hg init
hg convert -s svn -d hg ${local_path} ./hgpath
]]>
瑙e帇鑷?D:\JavaSoft\git-1.7.7.1
澧炲姞緋葷粺鐜璺緞錛欴:\JavaSoft\git-1.7.7.1\bin;D:\JavaSoft\git-1.7.7.1\cmd;
璁劇疆緋葷粺灞炴э細
git config --global user.name "your.name" git config --global user.email git.mail.name@gmail.com
鍒涘緩瀵嗛挜錛?/p>
mkdir /.ssh
ssh-keygen -f D:\JavaSoft\git-1.7.7.1\.ssh\id_rsa -t rsa -C 'git.mail.name@gmail.com' -t rsa
澶嶅埗 id_rsa.pub 鐨勫唴瀹癸紝鍒癵ithub.com澧炲姞鍏挜錛岀劧鍚庣矘璐翠繚瀛樸?/p>
嫻嬭瘯錛歡it -v -T git@github.com
Hi your.name! You've successfully authenticated, but GitHub does not provide shell access.
CouchDB |
Runtime |
Build |
||||
Spidermonkey |
Erlang |
ICU |
cURL |
Automake |
Autoconf |
|
0.9.x |
==1.7 |
>=5.6.0 |
>=聽3.0 |
>=聽7.15.5 |
>=聽1.6.3 |
>=聽2.59 |
0.10.x |
>=1.7聽&&聽<=1.8.0 |
>=5.6.5 |
>=聽3.0 |
>=聽7.18.0 |
>=聽1.6.3 |
>=聽2.59 |
0.11.x |
>=1.7 |
>=5.6.5 |
>=聽3.0 |
>=聽7.18.0 |
>=聽1.6.3 |
>=聽2.59 |
1.0.2 |
>=1.7 |
>=5.6.5 |
>=聽3.0 |
>=聽7.18.0 |
>=聽1.6.3 |
>=聽2.59 |
Some of you may be familiar with the (not very user friendly) exception
message javax.net.ssl.SSLHandshakeException:
sun.security.validator.ValidatorException:
PKIX path building failed:
sun.security.provider.certpath.SunCertPathBuilderException:
unable to
find valid certification path to requested target
when trying to open an SSL connection to a host using JSSE. What this usually means is that the server is using a test certificate (possibly generated using keytool) rather than a certificate from a well known commercial Certification Authority such as Verisign or GoDaddy. Web browsers display warning dialogs in this case, but since JSSE cannot assume an interactive user is present it just throws an exception by default.
Certificate validation is a very important part of SSL security, but I am not writing this entry to explain the details. If you are interested, you can start by reading the Wikipedia blurb. I am writing this entry to show a simple way to talk to that host with the test certificate, if you really want to.
Basically, you want to add the server's certificate to the KeyStore with
your trusted certificates. There are any number of ways to achieve
that, but a simple solution is to compile and run the
attached
program as
java InstallCert hostname
, for example
What happened was that the program opened a connection to the specified host and started an SSL handshake. It printed the exception stack trace of the error that occured and shows you the certificates used by the server. Now it prompts you for the certificate you want to add to your trusted KeyStore. You should only do this if you are sure that this is the certificate of the trusted host you want to connect to. You may want to check the MD5 and SHA1 certificate fingerprints against a fingerprint generated on the server (e.g. using keytool) to make sure it is the correct certificate.
If you've changed your mind, enter 'q'. If you really want to add the certificate, enter '1'. (You could also add a CA certificate by entering a different certificate, but you usually don't want to do that'). Once you have made your choice, the program will print the following:
...
It displayed the complete certificate and then added it to a Java
KeyStore 'jssecacerts' in the current directory. To use it in your
program, either configure JSSE to use it as its trust store (as
explained in the
documentation)
or copy it into your $JAVA_HOME/jre/lib/security
directory. If you want all Java applications to recognize the
certificate as trusted and not just JSSE, you could also overwrite the cacerts
file in that directory.
After all that, JSSE will be able to complete a handshake with the host, which you can verify by running the program again:
璁劇疆鏈嶅姟鍣ㄧ鐨?JVM:JAVA_OPTS="-server -Xms3000m -Xmx3000m -Xss512k"
-server:涓瀹氳浣滀負絎竴涓弬鏁幫紝鍦ㄥ涓狢PU鏃舵ц兘浣?/p>
-Xms錛氬垵濮婬eap澶у皬錛屼嬌鐢ㄧ殑鏈灝忓唴瀛?/p>
-Xmx錛歫ava heap鏈澶у鹼紝浣跨敤鐨勬渶澶у唴瀛?/p>
涓婇潰涓や釜鍊間竴鑸緗負鍚屾牱鐨勫ぇ灝忋?/p>
-Xss錛氭瘡涓嚎紼嬬殑Stack澶у皬
-verbose:gc 鐜板疄鍨冨溇鏀墮泦淇℃伅
-Xloggc:gc.log 鎸囧畾鍨冨溇鏀墮泦鏃ュ織鏂囦歡
鍒氬垰浜嗚В鍒扮殑涓浜涘弬鏁幫紙寰呭疄璺墊祴璇曪級
-Xmn錛歽oung generation鐨刪eap澶у皬錛屼竴鑸緗負Xmx鐨?銆?鍒嗕箣涓
-XX:+UseParNewGC 錛氱緝鐭璵inor鏀墮泦鐨勬椂闂?/p>
-XX:+UseConcMarkSweepGC 錛氱緝鐭璵ajor鏀墮泦鐨勬椂闂?/p>
鎻愮ず錛氭閫夐」鍦℉eap Size 姣旇緝澶ц屼笖Major鏀墮泦鏃墮棿杈冮暱鐨勬儏鍐典笅浣跨敤鏇村悎閫?/p>
#SVN
LoadModule dav_svn_module modules/mod_dav_svn.so
LoadModule authz_svn_module modules/mod_authz_svn.so
<Location /svn>
DAV svn
SVNParentPath "E:/svnrepos"
</Location>
浣嗘槸浣跨敤鍚姩嫻嬭瘯涓鐩存湁閿欙紝榪斿洖
Syntax error on line 143 of C:\apache\conf\httpd.conf: API module structure 'dav_svn_module' in file C:\apache\modules\mod_dav_svn.so is garbled - perhaps this is not an Apache module DSO?
Apache could not be started
鍚庢潵鍐嶇湅璧勬枡錛屽ソ鍍忔槸SVN1.4.3鎻愪緵鐨剆o鏂囦歡鍙敮鎸丄PACHE2.0錛屽茍涓嶆敮鎸?.2鐗堟湰鐨勶紝闄ら潪閲嶆柊緙栬瘧銆傚ソ鍦ㄥ凡緇忔湁浜鴻В鍐充簡錛?a title="涓嬭澆" >涓嬭澆浜嗕竴涓敮鎸丄PACHE2.2鐨勶紝浣嗗嵈鏄疭VN1.3.2鐨勶紝姝婚┈褰撴椿椹尰浜嗭紝鏀懼埌SVN1.4涓眳鐒朵篃鍙互錛宧oho~~銆傛垜鏄妸鎵鏈夊拰SVN鏈夊叧鐨勬枃浠訛紙鍚姩鎬佽繛鎺ュ簱鏂囦歡錛夊叏閮ㄦ斁鍦ㄤ簡APACHE瀹夎鐩綍鐨剆vn鐩綍閲岋紝閰嶇疆鏂囦歡濡備笅錛?/p>
LoadModule dav_svn_module svn/mod_dav_svn_1.3.so
LoadModule authz_svn_module svn/mod_authz_svn_1.3.so
<Location /svn>
DAV svn
SVNParentPath "E:/svnrepos"
</Location>
API鍦板潃錛?http://www.tkk7.com/ideame/services/metaweblog.aspx
isOK銆倃onderful !