因为lvs和nginx之间有冲突,版本不兼容,所以需要将搭建的lvs进程停止
[root@node11 ~]# service keepalived stop
启动的话是使用:
[root@node11 ~]# service keepalived start
想要查看状态:
[root@node11 ~]# ifconfig
这样也可以进行查看验证:
[root@node11 ~]# ipvsadm -ln
以上是将主机的杀死了,还有备机上边的,也需要去进行杀死
安装nginx
①上传解压
②进入文件,安装gcc pcre-devel openssl-devel
[root@node11 tengine-2.1.0]# yum install gcc pcre-devel openssl-devel -y
③执行命令:
[root@node11 tengine-2.1.0]# ./configure --prefix=/opt/sxt/nginx
④执行make && make install
[root@node11 tengine-2.1.0]# make && make install
上传nginx脚本文件
[root@node11 init.d]# cd
[root@node11 ~]# service nginx status
nginx is stopped
[root@node11 ~]# service nginx start
Starting nginx: [ OK ]
[root@node11 ~]# service nginx status
nginx (pid 4549 4547) is running...
[root@node11 ~]# chkconfig nginx on
[root@node11 ~]# chkconfig
查看nginx的进程:
[root@node11 ~]# ps -fe | grep nginx