Setup basic environment
Config Interface
Update the config like this
Restart services and flush the ip binded to interface before
How to bring interface up/down
Using
ip
Usage:
Example:
Using
ifconfig
Usage:
Example:
Update apt-get repo list and set timezone
Update HWE
Mainly for Ubuntu 16.04
You may use
lsb_release -a
to check the OS version first
Install docker and docker compose
Install Docker
Install Docker Compose
Install Space VIM
Trouble-shot
Login to the docker hub
This part will be conducted by Danny sudo docker login
Install htop
$ sudo apt-get install htop
Set ulimit
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
Set max virtual memory
set the parameters vm.max_map_count
in /etc/sysctl.conf echo vm.max_map_count=262144 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p
OR
run command (will be reset after reboot): sudo sysctl -w vm.max_map_count=262144
Setup the log rotation for docker
Configure the default logging driver This can be done by adding the following values in /etc/docker/daemon.json
. Create this file if it doesn’t exist.
Execute the following commands to reload the updated daemon.json. The new configuration will apply to all newly created containers after restart.
Last updated