CentOS-7 vmware 安装过程
我当前的虚拟机是 vmware 15,用的镜像是centOs 7
CentOS-7-x86_64-DVD-1810.iso
确保你的虚拟机是通网的。
1、如果是新环境,没安装过gcc,那么先安装这个。
$ yum install -y gcc gcc-c++
安装完成。
2、我们需要下载东西,默认情况下,虚拟机环境是没有安装下载工具wget的。
$ yum -y install wget
安装完成
测试一下。ok了
3、安装PCRE库
到官网查看下载列表,找了个最新的
https://sourceforge.net/projects/pcre/files/pcre/
wget https://sourceforge.net/projects/pcre/files/pcre/8.43/pcre-8.43.tar.gz
$ wget https://sourceforge.net/projects/pcre/files/pcre/8.43/pcre-8.43.tar.gz
下载压缩包后解压,安装。
$ tar -zxvf pcre-8.33.tar.gz $ cd pcre-8.33 $ ./configure $ make && make install
4、安装perl
网址 https://www.cpan.org/src/
$ wget https://www.cpan.org/src/5.0/perl-5.30.1.tar.gz $ tar -zxvf perl-5.30.1.tar.gz $ cd perl-5.30.1 $ ./Configure -des -Dprefix=$HOME/localperl $ make && make install
5.安装SSL库
下载地址:https://www.openssl.org/source/
$ cd /usr/local/ $ wget http://www.openssl.org/source/openssl-1.0.1j.tar.gz $ tar -zxvf openssl-1.0.1j.tar.gz $ cd openssl-1.0.1j $ ./config $ make && make install
(安装ssl报错) [root@localhost openssl-1.1.1d]# ./config
Operating system: x86_64-whatever-linux2
You need Perl 5.
再安装ssl
6.安装zlib库存
$ cd /usr/local/
$ 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
7.安装nginx
$ cd /usr/local/
$ wget http://nginx.org/download/nginx-1.8.0.tar.gz
$ tar -zxvf nginx-1.8.0.tar.gz
$ cd nginx-1.8.0
$ ./configure
$ make && make install
8.启动nginx
/usr/local/nginx/sbin/nginx
ps -aux | grep 'nginx'
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· Linux系列:如何用 C#调用 C方法造成内存泄露
· AI与.NET技术实操系列(二):开始使用ML.NET
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?