Install and configure nginx under CentOS to do load balancing for IIS servers
1. Environment preparation Install CentOS version: 6.2 Nginx version: 1.2.1 2. Introduction to common Linux commands If a worker wants to do a good job, he must first sharpen his tools. Before operating the Linux system, we must master some basic commands. I believe that people who have used DOS will not be too unfamiliar, basically including windows and linux. The command line mode is developed from the unix system. Here are just a few commands that will be involved in this blog. For more introduction, please refer to the relevant information. ls Used to display files and directories under a certain path For example: ls -a cd Enter a directory or return to the parent directory For example: cd /directory; cd .. ps show process information For example: ps -ef | grep nginx mkdir Create a directory For example: mkdir yourdir rmdir delete directory the rm Delete Files the kill end process For example: kill -TERM pid sends a term signal to the parent process, killing the process and the child process log out log out of the current session the reboot restart the system the yum Install related toolkits the setup Configure network and firewall settings the vi…