Docker
apt-get update
apt install apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | apt-key add -
The line must be added to the file: /etc/apt/sources.list
deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable
apt install docker-ce
apt-get update
docker version
systemctl status docker
docker run hello-world
apt-get install docker-ce docker-ce-cli containerd.io
Portainer:
docker pull portainer/portainer
docker volume create portainer_data
docker run -d -p 9000:9000 --name docker-portainer --restart=always -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer
oldiy/music-player-docker
docker pull oldiy/music-player-docker
docker run -d --name music -p 264:264 -v /music:/var/www/html/cache oldiy/music-player-docker
oldiy/youtube-dl-webui
docker pull oldiy/youtube-dl-webui
docker run -d --name youtube-dl -p 1080:80 oldiy/youtube-dl-webui:latest
LNMP
docker pull 2233466866/lnmp
docker run -dit -p 80:80 -p 443:443 -p 3306:3306 -v /www/html:/www -v /config/mysql:/data/mysql -v /config/my.cnf:/etc/my.cnf -v /config/nginx.conf:/usr/local/nginx/conf/nginx.conf -v /sys/fs/cgroup:/sys/fs/cgroup:ro --privileged=true --name=lnmp 2233466866/lnmp
(Default password: cat /var/log/mysqld.log|grep 'A temporary password')
initialize:
Mysql的密码(默认并未重置密码和初始化)
password=cat /var/log/mysqld.log|grep 'A temporary password'
password=${password:91}
echo -e "${password}\n${password}n${password}nnnynynynyn"
以上三条命令的输出为以下命令的输入
mysql_secure_installation
配置文件路径(Config file path)
Nginx
/usr/local/nginx/conf/nginx.conf
MySQL
/etc/my.cnf
PHP
/usr/local/php7/lib/php.ini
/usr/local/php7/etc/php-fpm.conf
/usr/local/php7/etc/php-fpm.d/www.conf