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--
Method 1
1. Use the following steps to set the gerrit service boot self-startup:
Sudo ln-snf / home/gerrit/review_site/bin/gerrit.sh / etc/init.d/gerrit.shsduo ln-snf / etc/init.d/gerrit.sh / etc/rc2.d/S90gerritsduo ln-snf / etc/init.d/gerrit.sh / etc/rc3.d/S90gerrit
two。 The service auto-startup script / etc/init.d/gerrit.sh needs to provide some configuration through the / etc/default/gerritcodereview (the declaration is uninstalled in the gerrit.sh script) file. The contents of the file are:
GERRIT_SITE=/home/gerrit/review_siteNO_START=0
3. If you can't start, you may need to check the permissions
Update-rc.d gerrit2 defaults
Method 2
1. When you install gerrit, there will be an installation directory
There is a bin/gerrit.sh file under it.
Copy this file to / etc/init.d and rename it gerrit
Then use the sysv-rc-conf tool, which can not be installed directly by apt-get install
Then execute sysv-rc-conf, find the line of gerrit, and I put 2-5 on X.
Then restart the system, and there are corresponding files under / etc/rc*.d. Here is the S20gerrit file.
two。 Then I usually set up a new user when installing gerrit, and I put the installation directory under the new user.
I didn't have write permission under my own user, so I gave that user chmod 777-R.
Then set the GERRIT_SITE in the / etc/init.d/gerrit script
Here, I change the value of GERRIT_SITE_1 to the absolute path GERRIT_SITE_1= "/ home/gerrit2/gerrit_application_directory".
Then restart, and the gerrit service has already been started.
The above Gerrit setup boot method is the editor to share with you all the content, I hope to give you a reference, but also hope that you support more.
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.