Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

Detailed explanation of Svn one-click installation of shell script under linxu

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.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report