重庆分公司,新征程启航

为企业提供网站建设、域名注册、服务器等服务

Ubuntu+nginx+php+mysql的安装步骤

本篇内容主要讲解“Ubuntu+nginx+php+MySQL的安装步骤”,感兴趣的朋友不妨来看看。本文介绍的方法操作简单快捷,实用性强。下面就让小编来带大家学习“Ubuntu+nginx+php+mysql的安装步骤”吧!

创新互联公司成都网站建设按需定制,是成都网站营销推广公司,为三维植被网提供网站建设服务,有成熟的网站定制合作流程,提供网站定制设计服务:原型图制作、网站创意设计、前端HTML5制作、后台程序开发等。成都网站维护热线:18982081108

1.升级 

sudo apt-get update
sudo apt-get upgrade

2.安装前置环境

sudo apt-get install gcc g++
sudo apt-get install build-essential
sudo apt-get install libtool

3.安装pcre(重写),zlib(gzip)

wget https://ftp.pcre.org/pub/pcre/pcre-8.00.tar.gz
tar -zxvf pcre-8.00.tar.gz
cd pcre-8.00
./configure
make && make install

wget http://zlib.net/zlib-1.2.11.tar.gz
tar -zxvf zlib-1.2.11.tar.gz
cd zlib-1.2.11
./configure
make && make install

4.安装openssl

wget http://distfiles.macports.org/openssl/openssl-1.0.2s.tar.gz
tar -zxvf openssl-1.0.2s.tar.gz
cd openssl-1.0.2s.tar.gz
./configure
make && make install

5.安装nginx

wget http://nginx.org/download/nginx-1.16.0.tar.gz
tar -zxvf nginx-1.16.0.tar.gz
cd nginx-1.16.0
./configure --prefix=/usr/local/nginx
make && make install

6.安装php

sudo apt-get install php

7.安装mysql

sudo apt-get install mysql-server
sudo apt-get install mysql-client

到此,相信大家对“Ubuntu+nginx+php+mysql的安装步骤”有了更深的了解,不妨来实际操作一番吧!这里是创新互联网站,更多相关内容可以进入相关频道进行查询,关注我们,继续学习!


网页题目:Ubuntu+nginx+php+mysql的安装步骤
网页网址:http://cqcxhl.com/article/ihjsih.html

其他资讯

在线咨询
服务热线
服务热线:028-86922220
TOP