安装nginx
启动nginx
./nginx
vim /usr/local/nginx/conf/nginx.conf
upstream web-server{
ip_hash;
server 192.168.134.133;
server 192.168.134.134;
server
{
listen 80;
server_name localhost;
location /{
proxy_pass http://web-server;
root html;
index index.html index.htm;
配置两台web服务器
yum -y install httpd
vim /var/www/html/index.html