Notes on Distributed Systems for Young Bloods - 分布式系统忠告

分布式系统忠告 Notes on Distributed Systems for Young Bloods January 14, 2013 08:15:00 AM PST I’ve been thinking about the lessons distributed systems engineers learn on the job. A great deal of our instruction is through scars made by mistakes made in production traffic. These scars are useful reminders, sure, but it’d be better to have more engineers with

Change docker image mirror service

this change for china mainland docker users. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 # create docker user config dir sudo mkdir -p /etc/docker # touch docker config file sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": [ "https://1nj0zren.mirror.aliyuncs.com", "https://docker.mirrors.ustc.edu.cn", "http://f1361db2.m.daocloud.io", "https://registry.docker-cn.com" ] } EOF # reload and restart docker sudo systemctl daemon-reload sudo systemctl restart docker

Docker rootless

docker office rootless doc rootless principle 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 # using office rootless shell script curl -sSL https://get.docker.com/rootless | sh # generally will be notice create `/etc/subuid` & `/etc/subgid` sudo touch /etc/subuid sudo touch /etc/subgid # edit touch file echo "`whoami`:`id -u`:65536" >> /etc/subuid echo "`whoami`:`id -u`:65536" >> /etc/subgid # reusing

In manjaro linux to install mysql 8.*

in manjaro linux ,install mysql is so eazy!! follow down step by step. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 # arch linux auto install mysql sudo pacman -S mysql # random password sudo mysqld --initialize --user=mysql --basedir=/usr --datadir=/var/lib/mysql # empty password sudo mysqld --initialize-insecure --user=mysql --basedir=/usr --datadir=/var/lib/mysql # auto start service sudo systemctl enable mysqld.service sudo systemctl daemon-reload