- wget, curl, nano editor
- git 1.9.1
- nginx 1.4.6
- php-fpm 7.0
- mysql 5.7.14-1
- nodejs 7.4.0
- npm 4.0.5
- mongoDB 3.4.1
docker run -tid --name="lemp" -v ~/xxx/sites:/etc/nginx/sites-enabled -v ~/xxx/html:/usr/share/nginx/html -v ~/xxx/mongodb:/var/lib/mongodb -p 80:80 -p 8000:8000 -p 50022:22 -p 27017:27017 wild0522/lemp /bin/bash
docker attach lemp
keypress ctrl+p, ctrl+q
ssh root@localhost -p 50022 (Password: root)
docker stop lemp; docker rm lemp;
- start
mongod --config /etc/mongod.conf &
- status, terminal
mongo localhost:27017
- stop
mongod --config /etc/mongod.conf --shutdown
- download zip (click me!)
- upzip, enter the folder
- docker-compose up -d
docker-compose exec lemp bash
exit
docker-compose stop lemp
docker-compose down