System Environment: Centos 7
1. Installing the JDK
JDK Information: jdk-7u25-linux-x64.tar.gz
decompression: tar-zxvf jdk-7u25-linux-x64.tar.gz
configuration environment variable:
vi/etc/
profile Add information
#jdk
export java_home=/opt/jdk1.7.0_25
export path= $JAVA _home/bin: $PATH
Export classpath=.: $JAVA _home/lib/dt.jar: $JAVA _home/lib/tools.jar
2. Install Maven
Maven Info: apache-maven-3.3.9-bin.tar.gz
Configure environment variables:
vi/etc/profile
Add information
#maven
Export maven_home=/opt/apache-maven-3.1.1
Export path= $MAVEN _home/bin: $PATH
3. Install git
Yum install git #一路Y确认即可
check if
git -version is installed
The installation was successful.
4, Installation Nodejs
GCC
yum install gcc yum install gcc-c++ required before installing Nodejs
Next, install node
Node version: node-v6.11.0.tar.gz
Decompression: TAR-ZXVF node-v6.11.0.tar.gz
Switch directory: CD node-v6.11.0
Execution:./configure–prefix=/usr/local/node
Make-j2 #等待编译完成
Make install #安装
To configure environment variables:
VI /etc/profile
Add a configuration
#node环境变量配置
Export Node_home=/usr/local/node
export path= $NODE _home/bin: $PATH
export node_path= $NODE _home/lib/node_ Modules: $PATH
source /etc/profile
(1)
1) Set NPM installation path
[root@localhost node]# npm config set prefix "/usr/local/node/node_global"
[root@localhost node]# npm config set CAC He "/usr/local/node/node_cache"
2) Install N
NPM Install- g N
The installation path will be:
/usr/local/node/node_global/bin/n,/usr/local/node/node_global/lib/node_modules/n/bin/n
/usr/local/node /node_global/lib
Configuring environment Variables for n
VI /etc/profile
export path= $PATH:/usr/local/node/node_global/lib/node_modules/n/bin
Source / Etc/profile
Execute N Stable nodejs version #提示安装位置:
Write a picture description here
Do node-v view or previous version need to edit profile, update environment variable configuration
3) Install Yarn
Centos/fedora/rhel
In the CentOS, Fedora, and RHEL operating systems, you can install Yarn through our RPM package repositories.
wget Https://dl.yarnpkg.com/rpm/yarn.repo-O/etc/yum.repos.d/yarn.repo
If you do not have node. js installed, you should configure the Nodesource repository at the same time:
Curl–silent–location https://rpm.nodesource.com/setup_6.x | Bash-
Then execute:
Yum Install yarn
To view the installation:
4) Install Bower
# NPM Install-g Bower
Installation diameter:/usr/local/node/node_global/lib/node_modules/bower/bin perform bower–version display version information installation successful
There are some problems in the use of the process, the execution of the BOWER-HELP command, there will be a situation:
Bower Esudo cannot is run with sudo
Workaround: Execute echo ' {' Allow_root ': true} ' >/ROOT/.BOWERRC command
And then execute: bower-help
5. Download Zeppelin
Zeppelin Information: Zeppelin-0.7.2.tgz
Download: wget http://apache.fayea.com/zeppelin/zeppelin-0.7.2/zeppelin-0.7.2.tgz
#tar-zxvf zeppelin-0.7.2.tgz
#cd zeppelin-0.7.2
#cd zeppelin-web
#mvn Clean Package- Dskiptests --see below
Zeppelin-web can compile successfully, Web compilation need to rely on a lot, Grund, node, etc.
The above confirms that the Web compilation was successful.
Switch to the Zeppelin root directory
mvn clean package-dskiptests– start compiling, you can also follow your own needs to compile specific reference website
Note: A MAVEN memory overflow is encountered during the compilation process. Solution: Export maven_opts= "-xmx512m-xx:maxpermsize=128m"
Because of the need to download a lot of things during the compilation process, such as google-fonts, compile time takes a long time, I personally about 90 minutes. Please wait patiently.