In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces Linux how to integrate Apache and SVN, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
1. Install APR-1.2.7 and APR-util-1.2.7
(download address: http://apr.apache.org/)
# tar zxvf apr-1.2.7.tar.gz
# cd apr-1.3.9
#. / configure
# make
# make install
# tar zxvf apr-util-1.2.7.tar.gz
# cd cd apr-util-1.3.9
#. / configure-with-apr=/usr/local/apr/
# make
# make install
2. Compile and install apache.
# tar zxvf httpd-2.2.3.tar.gz
# cd httpd-2.2.3
#. / configure-prefix=/opt/apache\
-- enable-dav\
-- enable-so\
-- enable-maintainer-mode\
-- with-apr=/usr/local/apr/bin/apr-1-config\
-- with-apr-util=/usr/local/apr/bin/apu-1-config
# make
# make install
Check whether the installation is successful
# cd / opt/apache/bin
#. / apachectl start
Enter http://192.168.1.104/ in the browser.
3. Install subversion-deps-1.6.1.tar.gz and subversion-1.6.1-tar.gz
# tar zxvfsubversion-deps-1.6.1.tar.gz
# tar zxvfsubversion-1.6.1.tar.gz
# cdsubversion-1.6.1
#. / configure-prefix=/opt/svn\
-- with-apxs=/opt/apache/bin/apxs\
-- with-apr=/usr/local/apr/\
-- with-apr-util=/usr/local/apr/
# make & & make install
4. Configure SVN in apache
# vi / opt/apache/conf/httpd.conf
① if you see the following two sentences, the installation is successful
LoadModuledav_svn_module modules/mod_dav_svn.so
LoadModuleauthz_svn_module modules/mod_authz_svn.so
If you have the following sentence, comment it out with #.
# LoadModulefoo_module modules/mod_foo.so
② defines the apache access svn configuration:
DAVsvn
# SVNPath / opt/svndata
SVNParentPath / opt/svn/bin/repository / / svn parent directory
/ / permission profile
AuthzSVNAccessFile
/ opt/svn/bin/repository/project/conf/authz
AuthType Basic / / connection type configuration
AuthName "Subversion repository" / / connection Mining Tip
/ / user profile
AuthUserFile / opt/svn/bin/repository/project/conf/passwd
Require valid-user / / what kind of authentication will be adopted?
#. / apachectl restart
5. Establish and import version library
# cd / opt/svn/bin
# mkdir. / repository
Create a warehouse
#. / svnadmin create. / repository/project
# chmod 755. / repository
Configure user files and permissions files
# cd. / repository/project/conf
Same configuration as apache / opt/svn/bin/repository/project/conf/passwd
# / opt/apache/bin/htpasswd-c\
/ opt/svn/bin/repository/project/conf/passwd huang (user name)
Same as apache configuration / opt/svn/bin/repository/project/conf/authz
# vi / opt/svn/bin/repository/project/conf/authz
Add the following configuration items:
# access to the root directory of the repository project
[project:/]
# user huang's access to the warehouse project
Huang=rw
# indicates the root directory of all warehouses
[/]
# indicates that all users have read permission
* = r
Export uses the following command
# / opt/svn/bin/svn checkout http://localhost:8888/svn/project
Import uses the following command
# / opt/svn/bin/svn import requires the path of the import file to be imported into the repository-m "comments"
Example:
# / opt/svn/bin/svn import\
/ root/svn file:///opt/svn/bin/repository/project\
-m "initial import"
Thank you for reading this article carefully. I hope the article "how Linux integrates Apache and SVN" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.