• 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'

  • 相关阅读:
    @PathVariable和@RequestParam的区别,@SessionAttributes
    forward和redirect的区别
    JSP页面的静态包含和动态包含
    ConcurrentHashMap源码解析
    Jdk1.6 JUC源码解析(1)-atomic-AtomicXXX
    最小生成树
    tomcat启动项目内存溢出问题
    强引用,弱引用,4种Java引用浅解(涉及jvm垃圾回收)
    CXF 在WAS上报Unmarshalling Error的问题
    CXF处理Date类型的俩种方式
  • 原文地址:https://www.cnblogs.com/a393060727/p/12052089.html
Copyright © 2020-2023  润新知