Completely LNMP environment for ONE KEY deploying.
- Support Multiple domains.
- Support HTTPS and HTTP/2.
- Support PHP7, Nginx and MySQL version latest.
- PHP source located in host.
- MySQL data directory in host.
- All conf files located in host.
- All log files located in host.
- Built-in PHP extensions install commands.
- Install
git
,docker
anddocker-compose
; - Clone all dlnmp directories and files from Github:
$ git clone https://github.com/yeszao/dlnmp.git
- Start docker container:
You may need use
$ docker-compose up
sudo
before this command. - Go to your browser and type
localhost
, you will see:Change
index.php
in./www/site1/
for more testing.
Demo include 2 sites:
To preview them, add following two lines to your hosts file (at /etc/hosts
on Linux and C:\Windows\System32\drivers\etc\hosts
on Windows):
127.0.0.1 www.site1.com
127.0.0.1 www.site2.com
Then you can visit from browser.