1、配置环境变量

vi /etc/profile

JAVA_HOME=/usr/local/usr_software/jdk_1.8.0.121
CLASSPATH=.:$JAVA_HOME/lib/tools.jar:$JAVA_HOME/lib/dt.jar
REDIS_HOME=/usr/local/usr_software/redis
MYSQL_HOME=/usr/local/usr_software/mysql_5.7.18
NGINX_HOME=/usr/local/usr_software/nginx-1.13.3
MAVEN_HOME=/usr/local/usr_software/maven_3.3.9
NODE_HOME=/usr/local/usr_software/node-v8.2.1
JENKINS_HOME=/usr/local/usr_workspace/jenkins_ws
export JENKINS_HOME

PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$REDIS_HOME/bin:$MYSQL_HOME/bin:$NODE_HOME/bin:$NGINX_HOME/sbin:$PATH
export PATH

2、软件安装路径

[root@ddqcs usr_software]# pwd
/usr/local/usr_software
[root@ddqcs usr_software]# ll
total 45936
drwxr-xr-x 9 root root 4096 Aug 14 15:45 apache-tomcat_7.0.42
drwxr-xr-x 8 root root 4096 Aug 14 15:44 jdk_1.8.0.121
drwxr-xr-x 6 root root 4096 Aug 17 13:50 maven_3.3.9
drwxr-xr-x 10 mysql mysql 4096 Aug 14 15:44 mysql_5.7.18
drwxr-xr-x 17 root root 4096 Nov 15 11:33 nginx-1.13.3
drwxrwxr-x 7 devops cmo 4096 Sep 22 11:38 node-v8.2.1
-rw-r--r-- 1 root root 11294156 Sep 22 11:35 node-v8.2.1-linux-x64.tar.xz
-rw-r--r-- 1 root root 30334692 Aug 21 17:34 node-v8.2.1.tar.gz
drwxr-xr-x 21 root root 4096 Oct 13 11:57 openssl-1.0.2l
-rw-r--r-- 1 root root 5365054 Oct 13 11:49 openssl-1.0.2l.tar.gz
drwxr-xr-x 3 root root 4096 Aug 14 15:45 redis
drwxr-xr-x 9 jenkins jenkins 4096 Aug 17 12:03 tomcat-jenkins
drwxr-xr-x 10 root root 4096 Aug 14 15:43 zookeeper-3.4.9

3、maven库+jenkins

[root@ddqcs usr_workspace]# pwd
/usr/local/usr_workspace
[root@ddqcs usr_workspace]# ll
total 20
drwxr-xr-x 2 root root 4096 Aug 22 18:47 dtds
drwxrwxr-x 14 root root 4096 Nov 20 10:47 jenkins_ws
drwxrwxr-x 35 root root 4096 Aug 18 15:22 mvn_repository
drwxr-xr-x 4 root root 4096 Sep 22 11:17 nodeModules
注意:maven安装路径下的settings.xml文件指定 的仓库是mvn_repository,没有单独写settings.xml文件

<localRepository>
/usr/local/usr_workspace/mvn_repository
</localRepository>

--可以不修改conf下settings.xml文件,copy一个出来,修改文件仓库路径

/usr/local/usr_application
[root@ddqcs usr_application]# ll
total 52
drwxrwxr-x 3 root JDev 4096 Nov 2 17:17 script
drwxrwxr-x 9 root JDev 4096 Aug 14 15:41 tomcat-11111
drwxrwxr-x 9 root JDev 4096 Aug 14 15:42 tomcat-22222
drwxrwxr-x 9 root JDev 4096 Aug 14 15:41 tomcat-33333

4、/usr/local目录

drwxr-xr-x 2 root root 4096 Aug 14 15:39 bin
drwxr-xr-x 3 root root 4096 Aug 14 15:39 doc
drwxr-xr-x 2 root root 4096 Aug 14 15:39 etc
drwxr-xr-x 2 root root 4096 Aug 14 15:39 games
drwxr-xr-x 2 root root 4096 Aug 14 15:39 include
drwxr-xr-x 3 root root 4096 Aug 14 15:39 lib
drwxr-xr-x 2 root root 4096 Aug 14 15:39 lib64
drwxr-xr-x 2 root root 4096 Aug 14 15:39 libexec
drwxr-xr-x 3 root root 4096 Aug 14 15:39 man
drwxr-xr-x 2 root root 4096 Jul 6 2018 manualPromoteAmount
drwxr-xr-x 6 root root 4096 Oct 13 11:58 openssl
drwxr-xr-x 2 root root 4096 Aug 14 15:39 sbin
drwxr-xr-x 8 root root 4096 Aug 14 15:39 share
drwxr-xr-x 4 root root 4096 Aug 14 15:39 src
drwxrwxr-x 15 root JDev 4096 Aug 15 16:12 usr_application
drwxrwxr-x 2 root JDev 4096 Nov 10 09:56 usr_script
drwxr-xr-x 12 root root 4096 Oct 13 11:51 usr_software
drwxrwxr-x 7 root root 4096 Sep 24 18:45 usr_workspace

05-11 14:03