In addition to Weibo, there is also WeChat
Please pay attention

WeChat public account
Shulou
2025-10-30 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains "how to install and deploy Docker". The content of the article is simple and clear, and it is easy to learn and understand. Please follow the editor's ideas to study and learn "how to install and deploy Docker".
Step 1: install Docker
Sudo yum update-y
Sudo yum install-y docker
Sudo service docker start
Sudo usermod-a-G docker ec2-user
Step 2: view and deploy the Docker NEO network image
Docker info # just a checkdocker pull cityofzion/neo-privatenetdocker run-- rm-d-- name neo-privatenet-- expose=20331-20334-- expose=30333-30336-p 20333-20336rm 20333-20336/tcp-p 30333-30336Vera 30333-30336/tcp cityofzion/neo-privatenet
Check to see if the mirror program is running. Docker ps
Step 3: add the port range 30331-30334 to the security group
Log in to the AWS console, Services > EC2. Click Security Groups under the NETWORK & SECURIT bar. Click the edit button of the security group in this example to add the following private network inbound direction rules:
* these rules will take effect immediately
Step 4: connect using neo-prompt
Open the local terminal and enter:
Ubuntusudo-icd source venv/bin/activate
Remember the public network IP mentioned in the previous article, fill it in here:
Np-prompt-p
Well, it's all done.
Extra command: restart the NEO blockchain network
According to past experience, due to server memory constraints, the mirror program needs to be restarted every week. You can do this by executing the following command:
Docker stop neo-privatenet
Then through NEO's CLI np-prompt (Ubuntu), enter the following command:
Rm-rf / root/.neopython/Chains/ Thank you for reading, the above is the content of "how to install and deploy Docker". After the study of this article, I believe you have a deeper understanding of how to install and deploy Docker, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
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.

The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope





About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.