實用軟件:putty&WinScp
1.安裝JDK 文件為:jdk-8u161-linux-x64.rpm
????????1.第一步就是把文件上傳到服務(wù)器
????????2.rpm -ivh jdk-8u161-linux-x64.rpm 安裝JDK,一般在安裝以后,環(huán)境變量已經(jīng)配置完成

2.安裝數(shù)據(jù)庫
? ??????1、配置YUM源
? ? ? ? ? ? ? ? ? ?1.下載mysql源安裝包 ?wgethttp://dev.mysql.com/get/mysql57-community-release-el7-8.noarch.rpm
? ? ? ? ? ? ? ? ? ? 2. 安裝mysql源shell> yum localinstall mysql57-community-release-el7-8.noarch.rpm
? ? ? ? ? ? ? ? ? ? 3.檢查mysql源是否安裝成? ? yum repolist enabled| grep "mysql.*-community.*"

? ? ? ? ? ?2、安裝MySQL
? ??????????????????????yum install mysql-community-server
? ? ? ? ? ?3、啟動MySQL服務(wù)
?????????????????????????systemctl start mysqld
????????????????????????查看MySQL的啟動狀態(tài)
? ? ? ? ? ? ? ? ? ? ? ? ?systemctl status mysqld

????????4、開機(jī)啟動
? ? ? ? ? ? ? ? ?systemctl enable mysqld
? ? ? ? ? ? ? ? ?systemctl daemon-reload
? ? ? ? 5、修改root本地登錄密碼
? ? ? ? ? ? ? ? ? ? 在/var/log/mysqld.log文件中給root生成了一個默認(rèn)密碼。通過下面的方式找到root默認(rèn)密碼,然后登錄mysql進(jìn)行修改:
? ? ? ? ? ? ? ????? grep'temporary password'/var/log/mysqld.log
? ? ? ? ? ? ? ? ? ?

? ? ? ? ? ? ? ? ? ? 登錄:mysql -u root -p
? ? ? ? ? ? ? ? ? ? 修改密碼:set password for 'root'@'localhost'=password('****');
? ? ? ? ? ? ? ? ? ? 注意:mysql5.7默認(rèn)安裝了密碼安全檢查插件(validate_password),默認(rèn)密碼檢查策略要求密碼必須包含:大小寫字母、數(shù)字和特殊符號,并且長度不能少于8位。否則會提示ERROR 1819 (HY000): Your password does not satisfy the current policy requirements錯誤,如下圖所示:?
????????????????????通過msyql環(huán)境變量可以查看密碼策略的相關(guān)信息:
? ? ? ? ? ? ? ? ? ? show variables like'%password%';
? ? ? ? 6、添加遠(yuǎn)程登錄用戶
????????????????GRANT ALL PRIVILEGES ON *.* TO 'sjd'@'%' IDENTIFIED BY 'Sjd#199313' WITH GRANT? OPTION;
3.安裝redis
????????1.下載redis安裝包
? ??????????????wget http://download.redis.io/releases/redis-4.0.6.tar.gz
? ??????2:解壓壓縮包
????????????????????tar -zxvf?redis-4.0.6.tar.gz
? ? ? ?3:yum安裝gcc依賴
????????????????????yum install gcc
? ? ? ?4:跳轉(zhuǎn)到redis解壓目錄下
? ?????????????? ? cd redis-4.0.6
? ? ? ?5:編譯安裝
????????????????????make MALLOC=libc
? ??????????????????將/usr/local/redis-4.0.6/src目錄下的文件加到/usr/local/bin目錄
? ??????????????????cd src && make install
? ? ? ?6、以后臺進(jìn)程方式啟動redis
????????????????1修改redis.conf文件將
? ? ? ? ? ? ? ? ? ? daemonize no 修改為? ? ? ?daemonize yes
.? ? ? ? ? ? ? ??
4.安裝zookeeper,作用為搭建dubbo的時候必須的,文件為:zookeeper-3.4.10.tar.gz
????????1、創(chuàng)建 /usr/local/services/zookeeper 文件夾:
? ? ????????????????????mkdir -p /usr/local/services/zookeeper
? ? ? ?????2、進(jìn)入到 /usr/local/services/zookeeper 目錄中:
? ????????????????????? cd /usr/local/services/zookeeper
? ? ? ????3、下載 zookeeper-3.4.9.tar.gz:
????????????????????????wget?https://mirrors.tuna.tsinghua.edu.cn/apache/zookeeper/zookeeper-3.4.9/zookeeper-3.4.9.tar.gz
? ? ? ? ? ? 4、解壓縮 zookeeper-3.4.9.tar.gz:
? ????????????????????? tar -zxvf zookeeper-3.4.9.tar.gz
? ? ? ? ? ?5、進(jìn)入到 /usr/local/services/zookeeper/zookeeper-3.4.9/conf 目錄中:
? ? ????????????????????????????cd zookeeper-3.4.9/conf/
? ? ? ? ? ?6、復(fù)制 zoo_sample.cfg 文件的并命名為為 zoo.cfg:
? ? ????????????????????????cp zoo_sample.cfg zoo.cfg
? ? ? ? ? ? 7、用 vim 打開 zoo.cfg 文件并修改其內(nèi)容為如下:
? ????????????????????????????????? # The number of milliseconds of each tick
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # zookeeper 定義的基準(zhǔn)時間間隔,單位:毫秒
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?tickTime=2000
????????????????????????????????????# The number of ticks that the initial?
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? # synchronization phase can take
? ? ????????????????????????????????????initLimit=10
????????????????????????????????????# The number of ticks that can pass between?
? ????????????????????????????????? # sending a request and getting an acknowledgement
? ? ????????????????????????????????????syncLimit=5
? ?????????????????????????????????# the directory where the snapshot is stored.
????????????????????????????????????# do not use /tmp for storage, /tmp here is just?
? ? ????????????????????????????????# example sakes.
? ? ????????????????????????????????# dataDir=/tmp/zookeeper
? ? ????????????????????????????????# 數(shù)據(jù)文件夾
? ? ????????????????????????????????dataDir=/usr/local/services/zookeeper/zookeeper-3.4.9/data
? ? ????????????????????????????????# 日志文件夾
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? dataLogDir=/usr/local/services/zookeeper/zookeeper-3.4.9/logs
? ????????????????????????????????? # the port at which the clients will connect
? ? ????????????????????????????????# 客戶端訪問 zookeeper 的端口號
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? clientPort=2181
? ? ????????????????????????????????# the maximum number of client connections.
? ?????????????????????????????????# increase this if you need to handle more clients
? ? ????????????????????????????????#maxClientCnxns=60
????????????????????????????????????# Be sure to read the maintenance section of the?
? ????????????????????????????????? # administrator guide before turning on autopurge.
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ????#?http://zookeeper.apache.org/doc/current/zookeeperAdmin.html#sc_maintenance
? ????????????????????????????????????? # The number of snapshots to retain in dataDir
? ? ????????????????????????????????????#autopurge.snapRetainCount=3
? ? ? ? ? ? ? ? ? ?8、保存并關(guān)閉 zoo.cfg 文件:
? ? ? ? ? ? ? ? ? ? 9、進(jìn)入到 /usr/local/services/zookeeper/zookeeper-3.4.9/bin 目錄中:
? ? ????????????????????????????????????cd ../bin/
? ? ? ? ? ? ? ? ? ? 10、用 vim 打開 /etc/ 目錄下的配置文件 profile:
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? vim /etc/profile
? ? ????????????????????????????????????并在其尾部追加如下內(nèi)容:
? ? ????????????????????????????????????# idea - zookeeper-3.4.9 config start - 2016-09-08
? ? ????????????????????????????????????export ZOOKEEPER_HOME=/usr/local/services/zookeeper/zookeeper-3.4.9/
? ? ????????????????????????????????????export PATH=$ZOOKEEPER_HOME/bin:$PATH
? ? ????????????????????????????????????export PATH
???????????????????11、使 /etc/ 目錄下的 profile 文件即可生效:
? ? ????????????????????????????????????????source /etc/profile
???????????????????12、啟動 zookeeper 服務(wù):
? ? ????????????????????????????????????????zkServer.sh start
5.neo4j安裝
? ??????????wgethttp://debian.neo4j.org/neotechnology.gpg.key
????????????rpm --import neotechnology.gpg.key
????????????然后創(chuàng)建 /etc/yum.repos.d/neo4j.repo 文件:
????????????cat <? /etc/yum.repos.d/neo4j.repo
????????????[neo4j]
????????????name=Neo4j Yum Repo
????????????baseurl=http://yum.neo4j.org/stable
????????????enabled=1
????????????gpgcheck=1
????????????EOF
????????????最后使用yum安裝
????????????yum install neo4j
? ??????