笔记:Centos Jdk Nginx 安装包安装命令

# 官方网址
# Nginx官网
http://nginx.org/


# 推荐:下载地址
http://nginx.org/download/nginx-1.20.2.tar.gz

# 安装Nginx
# 进入到usr中的src,把刚才下载的安装包拉进去
cd /usr/src/

# 解压安装包
tar zxvf nginx-1.6.2.tar.gz

# 进入安装包目录
cd nginx-1.6.2

# 编译安装
./configure --with-http_ssl_module

make && make install

# ./configure 报错
# ./configure: error: the HTTP rewrite module requires the PCRE library.
sudo yum install -y pcre pcre-devel

# ./configure: error: the HTTP gzip module requires the zlib library.
sudo yum -y install pcre-devel
sudo yum -y install openssl openssl-devel

# JDK 解压版 配置
tar zxvf jdk-8u131-linux-x64.tar.gz

# 进入安装包目录
cd jdk1.8.0_131/

# 进入环境变量配置
vim /etc/profile

# 将下面填写到配置最下方
export JAVA_HOME=/usr/local/jdk1.8.0_131
export CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jar
export PATH=$PATH:${JAVA_HOME}/bin

# 使环境变量生效
source /etc/profile

你可能感兴趣的:(笔记,java,nginx)