diff --git a/docs/deploy/tool/jdk/install-jdk.md b/docs/deploy/tool/jdk/install-jdk.md index 618312e..f7c89fb 100644 --- a/docs/deploy/tool/jdk/install-jdk.md +++ b/docs/deploy/tool/jdk/install-jdk.md @@ -16,7 +16,7 @@ (2)解压到本地 -我个人喜欢存放在:`/opt/software/java` +我个人喜欢存放在:`/opt/java` (3)设置环境变量 @@ -24,7 +24,7 @@ ``` # 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 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) | \ No newline at end of file +| [安装脚本](https://github.com/dunwu/linux/tree/master/codes/deploy/tool/jdk) | diff --git a/docs/deploy/tool/maven/install-maven.md b/docs/deploy/tool/maven/install-maven.md index 5dec1f7..98a47a8 100644 --- a/docs/deploy/tool/maven/install-maven.md +++ b/docs/deploy/tool/maven/install-maven.md @@ -12,7 +12,7 @@ (2)解压到本地 -我个人喜欢存放在:`/opt/software/maven` +我个人喜欢存放在:`/opt/maven` (3)设置环境变量 @@ -20,7 +20,7 @@ ``` # 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 ``` diff --git a/docs/deploy/tool/mongodb/install-mongodb.md b/docs/deploy/tool/mongodb/install-mongodb.md index 211b692..0fbe286 100644 --- a/docs/deploy/tool/mongodb/install-mongodb.md +++ b/docs/deploy/tool/mongodb/install-mongodb.md @@ -10,11 +10,11 @@ 我选择的是最新稳定版本 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 -cd /opt/software/mongodb +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/mongodb tar zxvf mongodb-linux-x86_64-3.6.3.tgz mv mongodb-linux-x86_64-3.6.3 mongodb-3.6.3 mkdir -p /data/db @@ -25,14 +25,14 @@ mkdir -p /data/db **启动 mongodb 服务** ``` -cd /opt/software/mongodb/mongodb-3.6.3/bin +cd /opt/mongodb/mongodb-3.6.3/bin ./mongod --dbpath=/data/db ``` **启动 mongodb 客户端** ``` -cd /opt/software/mongodb/mongodb-3.6.3/bin +cd /opt/mongodb/mongodb-3.6.3/bin ./mongo ``` diff --git a/docs/deploy/tool/nginx/install-nginx.md b/docs/deploy/tool/nginx/install-nginx.md index cbd9f0d..71b176e 100644 --- a/docs/deploy/tool/nginx/install-nginx.md +++ b/docs/deploy/tool/nginx/install-nginx.md @@ -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 ``` -wget -O /opt/software/pcre/pcre-8.35.tar.gz http://downloads.sourceforge.net/project/pcre/pcre/8.35/pcre-8.35.tar.gz -cd /opt/software/pcre +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/pcre 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 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 ``` -wget -O /opt/software/nginx/nginx-1.12.2.tar.gz http://nginx.org/download/nginx-1.12.2.tar.gz -cd /opt/software/nginx +wget -O /opt/nginx/nginx-1.12.2.tar.gz http://nginx.org/download/nginx-1.12.2.tar.gz +cd /opt/nginx 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 -./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=/opt/software/pcre/pcre-8.35 +cd /opt/nginx/nginx-1.12.2 +./configure --with-http_stub_status_module --with-http_ssl_module --with-pcre=/opt/pcre/pcre-8.35 ``` (3)检验是否安装成功 @@ -77,4 +77,4 @@ cd /opt/software/nginx/nginx-1.12.2 ## 脚本 -| [安装脚本](https://github.com/dunwu/linux/tree/master/codes/deploy/tool/nginx) | \ No newline at end of file +| [安装脚本](https://github.com/dunwu/linux/tree/master/codes/deploy/tool/nginx) | diff --git a/docs/deploy/tool/redis/install-redis.md b/docs/deploy/tool/redis/install-redis.md index d6aecd4..71910b8 100644 --- a/docs/deploy/tool/redis/install-redis.md +++ b/docs/deploy/tool/redis/install-redis.md @@ -10,11 +10,11 @@ 我选择的是最新稳定版本 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 -cd /opt/software/redis +wget -O /opt/redis/redis-4.0.8.tar.gz http://download.redis.io/releases/redis-4.0.8.tar.gz +cd /opt/redis 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 ``` @@ -32,14 +32,14 @@ make **启动 redis 服务** ``` -cd /opt/software/redis/redis-4.0.8/src +cd /opt/redis/redis-4.0.8/src ./redis-server ``` **启动 redis 客户端** ``` -cd /opt/software/redis/redis-4.0.8/src +cd /opt/redis/redis-4.0.8/src ./redis-cli ``` diff --git a/docs/deploy/tool/tomcat/install-tomcat.md b/docs/deploy/tool/tomcat/install-tomcat.md index e342f89..91a6cd0 100644 --- a/docs/deploy/tool/tomcat/install-tomcat.md +++ b/docs/deploy/tool/tomcat/install-tomcat.md @@ -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 -我个人喜欢存放在:`/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 -cd /opt/software/tomcat +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/tomcat tar zxvf apache-tomcat-8.5.28.tar.gz ``` @@ -23,14 +23,14 @@ tar zxvf apache-tomcat-8.5.28.tar.gz **启动 tomcat 服务** ``` -cd /opt/software/tomcat/apache-tomcat-8.5.28/bin +cd /opt/tomcat/apache-tomcat-8.5.28/bin ./catalina.sh start ``` **停止 tomcat 服务** ``` -cd /opt/software/tomcat/apache-tomcat-8.5.28/bin +cd /opt/tomcat/apache-tomcat-8.5.28/bin ./catalina.sh stop ```