In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
How to open unlimited storage for Sonatype Nexus, many novices are not very clear about this, in order to help you solve this problem, the following editor will explain for you in detail, people with this need can come to learn, I hope you can gain something.
Two major pain points of Sonatype Nexus operation and maintenance
Using Sonatype Nexus as a private maven server, there are two inevitable operation and maintenance problems.
One is to avoid a single point of failure, to do service and data backup, such as: cross-room backup.
The other is that with the passage of time, the amount of data continues to increase, and the disk space will gradually become insufficient. Every time facing this problem, we have to apply for a server with a larger disk, and then do the service and data migration.
So I wonder if there is a good way to solve the storage problem.
The answer is not to use local storage, use object storage, object storage has unlimited storage space, so that you no longer have the trouble of insufficient disk space.
For Sonatype Nexus 3, is the object storage of other cloud vendors at home and abroad compatible except S3?
Sonatype Nexus 2 only supports local storage, Sonatype Nexus 3 starting from version 3.12, and blob store supports S3 in addition to local storage.
Among them, Amazon S3 is the object storage service provided by AWS. After years of development, S3 protocol has actually become the standard in the object storage industry.
At the same time, compared with Sonatype Nexus 2, the storage format of Sonatype Nexus 3 has also changed.
Other foreign cloud vendors have separate Sonatype Nexus 3 open source plug-ins on GitHub for Google Cloud and Azure Cloud object storage.
For domestic cloud vendors, there is no corresponding Sonatype Nexus 3 plug-in found on GitHub.
Then, if you want to use a domestic alternative, it must be compatible with AWS S3, or you need to write a Sonatype Nexus 3 plug-in.
In China, we have tried the object storage services of different cloud vendors: Tencent Cloud COS, Baidu Cloud BOS and Ali Cloud OSS.
Only by using Tencent Cloud's object storage COS can you successfully create a blob store on Sonatype Nexus3, and all others end in failure.
Sonatype Nexus 3 + Tencent Cloud COS enables unlimited storage
Use Tencent Cloud COS to create a blob store and verify that the basic features of Sonatype Nexus 3 are normal. The steps are as follows:
1. Start a Sonatype Nexus 3 environment using docker
The advent of docker simplifies the installation of applications, and it takes only two steps to install nexus3 using docker:
Mkdir ~ / Desktop/nexus-datadocker run-d-p 8081 name nexus- v / Desktop/nexus-data:/nexus-data sonatype/nexus32, create a new COS Bucket on Tencent Cloud
Log in to Tencent Cloud and create a Bucket in the console
3. Sonatype Nexus 3 create a new blob store
Select S3 for Type and fill in Name, Region, Bucket, Access Key ID, Secret Access Key, Endpoint URL and other information
Region needs to be entered manually, and do not drop down to select.
Access Key ID and Secret Access Key are obtained from Tencent Cloud API key Management (https://console.cloud.tencent.com/cam/capi).
Endpoint URL is: https://cos..myqcloud.com
5. Upload a component to the warehouse you just created, see if it can be uploaded successfully, and view the COS content
Upload a component to the warehouse you just created, which can be browsed normally on UI, and you can see the data statistics of blob store.
Is it helpful for you to read the above content? If you want to know more about the relevant knowledge or read more related articles, please follow the industry information channel, thank you for your support.
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.