Git Product home page Git Product logo

docker-lnmp's Introduction

start

lnmp-ubuntu:latest

Version:

  • lnmp 1.6 lnmp.org
  • MySQL 5.5.62 dong@1988
  • php 7.1.30
  • nginx/1.16.1

Useage:

cd $HOME/data;
git clone https://github.com/westeast/docker-lnmp;

#运行容器
docker run -dit \
-p 8001:80 -p 443:443 -p 3306:3306 \
--privileged=true \
-v /Users/likenan/git:/code \
-v /tmp/lnmplogs:/home/wwwlogs \
-v $HOME/data/docker-lnmp/mysql/data:/usr/local/mysql/data \
-v $HOME/data/docker-lnmp/mysql/var:/usr/local/mysql/var \
-v $HOME/data/docker-lnmp/nginx_conf:/usr/local/nginx/conf \
-w /code \
--name=lnmp  westeast/lnmp-ubuntu:latest /root/start_lnmp.sh

然后浏览打开 http://127.0.0.1:8001 可以看到lnmp

#用name进入进入容器
docker exec -i -t lnmp /bin/bash
lnmp start 运行所有lnmp软件 
lnmp status 查看各软件 的运行状态

#关闭及再次启动容器
docker stop lnmp 
docker start lnmp 

lnmp-ubuntu:init

ubuntu 16.04

  • 安装 了vim
  • apt的源设置成国内清华的源

lnmp-ubuntu:brpc

ubuntu 16.04

  • baidu AnyQ
  • brpc
  • paddle
  • for learn c/c++ deep/machine learning
  • protobuff3 gflag leveldb

FAQ

  1. 如果docker 进入bash后,lnmp start启动不了mysql 可执行下面的命令
/usr/local/mysql/bin/mysqld  --initialize   初始化下mysql
/usr/local/mysql/bin/mysqld --initialize --user=root
/usr/local/mysql/bin/mysqld --initialize --user=mysql  
#重启容器  docker stop lnmp / docker start lnmp`
#进入容器 docker exec -it lnmp /bin/bash   lnmp mysql start
如果 还不行就重启容器后再试下,目前没有发现mysql 在docker中偶现启动出错是哪里的问题。。。(如果不行可重复以上几步:使用lnmp mysql start 如果能正常启动之后就一切正常了)
  1. mysql root password:
dong@1988

docker-lnmp's People

Contributors

westeast avatar

Watchers

James Cloos avatar  avatar

Forkers

iii80

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.