IP | 主机名 | 节点 |
---|
192.168.19.10 | nginx | Nginx节点 |
hostnamectl set-hostname nginx
bash
vi /etc/sysconfig/network-scripts/ifcfg-ens33
BOOTPROTO=static
ONBOOT=yes
IPADDR=192.168.19.10
NETWORK=255.255.255.0
GATEWAY=192.168.19.2
DNS1=8.8.8.8
DNS2=114.114.114.114
mv /etc/yum.repos.d/* /media
mount sr0 /mnt/
mkdir /opt/centos
cp -rvf /mnt/* /opt/centos/
umount /mnt/
systemctl stop firewalld
systemctl disable firewalld --now
sed -i "s/SELINUX=.*/SELINUX=disabled/g" /etc/selinux/config
[root@nginx~]
[root@nginx~]
[root@nginx~]
[root@nginx~]
将下载的 nginx-.12.2.tar.gz 压缩包上传至nginx 节点的usr/local/src/
[root@nginx~]
[root@nginx~]
[root@nginx~]
[root@nginx~]
./configure --prefix=/usr/local/nginx --with-http_dav_module \
--with-http_stub_status_module --with-http_addition_module \
--with-http_sub_module --with-http_flv_module --with-http_mp4_module \
--with-http_ssl_module --with-http_gzip_static_module --user=nginx --group=nginx
[root@nginx~]
[root@nginx~]
[root@nginx nginx-l.12.2]
[root@nginx nginx-l.12.2]
[root@nginx nginx-l.12.2]
[root@nginx nginx-1.12.2]