In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Usually, we take up a lot of disk space when we use jenkins pull code to package. Coincidentally, the default working directory of jenkins is in the / root directory, and the normal server / root directory is 50G, so there will be insufficient disks. There are also many solutions on the Internet. I personally find it troublesome to modify the jenkins environment variables and modify the variables in the tomcat startup file. Sometimes the service cannot be started after modifying the environment variables. As a rookie who has peeped into the true meaning of the operation and maintenance staff, he thinks: it can also solve the problem, and the simplest insurance method is king. Let's talk about the solution:
The default working path for jenknis is under / root/.jenkins, and you can also see the current jenkins working directory on the page:
Click system Management on the main page and click system configuration:
Two commands solve the problem: we just need to move the / root/.jenkins directory to the data directory, and then create a soft connection under the / root/.jenkins directory to ok. It's as simple as this, as follows:
# move .jenknis directory: mv / root/.jenkins/ / opt/install_software/
Check to see if the move was successful:
# create a soft connection (be sure to write the full path of the soft connection): ln-s / opt/install_software/.jenkins/ / root/.jenkins/
Check to see if the soft connection was created successfully:
Enter the directory to see if there are any exceptions. The following is obviously a success:
View disk space:
Restart jenkins, and the project is complete! It's as simple as that, for example, the data directory of the mysql database yum installation will be under / var, which can be solved in this way, convenient, efficient and risk-free.
For the installation and use of jenkins, please refer to:
Https://blog.51cto.com/13859393/2166141
Documentation for offline installation of jenknins components:
Https://blog.51cto.com/13859393/2462457
-
Where there is a will, there is a way, burning down the bridges, the hundred and two Qin Guan will eventually belong to Chu.
If you live up to your painstaking efforts, you can swallow Wu with three thousand 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.