In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
#! / bin/bash# download svnyum-y install subversion# Aliyun oss data wget-P / root https://babyrita.oss-cn-beijing.aliyuncs.com/lnmp/quyeweb/ziliao.zip# decompress data file unzip ziliao.zip# new svndata directory mkdir / home/svndata#svn server monitor default port 3690 svnserve-d-r / home/svndata# create svn warehouse svnadmin create / home/svndata/www# copy data to the appropriate location\ cp / Root/ziliao/passwd.txt / home/svndata/www/conf/passwd\ cp / root/ziliao/svnserve.txt / home/svndata/www/conf/svnserve.conf\ cp / root/ziliao/post-commit.txt / home/svndata/www/hooks/post-commit# hook file can execute chmod + x / home/svndata/www/hooks/post-commitcd / home/svndata/www/# to check out svn to local and to the root directory of the website-Automation-- avoid entering password svn Co svn://127.0.0.1/www-- username svn1113-- password svn123-- no-auth-cachesvn co svn://127.0.0.1/www / home/wwwroot/www-- username svn1113-- password svn123-- no-auth-cache# create users and user groups groupadd wwwuseradd-g www www# set the permissions chown-R www:www / home/wwwroot/www to which the website directory belongs
Additional knowledge: let's take a look at the linux shell script svn automatically updates the project and packages, releases, and backs up.
Here we first prepare a configuration file to save the svn address, destination path, user name and password
Configuration file name Q: toolConfig.properties
# svn address svnAddress= https://192.168.1.253/ [yourPath] # Local path (destination address) localDir=E:\ shelltest#svn username userName=jack#svn password password=123456
Corresponding shell script
#! / bin/bashsource. / toolConfig.propertiessvn_ip=$ {svnAddress} local_path=$ {localDir} upright name ${userName} pawnameplate ${password} svn co ${svn_ip} ${local_path}-- username ${u_name}-- password ${p_wd}
Summary
These are the details of Svn one-click installation of shell script under linxu. For more information about linux one-click installation of shell script, please pay attention to other related articles!
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.