OpenCSG与静安共话AI+|从前沿趋势到产业实践
2026/10/1 22:08:24
rpm -e mariadb-libs --nodepscd /usr/local mkdir mysql cd mysqlwget https://dev.mysql.com/get/Downloads/MySQL-8.0/mysql-8.0.16-2.el7.x86_64.rpm-bundle.tartar -xvf mysql-8.0.16-2.el7.x86_64.rpm-bundle.tarrpm -ivh mysql-community-common-8.0.16-2.el7.x86_64.rpm --nodeps --force rpm -ivh mysql-community-libs-8.0.16-2.el7.x86_64.rpm --nodeps --force rpm -ivh mysql-community-client-8.0.16-2.el7.x86_64.rpm --nodeps --force rpm -ivh mysql-community-server-8.0.16-2.el7.x86_64.rpm --nodeps --force首先进入相应的文件夹:
vim /etc/my.cnf增加一行命令:
lower_case_table_names = 1mysqld --initialize; chown mysql:mysql /var/lib/mysql -R; systemctl start mysqld.service;systemctl enable mysqld;查看初始密码并登录mysql
cat /var/log/mysqld.log | grep password修改密码
alter user 'root'@'localhost' identified by '123456'; flush privileges;alter user 'root'@'localhost' identified with mysql_native_password by '888888';create user 'root'@'%' identified with mysql_native_password by '888888'; grant all privileges on *.* to 'root'@'%' with grant option; flush privileges;yum install -y java-1.8.0-openjdk# 1. 安装 EPEL 源 yum install -y epel-release # 2. 安装 Nginx yum install -y nginx # 3. 启动 Nginx 并设置开机自启 systemctl start nginx systemctl enable nginx#下载redis yum install redis -y #启动并开启redis自启动 systemctl start redis systemctl enable redisnpm run build:prod4.2.1打开/usr/share/nginx/html,将dist文件夹的内容逐个复制到其中
4.2.2写入反向代理文件
编写代理文件/etc/nginx/conf.d/ruoyi-vue.conf
nohup java -jar springBoot_community0323-1.0-SNAPSHOT.jar > app.log 2>&1 &查看日志,表明启动成功之后,访问公网IP地址进行效果查看。