LNMP安装

本文详细介绍了如何在Linux系统上安装Nginx、Mysql 5.7.23和PHP-7.3.5,包括相关库文件的安装步骤。
摘要由CSDN通过智能技术生成

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 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值