Nginx安装
#安装相关库文件
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin
export PATH
yum -y install pcre-devel
yum -y install openssl openssl-devel
yum -y install gcc automake autoconf libtool make
yum -y install gcc gcc-c++ glibc
yum -y install libmcrypt-devel mhash-devel libxslt-devel \
libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel \
zlib zlib-devel bzip2 bzip2-devel \
ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel \
krb5 krb5-devel libidn libidn-devel openssl openssl-devel \
gd gd-devel freetype freetype-devel pcre-devel openssl-devel pcre
#nginx安装
wget http://nginx.org/download/nginx-1.17.8.tar.gz
groupadd www
useradd -g www www -s /sbin/nologin
mkdir -p /data/logs/nginx chmod 777 /data/logs/nginx
tar -zxvf nginx-1.17.8.tar.gz
cd nginx-1.17.8
./configure –prefix=/usr/local/nginx –user=www –group=www –with-http_realip_module –with-http_stub_status_module –with-http_ssl_module –with-http_gzip_static_module –with-ipv6 –with-http_sub_module –with-http_realip_module –with-ld-opt=-Wl,-rpath,/usr/local/luajit/lib –with-http_secure_link_module
make && make install
Mysql安装5.7.23二进制包安装脚本
#!/bin/bash
#set -e
# Source function library.
#. /etc/init.d/functions
yum -y install gcc gcc-c++ autoconf libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libxml2-devel zlib zlib-devel glibc glibc-devel glib2 glib2-devel bzip2 bzip2-devel ncurses ncurses-devel curl curl-devel e2fsprogs e2fsprogs-devel krb5 krb5-devel libidn libidn-devel openssl openssl-devel openldap openldap-devel nss_ldap openldap-clients openldap-servers
yum -y install perl-CPAN man bc perl-DBD-MySQL numactl.x86_64
yum -y install