平台部署
一、安装JDK
step1.下载OracleJDKstep2. 解压step3. 加入环境变量
具体操作如下:
在环境变量末尾加入如下内容:
保存后重新加载环境变量,使生效:
二、安装MySQL
step1. 安装MySQL并配置step2. 创建数据库与表
由于在安装Ubuntu系统时,本人选择了安装lamp服务,所以MySQL已安装完成,仅需设置即可启用。
测试是否安装:
lemon@ubuntu:~$ mysql #输入mysql,如出现以下提示,说明已安装mysqlERROR 1045 (28000): Access denied for user 'lemon'@'localhost' (using password: NO)
如未安装:
如已安装:
lemon@ubuntu:~$ sudo mysql_secure_installation
两者都会进入MySQL设置过程,具体设置内容如下:
#1VALIDATE PASSWORD PLUGIN can be used to test passwords...Press y|Y for Yes, any other key for No: N(不启用弱密码检查)
#2Please set the password for root here...New password: (设置root密码)Re-enter new password: (重复输入)
#3By DEFault, a MySQL installation has an anonymous user,allowing anyone to log into MySQL without having to havea user account CREATEd for them...Remove anonymous users? (Press y|Y for Yes, any other key for No) : Y(不启用匿名用户)
#4Normally, root should only be allowed to connect from'localhost'. This ensures that someone cannot guess atthe root password from the Network...Disallow root login remotely? (Press y|Y for Yes, any other key for No) : Y (不允许root远程登陆)
#5By default, MySQL comes with a alt="Ubuntu18.04 linux系统安装JDK与Mysql的方法" src="/uploads/img/202305/9efe42d0065abb4470b83ca2b4534476.jpg">
这样就Ok了














发表评论