时间:2018年1月
关键字:debian、docker、安装

root@debian:~# curl -fsSL https://download.docker.com/linux/debian/gpg | apt-key add -
OK
root@debian:~# apt-key fingerprint 0EBFCD88
pub   4096R/0EBFCD88 2017-02-22
      Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88
uid                  Docker Release (CE deb) <docker@docker.com>
sub   4096R/F273FCD8 2017-02-22

root@debian:~# echo "deb https://download.docker.com/linux/debian/ jessie stable" > /etc/apt/sources.list.d/docker-ce.list
root@debian:~# apt-get install apt-transport-https
root@debian:~# apt-get update
root@debian:~# apt-get install docker-ce
...
Do you want to continue? [Y/n] y
...
root@debian:~# docker version
...

时间:2018年1月
关键字:debian、mariadb、安装

root@debian:~# apt-get install mariadb-server
root@debian:~# mysql -uroot -p
Enter password: #任意

Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 5
Server version: 10.1.26-MariaDB-0+deb9u1 Debian 9.1

Copyright (c) 2000, 2017, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> grant all privileges on *.* to 'root'@'%' identified by '123456';
MariaDB [(none)]> flush privileges;
MariaDB [(none)]> quit;
Bye
root@debian:~# vim /etc/mysql/mariadb.conf.d/50-server.cnf
...
#bind-address = 127.0.0.1
bind-address = 0.0.0.0
...
:wq
root@debian:~# systemctl restart mariadb