配置jdk18很简单,下载jdk,只需要.tar.gz结尾的文件就行,https://download.oracle.com/java/18/latest/jdk-18_linux-x64_bin.tar.gz
然后只要在/etc/profile文件里加入下列代码就行
#这个java_home就是解压后,java文件夹地址 export JAVA_HOME=/usr/local/java/jdk1.8.0_121 export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar export PATH=$PATH:$JAVA_HOME/bin
然后现在都在用dnf来下载软件了。
先安装mysql
dnf install -y community-mysql-server
再启动
#启动 systemctl start mysqld #设为开机启动 systemctl enable mysqld #查看状态 systemctl status mysqld
在就开始设置mysql数据库。
#这句话是命令 [root@MiWiFi-R4CM-srv home]# mysql_secure_installation Securing the MySQL server deployment. Connecting to MySQL using a blank password. VALIDATE PASSWORD COMPONENT can be used to test passwords and improve security. It checks the strength of password and allows the users to set only those passwords which are secure enough. Would you like to setup VALIDATE PASSWORD compon