In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/02 Report--
Software shelf architecture
Git clone https://github.com/pcdogyu/example-voting-app.git
Cd / home/centos/example-voting-app/vote
Docker build. -t voting-app
Docker images
Docker run-p 5000 purl 80 voting-app
Why didn't you respond? I'm sorry. I was wrong. Aws sg, add 5000 port rules.
There it is.
The log also shows the incoming data.
But clicking in made a mistake.
Check the log, redis.push post data failure Bird.
Redis error, let me start a redis
Docker run-d-name=redis redis
There is no local one.
Repeat the next one
Docker run-d-name=redis redis
Redis, get up.
Associate redis when you start app
Docker run-p 5000 80-- link redis:redis voting-app
The web page is normal.
Run a database
Docker run-d-name=db postgres:9.4
Downloading
Let's pack a worker and go to sleep.
Cd / home/centos/example-voting-app/worker
Docker build. -t worker-app
One night has passed. Postgres and voting app are packed.
Docker run-link redis:redis-link db:db worker-app
All four components are already running.
Build displays the app of the result
Cd / home/centos/example-voting-app/result
Docker build. -t result-app
Image under docker image
The result page is accessed using port 5001
Docker run-d-p 5001 80-- link db:db result-app
All five components are up.
Visit http://52.80.39.196:5001/
I was wrong. Add it to aws sg.
Refresh, we have a result.
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.