✏️ 更改路径
parent
e0bcef6b91
commit
e905a28f93
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
(2)解压到本地
|
(2)解压到本地
|
||||||
|
|
||||||
我个人喜欢存放在:`/opt/software/java`
|
我个人喜欢存放在:`/opt/java`
|
||||||
|
|
||||||
(3)设置环境变量
|
(3)设置环境变量
|
||||||
|
|
||||||
|
@ -24,7 +24,7 @@
|
||||||
|
|
||||||
```
|
```
|
||||||
# JDK 的根路径
|
# JDK 的根路径
|
||||||
export JAVA_HOME=/opt/software/java/jdk1.8.0_162
|
export JAVA_HOME=/opt/java/jdk1.8.0_162
|
||||||
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
|
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
|
||||||
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
|
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH
|
||||||
```
|
```
|
||||||
|
@ -61,4 +61,4 @@ yum -y install java-1.8.0-openjdk-devel-debug.x86_64
|
||||||
|
|
||||||
以上两种安装方式,我都写了脚本去执行:
|
以上两种安装方式,我都写了脚本去执行:
|
||||||
|
|
||||||
| [安装脚本](https://github.com/dunwu/linux/tree/master/codes/deploy/tool/jdk) |
|
| [安装脚本](https://github.com/dunwu/linux/tree/master/codes/deploy/tool/jdk) |
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
(2)解压到本地
|
(2)解压到本地
|
||||||
|
|
||||||
我个人喜欢存放在:`/opt/software/maven`
|
我个人喜欢存放在:`/opt/maven`
|
||||||
|
|
||||||
(3)设置环境变量
|
(3)设置环境变量
|
||||||
|
|
||||||
|
@ -20,7 +20,7 @@
|
||||||
|
|
||||||
```
|
```
|
||||||
# MAVEN 的根路径
|
# MAVEN 的根路径
|
||||||
export MAVEN_HOME=/opt/software/maven/apache-maven-3.5.2
|
export MAVEN_HOME=/opt/maven/apache-maven-3.5.2
|
||||||
export PATH=\$MAVEN_HOME/bin:\$PATH
|
export PATH=\$MAVEN_HOME/bin:\$PATH
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
|
|
||||||
我选择的是最新稳定版本 3.6.3:https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.3.tgz
|
我选择的是最新稳定版本 3.6.3:https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.3.tgz
|
||||||
|
|
||||||
我个人喜欢存放在:`/opt/software/mongodb`
|
我个人喜欢存放在:`/opt/mongodb`
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -O /opt/software/mongodb/mongodb-linux-x86_64-3.6.3.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.3.tgz
|
wget -O /opt/mongodb/mongodb-linux-x86_64-3.6.3.tgz https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-3.6.3.tgz
|
||||||
cd /opt/software/mongodb
|
cd /opt/mongodb
|
||||||
tar zxvf mongodb-linux-x86_64-3.6.3.tgz
|
tar zxvf mongodb-linux-x86_64-3.6.3.tgz
|
||||||
mv mongodb-linux-x86_64-3.6.3 mongodb-3.6.3
|
mv mongodb-linux-x86_64-3.6.3 mongodb-3.6.3
|
||||||
mkdir -p /data/db
|
mkdir -p /data/db
|
||||||
|
@ -25,14 +25,14 @@ mkdir -p /data/db
|
||||||
**启动 mongodb 服务**
|
**启动 mongodb 服务**
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/mongodb/mongodb-3.6.3/bin
|
cd /opt/mongodb/mongodb-3.6.3/bin
|
||||||
./mongod --dbpath=/data/db
|
./mongod --dbpath=/data/db
|
||||||
```
|
```
|
||||||
|
|
||||||
**启动 mongodb 客户端**
|
**启动 mongodb 客户端**
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/mongodb/mongodb-3.6.3/bin
|
cd /opt/mongodb/mongodb-3.6.3/bin
|
||||||
./mongo
|
./mongo
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -19,8 +19,8 @@ yum -y install make zlib zlib-devel gcc-c++ libtool openssl openssl-devel
|
||||||
我选择的是 8.35 版本:http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
|
我选择的是 8.35 版本:http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -O /opt/software/pcre/pcre-8.35.tar.gz http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
|
wget -O /opt/pcre/pcre-8.35.tar.gz http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
|
||||||
cd /opt/software/pcre
|
cd /opt/pcre
|
||||||
tar zxvf pcre-8.35.tar.gz
|
tar zxvf pcre-8.35.tar.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -29,7 +29,7 @@ tar zxvf pcre-8.35.tar.gz
|
||||||
执行以下命令:
|
执行以下命令:
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/pcre/pcre-8.35
|
cd /opt/pcre/pcre-8.35
|
||||||
./configure
|
./configure
|
||||||
make && make install
|
make && make install
|
||||||
```
|
```
|
||||||
|
@ -49,8 +49,8 @@ make && make install
|
||||||
我选择的是 1.12.2 版本:http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
|
我选择的是 1.12.2 版本:http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -O /opt/software/nginx/nginx-1.12.2.tar.gz http://nginx.org/download/nginx-1.12.2.tar.gz
|
wget -O /opt/nginx/nginx-1.12.2.tar.gz http://nginx.org/download/nginx-1.12.2.tar.gz
|
||||||
cd /opt/software/nginx
|
cd /opt/nginx
|
||||||
tar zxvf nginx-1.12.2.tar.gz
|
tar zxvf nginx-1.12.2.tar.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -59,8 +59,8 @@ tar zxvf nginx-1.12.2.tar.gz
|
||||||
执行以下命令:
|
执行以下命令:
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/nginx/nginx-1.12.2
|
cd /opt/nginx/nginx-1.12.2
|
||||||
./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=/opt/software/pcre/pcre-8.35
|
./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=/opt/pcre/pcre-8.35
|
||||||
```
|
```
|
||||||
|
|
||||||
(3)检验是否安装成功
|
(3)检验是否安装成功
|
||||||
|
@ -77,4 +77,4 @@ cd /opt/software/nginx/nginx-1.12.2
|
||||||
|
|
||||||
## 脚本
|
## 脚本
|
||||||
|
|
||||||
| [安装脚本](https://github.com/dunwu/linux/tree/master/codes/deploy/tool/nginx) |
|
| [安装脚本](https://github.com/dunwu/linux/tree/master/codes/deploy/tool/nginx) |
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
|
|
||||||
我选择的是最新稳定版本 4.0.8:http://download.redis.io/releases/redis-4.0.8.tar.gz
|
我选择的是最新稳定版本 4.0.8:http://download.redis.io/releases/redis-4.0.8.tar.gz
|
||||||
|
|
||||||
我个人喜欢存放在:`/opt/software/redis`
|
我个人喜欢存放在:`/opt/redis`
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -O /opt/software/redis/redis-4.0.8.tar.gz http://download.redis.io/releases/redis-4.0.8.tar.gz
|
wget -O /opt/redis/redis-4.0.8.tar.gz http://download.redis.io/releases/redis-4.0.8.tar.gz
|
||||||
cd /opt/software/redis
|
cd /opt/redis
|
||||||
tar zxvf redis-4.0.8.tar.gz
|
tar zxvf redis-4.0.8.tar.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -23,7 +23,7 @@ tar zxvf redis-4.0.8.tar.gz
|
||||||
执行以下命令:
|
执行以下命令:
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/redis/redis-4.0.8
|
cd /opt/redis/redis-4.0.8
|
||||||
make
|
make
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -32,14 +32,14 @@ make
|
||||||
**启动 redis 服务**
|
**启动 redis 服务**
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/redis/redis-4.0.8/src
|
cd /opt/redis/redis-4.0.8/src
|
||||||
./redis-server
|
./redis-server
|
||||||
```
|
```
|
||||||
|
|
||||||
**启动 redis 客户端**
|
**启动 redis 客户端**
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/redis/redis-4.0.8/src
|
cd /opt/redis/redis-4.0.8/src
|
||||||
./redis-cli
|
./redis-cli
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
|
@ -10,11 +10,11 @@
|
||||||
|
|
||||||
我选择的是最新稳定版本 8.5.28:http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.28.tar.gz
|
我选择的是最新稳定版本 8.5.28:http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.28.tar.gz
|
||||||
|
|
||||||
我个人喜欢存放在:`/opt/software/tomcat`
|
我个人喜欢存放在:`/opt/tomcat`
|
||||||
|
|
||||||
```
|
```
|
||||||
wget -O /opt/software/tomcat/apache-tomcat-8.5.28.tar.gz http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.28.tar.gz
|
wget -O /opt/tomcat/apache-tomcat-8.5.28.tar.gz http://mirrors.tuna.tsinghua.edu.cn/apache/tomcat/tomcat-8/v8.5.28/bin/apache-tomcat-8.5.28.tar.gz
|
||||||
cd /opt/software/tomcat
|
cd /opt/tomcat
|
||||||
tar zxvf apache-tomcat-8.5.28.tar.gz
|
tar zxvf apache-tomcat-8.5.28.tar.gz
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -23,14 +23,14 @@ tar zxvf apache-tomcat-8.5.28.tar.gz
|
||||||
**启动 tomcat 服务**
|
**启动 tomcat 服务**
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/tomcat/apache-tomcat-8.5.28/bin
|
cd /opt/tomcat/apache-tomcat-8.5.28/bin
|
||||||
./catalina.sh start
|
./catalina.sh start
|
||||||
```
|
```
|
||||||
|
|
||||||
**停止 tomcat 服务**
|
**停止 tomcat 服务**
|
||||||
|
|
||||||
```
|
```
|
||||||
cd /opt/software/tomcat/apache-tomcat-8.5.28/bin
|
cd /opt/tomcat/apache-tomcat-8.5.28/bin
|
||||||
./catalina.sh stop
|
./catalina.sh stop
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue