Linux
Installing and Configuring Zsh on CentOS 7
· β˜• 1 min read
1. Install zsh 1 sudo yum install -y zsh 2. Install oh-my-zsh 1 sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" It is recommended to set Zsh as the default shell. 3. Install Plugins 3.1 Install autojump 1 sudo yum install -y epel-release 1 sudo yum install -y autojump-zsh 3.2 Install zsh-autosuggestions 1 git clone git://github.

NFS Deployment and Mounting
· β˜• 1 min read
NFS (Network File System) is used to share directories over the network; once the client mounts them, they can be read and written like a local disk. This post covers deploying an NFS service on CentOS and Ubuntu, and how to mount a remote NFS directory on each system. 1.

CentOS Server Operations Practices
· β˜• 4 min read
Compiled from the “Development Tips” series, collecting common problems and solutions in CentOS server operations. 1. Upgrading the Docker Version Uninstall the old version of Docker 1 2 3 4 5 6 $yum remove docker \ docker-common \ container-selinux \ docker-selinux \ docker-engine \ docker-engine-selinux Images, containers, data, and networks stored in /var/lib/docker/ are all preserved.

A Few Things to Do After Installing CentOS
· β˜• 2 min read
1. Replacing the Repository Mirror First, back up the official repository. 1 mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup Download the new repository to /etc/yum.repos.d/ CentOS 5 1 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-5.repo CentOS 6 1 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo CentOS 7 1 wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo Generate the metadata cache. 1 yum makecache 2. Accessing NTFS File Systems The Linux kernel currently only supports reading Microsoft’s NTFS file system.

SELinux and iptables
· β˜• 4 min read
While working on servers recently, I ran into a few concepts I wasn’t clear about, so I looked up some references and organized them as follows. 1. The BLP Security Model The model divides the entities in an information system into two parts: Subject: the entity performing the operations, such