There are quite a lot of online network disks now. I won’t say much about the advantages of using network disks for online storage. The main thing is convenience, but if you’re not too tired, you can take a hard disk with you and go everywhere. I recently found out that a basic free network disk can be built on AWS, which is very interesting, so I thought about trying it out. On the one hand, I am familiar with the AWS service usage process, and on the other hand, I can try the following self-built network disk services. Is it convenient.
First of all, you must have an AWS account. If you don't have one, you can sign up through this link: AWS 12-month free trial
To log in to the account, first, we first select an overseas region of Amazon cloud that can be accessed quickly in China. Here we take Japan as an example. Switch the region to Japan in the upper right corner of the page.
Enter EC2 in the top search box location and select it.
Click the "Launch Instance" button on the web page.
Then operate the page again, enter ubuntu and press enter, the available operating systems will be displayed according to the conditions, and then follow the prompts to select the free plan that meets the conditions. I choose Ubuntu Server 20.04 here.
On the instance type selection page, we select t2.micro, and we see that this type is marked with "free trial". If the actual situation is different, just choose a free one. Click Next: Configure Instance Details.
On the configuration page, the most important point is not to tick the "Point Specification" checkbox. If it is ticked, it is likely to result in additional charges, and our free plan will be ruined.
On the Add Storage page, we changed the root volume size to 30GB, as the free tier offered by Amazon Cloud has a maximum of 30GB. Click Next: Add Labels.
There is nothing to say on the add label page, you can go directly to the next step, and you don't need to configure anything.
On the configuration security group page, you need to create a new security group, select the HTTP type, and if there is no other requirement, do not need to make any changes, 0.0.0.0/0, which means any IP can be accessed, and ::/0 after it means IPv6.
After continuing to the next step, click "Start", and then there will be a pop-up window interface. The pop-up window interface is used to create a key, which is used to log in to the instance. Follow the prompts to create and save. I choose to create a key here, the name is storage, enter the name and click download, and then start the new example after taking care of the key.
After the instance is created, there is no fixed IP, only a temporary IP. Next, we use VPC to assign a fixed IP. The specific operation is the same as the first step above, search for VPC, and then click the first option, it will jump Go to the VPC control panel. Select "Elastic IP" in the left menu item, then click "Assign Elastic IP Address" in the upper right corner, then you can get a fixed IP address, remember this IP address.
After allocating, click the IP address, enter the management page and click "Associate Elastic IP Address"
Then after going to the associated page, click the input box and select the corresponding value that pops up.
Next, install the NextCloud service on this instance, first open the specific instance page, click the "connect" button, you don't need to do any configuration to the connection page, continue to click the "connect" button, and a console interface will pop up.
At this point, the next operation is the normal console command operation.
Install NextCloud
sudo snap install nextcloud
Configure the user name and password. Here I configure the user name as storage
and the password as 123456
sudo nextcloud.manual-install storage 123456
Configure the elastic IP just assigned for access:
sudo nextcloud.occ config:system:set trusted_domains 1 --value=35.77.249.199
Then enter ' http://35.77.249.199 ' in the browser, I thought it was done, and then I found that I couldn't access it at all. I thought about it and found that there was a problem with the Japan I chose at the beginning, and I was a little confused in an instant, but it was difficult I can't live with my cleverness, so I tried a more scientific networking, and it worked. Then use the account password you just set to access, and you're done.
Then go to the setting center to download a client, and choose the download method according to your platform.
After installation, select "Log in to your Nextcloud" in the login option, then enter the accessible network disk address in the browser, and then automatically open the browser, and log in and authorize according to the steps.
Since my system is Windows, file management is available in the pop-up location in the lower right corner.
Although this free network disk has only 30G of space, it is quite convenient if it is used to store some documents or novels. In addition, the official also has a specific practical document address. If you are interested, you can also visit the official free network disk construction tutorial, —> Portal . In addition, if you want to get other AWS tutorials, you can refer to: More tutorials .
**粗体** _斜体_ [链接](http://example.com) `代码` - 列表 > 引用
。你还可以使用@
来通知其他用户。