**
安装redis
** (1)安装mysql apt-get update apt-get install mysql-server (2)设置mysql service mysql stop vim /etc/mysql/mysql.conf.d/mysqld.cnf bind-address = 0.0.0.0 service mysql start (3)查看用户名和密码 sudo cat /etc/mysql/debian.cnf 使用账户和密码登录: mysql –h 127.0.0.1 –u debian-sys-maint –p (4) 创建新用户并且授权 use mysql mysql> create user ‘root’@’%’ identified by ‘123456’; mysql> grant all privileges on . to ‘root’@’%’; mysql> ALTER USER ‘root’@’%’ IDENTIFIED WITH mysql_native_password BY ‘123456’; mysql> flush privileges; (5)查看用户及权限 mysql> use mysql; mysql> select host, user, authentication_string, plugin from user; **
安装jdk
** 1、官网下载 jdk 2、解压 : tar xzvf jdk-8u11-linux-x64.tar.gz 3、修改配置文件 :vim /etc/profile export JAVA_HOME=/root/data/jdk1.8.0_11 export JRE_HOME=
J
A
V
A
H
O
M
E
{ JAVA_HOME }
JAVAH?OME/jre export CLASSPATH=.:
J
A
V
A
H
O
M
E
{ JAVA_HOME }
JAVAH?OME/lib:
J
R
E
H
O
M
E
{JRE_HOME}
JREH?OME/lib export PATH=.:
J
A
V
A
H
O
M
E
/
b
i
n
:
{JAVA_HOME}/bin:
JAVAH?OME/bin:PATH 4、使配置文件生效: source /etc/profile 5、查询是否安装成功:java -version
|