{"id":107,"date":"2024-03-10T21:29:00","date_gmt":"2024-03-10T13:29:00","guid":{"rendered":"https:\/\/www.xueyaa.top\/?p=107"},"modified":"2026-03-10T21:40:27","modified_gmt":"2026-03-10T13:40:27","slug":"%e6%89%8b%e5%8a%a8%e9%83%a8%e7%bd%b2%e5%8d%95%e4%bd%93%e8%8b%a5%e4%be%9d%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.xueyaa.top\/?p=107","title":{"rendered":"\u624b\u52a8\u90e8\u7f72\u5355\u4f53\u82e5\u4f9d\u670d\u52a1"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"MQxA5\">1.1\u82e5\u4f9d\u9879\u76ee\u4ecb\u7ecd<\/h2>\n\n\n\n<pre id=\"UJmmw\" class=\"wp-block-code\"><code>\u82e5\u4f9d\u662f\u4e00\u6b3e\u5f00\u6e90\u7684\u540e\u53f0\u7ba1\u7406\u7cfb\u7edf\uff0c\u53ef\u4ee5\u7528\u4e8e\u6240\u6709\u7684Web\u5e94\u7528\u7a0b\u5e8f\uff0c\u5982\u7f51\u7ad9\u7ba1\u7406\u540e\u53f0\uff0c\u7f51\u7ad9\u4f1a\u5458\u4e2d\u5fc3\uff0cCMS\uff0cCRM\uff0cOA\u3002\n\n\u6240\u6709\u524d\u7aef\u540e\u53f0\u4ee3\u7801\u5c01\u88c5\u8fc7\u540e\u5341\u5206\u7cbe\u7b80\u6613\u4e0a\u624b\uff0c\u51fa\u9519\u6982\u7387\u4f4e\u3002\u540c\u65f6\u652f\u6301\u79fb\u52a8\u5ba2\u6237\u7aef\u8bbf\u95ee\u3002\u7cfb\u7edf\u4f1a\u9646\u7eed\u66f4\u65b0\u4e00\u4e9b\u5b9e\u7528\u529f\u80fd\u3002\n\n\u82e5\u4f9d\u662f\u4e00\u5957\u5168\u90e8\u5f00\u6e90\u7684\u5feb\u901f\u5f00\u53d1\u5e73\u53f0\uff0c\u6beb\u65e0\u4fdd\u7559\u7ed9\u4e2a\u4eba\u53ca\u4f01\u4e1a\u514d\u8d39\u4f7f\u7528\u3002\n\n\n\u5b98\u7f51\u94fe\u63a5:\n\thttps:&#47;&#47;ruoyi.vip\/\n\t\ngitee\u5730\u5740:\n\thttps:\/\/gitee.com\/y_project\/RuoYi\n\t\n\u90e8\u7f72\u6587\u6863:\n\thttps:\/\/doc.ruoyi.vip\/ruoyi\/<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"KHGpH\">1.2\u5b89\u88c5jdk\u73af\u5883<\/h2>\n\n\n\n<pre id=\"QsYBW\" class=\"wp-block-code\"><code>\t1.\u4e0b\u8f7djdk\n&#91;root@harbor250.oldboyedu.com ~]# wget http:\/\/192.168.21.253\/Resources\/Kubernetes\/Project\/DevOps\/Jenkins\/jdk-17_linux-x64_bin.tar.gz\n\n\t2.\u89e3\u538b\u8f6f\u4ef6\u5305\n&#91;root@harbor250.oldboyedu.com ~]# tar xf jdk-17_linux-x64_bin.tar.gz -C \/usr\/local\/\n\n\t3.\u914d\u7f6e\u73af\u5883\u53d8\u91cf\n&#91;root@harbor250.oldboyedu.com ~]# cat \/etc\/profile.d\/jdk.sh\n#!\/bin\/bash\n\nexport JAVA_HOME=\/usr\/local\/jdk-17.0.8\nexport PATH=$PATH:$JAVA_HOME\/bin\n&#91;root@harbor250.oldboyedu.com ~]# \n\n\t4.\u52a0\u8f7d\u73af\u5883\u53d8\u91cf\n&#91;root@harbor250.oldboyedu.com ~]# source  \/etc\/profile.d\/jdk.sh\n&#91;root@harbor250.oldboyedu.com ~]# \n\n\t5.\u6d4b\u8bd5\u9a8c\u8bc1\n&#91;root@harbor250.oldboyedu.com ~]# java --version\njava 17.0.8 2023-07-18 LTS\nJava(TM) SE Runtime Environment (build 17.0.8+9-LTS-211)\nJava HotSpot(TM) 64-Bit Server VM (build 17.0.8+9-LTS-211, mixed mode, sharing)<\/code><\/pre>\n\n\n\n<pre id=\"JLVCl\" class=\"wp-block-code\"><code>#\/etc\/profile.d\/jdk.sh \u662f\u4e00\u4e2a\u7cfb\u7edf\u7ea7\u7684Java\u73af\u5883\u53d8\u91cf\u914d\u7f6e\u6587\u4ef6\u3002\nbash\n#!\/bin\/bash                     # \u6307\u5b9a\u811a\u672c\u7528bash\u89e3\u91ca\u5668\u6267\u884c\nexport JAVA_HOME=\/usr\/local\/jdk-17.0.8  # \u8bbe\u7f6eJAVA_HOME\u73af\u5883\u53d8\u91cf\nexport PATH=$PATH:$JAVA_HOME\/bin       # \u5c06Java\u7684bin\u76ee\u5f55\u6dfb\u52a0\u5230PATH\u4e2d\n\nJAVA_HOME\u4f5c\u7528\uff1a\u544a\u8bc9\u7cfb\u7edfJava \u88c5\u5728\u54ea\u91cc\n\u8def\u5f84\uff1aJDK 17.0.8 \u5b89\u88c5\u5728 \/usr\/local\/jdk-17.0.8\/\n  \u5f88\u591a Java \u5e94\u7528\u9700\u8981\u77e5\u9053 JAVA_HOME \u624d\u80fd\u8fd0\u884c\n  \u5f00\u53d1\u5de5\u5177\uff08\u5982 Maven\u3001Gradle\uff09\u9700\u8981\u5b83\u6765\u7f16\u8bd1\u9879\u76ee\n  Tomcat\u3001Jenkins \u7b49\u4e2d\u95f4\u4ef6\u9700\u8981\u5b83\nPATH\u4f5c\u7528\n  $PATH\uff1a\u5f53\u524d\u5df2\u6709\u7684PATH\u503c\n  $JAVA_HOME\/bin\uff1aJava\u7684\u53ef\u6267\u884c\u6587\u4ef6\u76ee\u5f55\n  :\u662fLinux \u4e2d PATH \u7684\u5206\u9694\u7b26\n  \u6548\u679c\uff1a\u53ef\u4ee5\u5728\u4efb\u610f\u76ee\u5f55\u76f4\u63a5\u8fd0\u884cjava\u3001javac \u7b49\u547d\u4ee4\n\n\u8fd9\u4e2a\u76ee\u5f55\u7684\u7279\u70b9\uff1a\n  \u7cfb\u7edf\u542f\u52a8\u65f6\u81ea\u52a8\u52a0\u8f7d\uff1a\u7528\u6237\u767b\u5f55\u65f6\u81ea\u52a8\u6267\u884c\u8be5\u76ee\u5f55\u4e0b\u7684\u6240\u6709 .sh \u6587\u4ef6\n  \u5bf9\u6240\u6709\u7528\u6237\u751f\u6548\uff1a\u5168\u5c40\u914d\u7f6e\uff0c\u5f71\u54cd\u6240\u6709\u767b\u5f55\u7528\u6237\n  \u6a21\u5757\u5316\u914d\u7f6e\uff1a\u6bcf\u4e2a\u529f\u80fd\u4e00\u4e2a\u6587\u4ef6\uff0c\u4fbf\u4e8e\u7ba1\u7406\n  \u65e0\u9700\u4fee\u6539\u4e3b\u6587\u4ef6\uff1a\u907f\u514d\u76f4\u63a5\u4fee\u6539 \/etc\/profile \u6216 ~\/.bashrc<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"v9UXF\">1.3\u90e8\u7f72MySQL\u6570\u636e\u5e93<\/h2>\n\n\n\n<pre id=\"qB1cm\" class=\"wp-block-code\"><code>\t1.\u51c6\u5907\u8bc1\u4e66\u6587\u4ef6\n&#91;root@harbor250.oldboyedu.com ~]# mkdir -p \/etc\/docker\/certs.d\/harbor250.oldboyedu.com\/\n&#91;root@harbor250.oldboyedu.com ~]# \n&#91;root@harbor250.oldboyedu.com ~]# cp \/usr\/local\/harbor\/certs\/docker-client\/* \/etc\/docker\/certs.d\/harbor250.oldboyedu.com\/\n&#91;root@harbor250.oldboyedu.com ~]# \n&#91;root@harbor250.oldboyedu.com ~]# ll \/etc\/docker\/certs.d\/harbor250.oldboyedu.com\/\ntotal 20\ndrwxr-xr-x 2 root root 4096 Jan 12 16:04 .\/\ndrwxr-xr-x 3 root root 4096 Jan 12 16:04 ..\/\n-rw-r--r-- 1 root root 2049 Jan 12 16:04 ca.crt\n-rw-r--r-- 1 root root 2155 Jan 12 16:04 harbor250.oldboyedu.com.cert\n-rw------- 1 root root 3272 Jan 12 16:04 harbor250.oldboyedu.com.key\n&#91;root@harbor250.oldboyedu.com ~]# \n\n\n\t2.\u62c9\u53d6MySQL\u955c\u50cf\n&#91;root@harbor250.oldboyedu.com ~]# docker pull harbor250.oldboyedu.com\/oldboyedu-db\/mysql:8.0.36-oracle\n\n&#91;root@harbor250.oldboyedu.com ~]# docker image ls harbor250.oldboyedu.com\/oldboyedu-db\/mysql\nREPOSITORY                                   TAG             IMAGE ID       CREATED         SIZE\nharbor250.oldboyedu.com\/oldboyedu-db\/mysql   8.0.36-oracle   f5f171121fa3   21 months ago   603MB\n&#91;root@harbor250.oldboyedu.com ~]# \n\n\n\t3.\u8fd0\u884cMySQL\u670d\u52a1\n&#91;root@harbor250.oldboyedu.com ~]# docker run -d \\\n\t--name mysql-server \\\n\t-e MYSQL_DATABASE=ruoyi \\\n\t-e MYSQL_USER=linux101 \\\n\t-e MYSQL_PASSWORD=oldboyedu \\\n\t-e MYSQL_ALLOW_EMPTY_PASSWORD=yes \\\n\t--network host \\\n\tharbor250.oldboyedu.com\/oldboyedu-db\/mysql:8.0.36-oracle \\\n    --character-set-server=utf8mb4 \\\n    --collation-server=utf8mb4_unicode_ci \\\n    --default-authentication-plugin=mysql_native_password\n    \n    \n    4.\u67e5\u770bMySQL\u5bb9\u5668\n&#91;root@harbor250.oldboyedu.com ~]# docker ps -l   #-l \u662f--latest\u7684\u7b80\u5199\uff0c\u8868\u793a\u663e\u793a\u6700\u8fd1\u521b\u5efa\u7684\u5bb9\u5668\uff08\u5305\u62ec\u5df2\u505c\u6b62\u7684\uff09\nCONTAINER ID   IMAGE                                                      COMMAND                  CREATED         STATUS        PORTS     NAMES\n4580d03735b7   harbor250.oldboyedu.com\/oldboyedu-db\/mysql:8.0.36-oracle   \"docker-entrypoint.s\u2026\"   3 seconds ago   Up 1 second             mysql-server\n&#91;root@harbor250.oldboyedu.com ~]# \n&#91;root@harbor250.oldboyedu.com ~]# ss -ntl | grep 3306\nLISTEN 0      151                *:3306             *:*          \nLISTEN 0      70                 *:33060            *:*          \n&#91;root@harbor250.oldboyedu.com ~]# \n\n\n    5.\u94fe\u63a5\u6d4b\u8bd5\n&#91;root@harbor250.oldboyedu.com ~]# docker exec -it mysql-server mysql ruoyi\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 8\nServer version: 8.0.36 MySQL Community Server - GPL\n\nCopyright (c) 2000, 2024, Oracle and\/or its affiliates.\n\nOracle is a registered trademark of Oracle Corporation and\/or its\naffiliates. Other names may be trademarks of their respective\nowners.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql&gt; SHOW DATABASES;\n+--------------------+\n| Database           |\n+--------------------+\n| information_schema |\n| mysql              |\n| performance_schema |\n| ruoyi              |\n| sys                |\n+--------------------+\n5 rows in set (0.00 sec)\n\nmysql&gt; \nmysql&gt; SELECT DATABASE();\n+------------+\n| DATABASE() |\n+------------+\n| ruoyi      |\n+------------+\n1 row in set (0.00 sec)\n\nmysql&gt; \nmysql&gt; SHOW TABLES;\nEmpty set (0.00 sec)\n\nmysql&gt; \nmysql&gt; SELECT user,host,plugin FROM mysql.user;\n+------------------+-----------+-----------------------+\n| user             | host      | plugin                |\n+------------------+-----------+-----------------------+\n| linux101         | %         | mysql_native_password |\n| root             | %         | mysql_native_password |\n| mysql.infoschema | localhost | caching_sha2_password |\n| mysql.session    | localhost | caching_sha2_password |\n| mysql.sys        | localhost | caching_sha2_password |\n| root             | localhost | mysql_native_password |\n+------------------+-----------+-----------------------+\n6 rows in set (0.00 sec)\n\nmysql&gt; \n\n\n\t6.\u4fee\u6539MySQL\u5ba2\u6237\u7aef\u94fe\u63a5\u7684\u5b57\u7b26\u96c6\n&#91;root@harbor250.oldboyedu.com RuoYi]# docker exec -it mysql-server bash\nbash-4.4# \nbash-4.4# mysql\nmysql&gt; SHOW VARIABLES LIKE '%character%';  # \u67e5\u770b\u9ed8\u8ba4\u7684\u5b57\u7b26\u96c6\n+--------------------------+--------------------------------+\n| Variable_name            | Value                          |\n+--------------------------+--------------------------------+\n| character_set_client     | latin1                         |\n| character_set_connection | latin1                         |\n| character_set_database   | utf8mb4                        |\n| character_set_filesystem | binary                         |\n| character_set_results    | latin1                         |\n| character_set_server     | utf8mb4                        |\n| character_set_system     | utf8mb3                        |\n| character_sets_dir       | \/usr\/share\/mysql-8.0\/charsets\/ |\n+--------------------------+--------------------------------+\n8 rows in set (0.01 sec)\n\nmysql&gt; \nbash-4.4# cat &gt; \/etc\/my.cnf &lt;&lt;EOF<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"SpnTy\">1.4\u90e8\u7f72Maven\u8f6f\u4ef6<\/h2>\n\n\n\n<pre id=\"njZjC\" class=\"wp-block-code\"><code>\t1.\u4e0b\u8f7dmaven\n&#91;root@harbor250.oldboyedu.com ~]# wget https:\/\/dlcdn.apache.org\/maven\/maven-3\/3.9.12\/binaries\/apache-maven-3.9.12-bin.tar.gz\n\n\n\t2.\u89e3\u538b\u8f6f\u4ef6\u5305\n&#91;root@harbor250.oldboyedu.com ~]# tar xf apache-maven-3.9.12-bin.tar.gz -C \/usr\/local\/\n&#91;root@harbor250.oldboyedu.com ~]# \n\n\n\t3.\u914d\u7f6e\u73af\u5883\u53d8\u91cf\n&#91;root@harbor250.oldboyedu.com ~]# cat \/etc\/profile.d\/mvn.sh\n#!\/bin\/bash\n\nexport MAVEN_HOME=\/usr\/local\/apache-maven-3.9.12\nexport PATH=$PATH:$MAVEN_HOME\/bin\n\n&#91;root@harbor250.oldboyedu.com ~]# \n&#91;root@harbor250.oldboyedu.com ~]# source  \/etc\/profile.d\/mvn.sh\n&#91;root@harbor250.oldboyedu.com ~]# \n&#91;root@harbor250.oldboyedu.com ~]# mvn --version\nApache Maven 3.9.12 (848fbb4bf2d427b72bdb2471c22fced7ebd9a7a1)\nMaven home: \/usr\/local\/apache-maven-3.9.12\nJava version: 17.0.8, vendor: Oracle Corporation, runtime: \/usr\/local\/jdk-17.0.8\nDefault locale: en_US, platform encoding: UTF-8\nOS name: \"linux\", version: \"5.15.0-119-generic\", arch: \"amd64\", family: \"unix\"\n&#91;root@harbor250.oldboyedu.com ~]# \n\n\n\t4.\u914d\u7f6emaven\u52a0\u901f\uff08\u53ef\u9009\uff09\n&#91;root@harbor250.oldboyedu.com ~]# vim  \/usr\/local\/apache-maven-3.9.12\/conf\/settings.xml \n...\n&lt;mirrors&gt;\n    &lt;mirror&gt;\n        &lt;id&gt;alimaven&lt;\/id&gt;\n        &lt;mirrorOf&gt;central&lt;\/mirrorOf&gt;\n        &lt;name&gt;aliyun maven&lt;\/name&gt;\n        &lt;url&gt;https:\/\/maven.aliyun.com\/repository\/public&lt;\/url&gt;\n    &lt;\/mirror&gt;\n&lt;\/mirrors&gt;<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"WhqLr\">1.5\u7f16\u8bd1\u82e5\u4f9d\u670d\u52a1\u8fd0\u884c\u6d4b\u8bd5<\/h2>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/29112972\/1768223702037-89d1582c-9289-4535-8738-4a00144821e0.png\" alt=\"\" title=\"\"\/><\/figure>\n\n\n\n<pre id=\"VFfGR\" class=\"wp-block-code\"><code>\t1.\u62c9\u53d6\u4ee3\u7801\n&#91;root@harbor250.oldboyedu.com ~]# git clone https:\/\/gitee.com\/y_project\/RuoYi.git\n\n\n\t2.\u4fee\u6539\u6570\u636e\u5e93\u8fde\u63a5\uff0c\u7f16\u8f91resources\u76ee\u5f55\u4e0b\u7684application-druid.yml\n&#91;root@harbor250.oldboyedu.com ~]# vim RuoYi\/ruoyi-admin\/src\/main\/resources\/application-druid.yml \n  1 # \u6570\u636e\u6e90\u914d\u7f6e\n  2 spring:\n  3     datasource:\n  4         type: com.alibaba.druid.pool.DruidDataSource\n  5         driverClassName: com.mysql.cj.jdbc.Driver\n  6         druid:\n  7             # \u4e3b\u5e93\u6570\u636e\u6e90\n  8             master:\n  9                 url: jdbc:mysql:\/\/localhost:3306\/ruoyi?useUnicode=true&amp;characterEncoding=utf8&amp;zeroDateTimeBehavior=convertToNull&amp;us    eSSL=true&amp;serverTimezone=GMT%2B8\n 10                 username: linux101\n 11                 password: oldboyedu    \n ...\n \n \n \t3.\u4fee\u6539\u670d\u52a1\u5668\u914d\u7f6e\uff0c\u7f16\u8f91resources\u76ee\u5f55\u4e0b\u7684application.yml\n&#91;root@harbor250.oldboyedu.com ~]# vim RuoYi\/ruoyi-admin\/src\/main\/resources\/application.yml \n...\n 17 server:\n 18   # \u670d\u52a1\u5668\u7684HTTP\u7aef\u53e3\uff0c\u9ed8\u8ba4\u4e3a80\n 19   port: 8080\n\n \t\n \t4.\u7f16\u8bd1\u7a0b\u5e8f\n&#91;root@harbor250.oldboyedu.com ~]# cd RuoYi\/\n&#91;root@harbor250.oldboyedu.com RuoYi]# \n&#91;root@harbor250.oldboyedu.com RuoYi]# mvn clean package -Dmaven.test.skip=true   #-Dmaven.test.skip=true \u8df3\u8fc7Maven\u7684\u6d4b\u8bd5\u9636\u6bb5\uff0c\u4e0d\u7f16\u8bd1\u548c\u8fd0\u884c\u6d4b\u8bd5\u4ee3\u7801\u3002\n...\n&#91;INFO] Replacing main artifact with repackaged archive\n&#91;INFO] ------------------------------------------------------------------------\n&#91;INFO] Reactor Summary for ruoyi 4.8.2:\n&#91;INFO] \n&#91;INFO] ruoyi .............................................. SUCCESS &#91;  0.810 s]\n&#91;INFO] ruoyi-common ....................................... SUCCESS &#91; 24.712 s]\n&#91;INFO] ruoyi-system ....................................... SUCCESS &#91;  0.697 s]\n&#91;INFO] ruoyi-framework .................................... SUCCESS &#91;  4.574 s]\n&#91;INFO] ruoyi-quartz ....................................... SUCCESS &#91;  0.625 s]\n&#91;INFO] ruoyi-generator .................................... SUCCESS &#91;  0.539 s]\n&#91;INFO] ruoyi-admin ........................................ SUCCESS &#91; 11.867 s]\n&#91;INFO] ------------------------------------------------------------------------\n&#91;INFO] BUILD SUCCESS\n&#91;INFO] ------------------------------------------------------------------------\n&#91;INFO] Total time:  46.270 s  # \u7f16\u8bd1\u65f6\u95f4\u8f83\u77ed\uff0c46s\u5de6\u53f3\u3002\n&#91;INFO] Finished at: 2026-01-12T16:28:22+08:00\n&#91;INFO] ------------------------------------------------------------------------\n&#91;root@harbor250.oldboyedu.com RuoYi]# \n \n\t5.\u5bfc\u5165\u6570\u636e\u5e93\n&#91;root@harbor250.oldboyedu.com RuoYi]# docker cp sql\/quartz.sql mysql-server:\/\n&#91;root@harbor250.oldboyedu.com RuoYi]# \n&#91;root@harbor250.oldboyedu.com RuoYi]# docker cp sql\/ry_20250416.sql mysql-server:\/\n&#91;root@harbor250.oldboyedu.com RuoYi]# \n&#91;root@harbor250.oldboyedu.com RuoYi]# docker exec -it mysql-server bash\nbash-4.4# ls -l \/*.sql\n-rw-r--r-- 1 root root 11985 Jan 12 08:20 \/quartz.sql\n-rw-r--r-- 1 root root 60934 Jan 12 08:20 \/ry_20250416.sql\nbash-4.4# \nbash-4.4# mysql ruoyi &lt; \/quartz.sql   #\u9700\u6307\u5b9aruoyi\u6570\u636e\u5e93\nbash-4.4# mysql ruoyi &lt; \/ry_20250416.sql \nbash-4.4# \nbash-4.4# mysql ruoyi \nReading table information for completion of table and column names\nYou can turn off this feature to get a quicker startup with -A\n\nWelcome to the MySQL monitor.  Commands end with ; or \\g.\nYour MySQL connection id is 17\nServer version: 8.0.36 MySQL Community Server - GPL\n\nCopyright (c) 2000, 2024, Oracle and\/or its affiliates.\n\nOracle is a registered trademark of Oracle Corporation and\/or its\naffiliates. Other names may be trademarks of their respective\nowners.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nmysql&gt; SHOW TABLES;\n+--------------------------+\n| Tables_in_ruoyi          |\n+--------------------------+\n| QRTZ_BLOB_TRIGGERS       |\n| QRTZ_CALENDARS           |\n| QRTZ_CRON_TRIGGERS       |\n| QRTZ_FIRED_TRIGGERS      |\n| QRTZ_JOB_DETAILS         |\n| QRTZ_LOCKS               |\n| QRTZ_PAUSED_TRIGGER_GRPS |\n| QRTZ_SCHEDULER_STATE     |\n| QRTZ_SIMPLE_TRIGGERS     |\n| QRTZ_SIMPROP_TRIGGERS    |\n| QRTZ_TRIGGERS            |\n| gen_table                |\n| gen_table_column         |\n| sys_config               |\n| sys_dept                 |\n| sys_dict_data            |\n| sys_dict_type            |\n| sys_job                  |\n| sys_job_log              |\n| sys_logininfor           |\n| sys_menu                 |\n| sys_notice               |\n| sys_oper_log             |\n| sys_post                 |\n| sys_role                 |\n| sys_role_dept            |\n| sys_role_menu            |\n| sys_user                 |\n| sys_user_online          |\n| sys_user_post            |\n| sys_user_role            |\n+--------------------------+\n31 rows in set (0.00 sec)\n\nmysql&gt; \n\n\t\n\t6.\u8fd0\u884cjar\u5305\u6587\u4ef6\n&#91;root@harbor250.oldboyedu.com RuoYi]# java -jar ruoyi-admin\/target\/ruoyi-admin.jar \nApplication Version: 4.8.2\nSpring Boot Version: 2.5.15\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n\/\/                          _ooOoo_                               \/\/\n\/\/                         o8888888o                              \/\/\n\/\/                         88\" . \"88                              \/\/\n\/\/                         (| ^_^ |)                              \/\/\n\/\/                         O\\  =  \/O                              \/\/\n\/\/                      ____\/`---'\\____                           \/\/\n\/\/                    .'  \\\\|     |\/\/  `.                         \/\/\n\/\/                   \/  \\\\|||  :  |||\/\/  \\                        \/\/\n\/\/                  \/  _||||| -:- |||||-  \\                       \/\/\n\/\/                  |   | \\\\\\  -  \/\/\/ |   |                       \/\/\n\/\/                  | \\_|  ''\\---\/''  |   |                       \/\/\n\/\/                  \\  .-\\__  `-`  ___\/-. \/                       \/\/\n\/\/                ___`. .'  \/--.--\\  `. . ___                     \/\/\n\/\/              .\"\" '&lt;  `.___\\_&lt;|&gt;_\/___.'  &gt;'\"\".                  \/\/\n\/\/            | | :  `- \\`.;`\\ _ \/`;.`\/ - ` : | |                 \/\/\n\/\/            \\  \\ `-.   \\_ __\\ \/__ _\/   .-` \/  \/                 \/\/\n\/\/      ========`-.____`-.___\\_____\/___.-`____.-'========         \/\/\n\/\/                           `=---='                              \/\/\n\/\/      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^        \/\/\n\/\/             \u4f5b\u7956\u4fdd\u4f51       \u6c38\u4e0d\u5b95\u673a      \u6c38\u65e0BUG               \/\/\n\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\n...\n(\u2665\u25e0\u203f\u25e0)\uff89\uff9e  \u82e5\u4f9d\u542f\u52a8\u6210\u529f   \u10da(\u00b4\u06a1`\u10da)\uff9e  \n .-------.       ____     __        \n |  _ _   \\      \\   \\   \/  \/    \n | ( ' )  |       \\  _. \/  '       \n |(_ o _) \/        _( )_ .'         \n | (_,_).' __  ___(_ o _)'          \n |  |\\ \\  |  ||   |(_,_)'         \n |  | \\ `'   \/|   `-'  \/           \n |  |  \\    \/  \\      \/           \n ''-'   `'-'    `-..-'              \n\n\t7.\u8bbf\u95ee\u6d4b\u8bd5\u3010\u5982\u4e0a\u56fe\u6240\u793a\u3011\n&#91;root@harbor250.oldboyedu.com ~]# ss -ntl | grep 8080\nLISTEN 0      1000               *:8080             *:*          \n&#91;root@harbor250.oldboyedu.com ~]# \n\n\u6e29\u99a8\u63d0\u793a:\n\t\u767b\u5f55\u6210\u529f\u540e\uff0c\u67e5\u770b\u6548\u679c\u5982\u4e0b\u56fe\u6240\u793a\u3002<\/code><\/pre>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"https:\/\/cdn.nlark.com\/yuque\/0\/2026\/png\/29112972\/1768223891057-c7906092-50b7-4a82-a733-7c6b624942d9.png\" alt=\"\" title=\"\"\/><\/figure>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"oeoKr\">1.6\u4fee\u590d\u4e71\u7801\u95ee\u9898<\/h2>\n\n\n\n<pre id=\"piMr6\" class=\"wp-block-code\"><code>\u6211\u4eec\u4f7f\u7528MySQL8.0+\u7248\u672c\u90e8\u7f72\u82e5\u4f9d\uff0c\u53d1\u73b0\u5b58\u5728\u4e71\u7801\u95ee\u9898\u3002\n\n\u89e3\u51b3\u65b9\u6848\u6709\u4e24\u79cd\uff1a\n\t- A.\u5c31\u662f\u964d\u4f4e\u6570\u636e\u5e93\u7248\u672c\uff0c\u6bd4\u5982\"MySQL 5.7\"\u6216\u8005\"mariadb 10.6.22\"\u3002\n\t- B.\u4fee\u6539\u5ba2\u6237\u7aef\u94fe\u63a5\u5de5\u5177\u7684\u5b57\u7b26\u96c6; (\u63a8\u8350)\n\n\u5b9e\u64cd\u6848\u4f8b:\n\t1.\u5b89\u88c5mariadb\u670d\u52a1\n&#91;root@harbor250.oldboyedu.com ~]# apt -y install mariadb-server\n&#91;root@harbor250.oldboyedu.com ~]# mariadb -V\nmariadb  Ver 15.1 Distrib 10.6.22-MariaDB, for debian-linux-gnu (x86_64) using  EditLine wrapper\n&#91;root@harbor250.oldboyedu.com ~]# \n&#91;root@harbor250.oldboyedu.com ~]# systemctl restart mariadb\n\n&#91;root@harbor250.oldboyedu.com ~]# ss -ntl | grep 3306\nLISTEN 0      80         127.0.0.1:3306      0.0.0.0:*          \n&#91;root@harbor250.oldboyedu.com ~]# \n\n\n\t2.\u521b\u5efa\u7528\u6237\u5e76\u6388\u6743\n&#91;root@harbor250.oldboyedu.com ~]# mysql\nWelcome to the MariaDB monitor.  Commands end with ; or \\g.\nYour MariaDB connection id is 31\nServer version: 10.6.22-MariaDB-0ubuntu0.22.04.1 Ubuntu 22.04\n\nCopyright (c) 2000, 2018, Oracle, MariaDB Corporation Ab and others.\n\nType 'help;' or '\\h' for help. Type '\\c' to clear the current input statement.\n\nMariaDB &#91;(none)]> CREATE DATABASE ruoyi;\nQuery OK, 1 row affected (0.001 sec)\n\nMariaDB &#91;(none)]> \nMariaDB &#91;(none)]> CREATE USER linux101;\nQuery OK, 0 rows affected (0.001 sec)\n\nMariaDB &#91;(none)]> \nMariaDB &#91;(none)]> ALTER USER linux101 IDENTIFIED BY 'oldboyedu';\nQuery OK, 0 rows affected (0.000 sec)\n\nMariaDB &#91;(none)]> \nMariaDB &#91;(none)]> GRANT ALL PRIVILEGES ON ruoyi.* TO linux101;\nQuery OK, 0 rows affected (0.001 sec)\n\nMariaDB &#91;(none)]> \nMariaDB &#91;(none)]> SHOW GRANTS FOR linux101;\n+-----------------------------------------------------+\n| Grants for linux101@%                               |\n+-----------------------------------------------------+\n| GRANT USAGE ON *.* TO `linux101`@`%`                |\n| GRANT ALL PRIVILEGES ON `ruoyi`.* TO `linux101`@`%` |\n+-----------------------------------------------------+\n2 rows in set (0.000 sec)\n\nMariaDB &#91;(none)]> \nMariaDB &#91;(none)]> SHOW VARIABLES LIKE '%character%';\n+--------------------------+----------------------------+\n| Variable_name            | Value                      |\n+--------------------------+----------------------------+\n| character_set_client     | utf8mb3                    |\n| character_set_connection | utf8mb3                    |\n| character_set_database   | utf8mb4                    |\n| character_set_filesystem | binary                     |\n| character_set_results    | utf8mb3                    |\n| character_set_server     | utf8mb4                    |\n| character_set_system     | utf8mb3                    |\n| character_sets_dir       | \/usr\/share\/mysql\/charsets\/ |\n+--------------------------+----------------------------+\n8 rows in set (0.001 sec)\n\nMariaDB &#91;(none)]> \n\n\n\t3.\u5bfc\u5165\u6570\u636e\u5e93\u8868\u7ed3\u6784\n&#91;root@harbor250.oldboyedu.com ~]# mysql ruoyi &lt; RuoYi\/sql\/quartz.sql \n&#91;root@harbor250.oldboyedu.com ~]# \n&#91;root@harbor250.oldboyedu.com ~]# mysql ruoyi &lt; RuoYi\/sql\/ry_20250416.sql \n&#91;root@harbor250.oldboyedu.com ~]# \n&#91;root@harbor250.oldboyedu.com ~]# mysql -e \"SHOW TABLES FROM ruoyi\"\n+--------------------------+\n| Tables_in_ruoyi          |\n+--------------------------+\n| QRTZ_BLOB_TRIGGERS       |\n| QRTZ_CALENDARS           |\n| QRTZ_CRON_TRIGGERS       |\n| QRTZ_FIRED_TRIGGERS      |\n| QRTZ_JOB_DETAILS         |\n| QRTZ_LOCKS               |\n| QRTZ_PAUSED_TRIGGER_GRPS |\n| QRTZ_SCHEDULER_STATE     |\n| QRTZ_SIMPLE_TRIGGERS     |\n| QRTZ_SIMPROP_TRIGGERS    |\n| QRTZ_TRIGGERS            |\n| gen_table                |\n| gen_table_column         |\n| sys_config               |\n| sys_dept                 |\n| sys_dict_data            |\n| sys_dict_type            |\n| sys_job                  |\n| sys_job_log              |\n| sys_logininfor           |\n| sys_menu                 |\n| sys_notice               |\n| sys_oper_log             |\n| sys_post                 |\n| sys_role                 |\n| sys_role_dept            |\n| sys_role_menu            |\n| sys_user                 |\n| sys_user_online          |\n| sys_user_post            |\n| sys_user_role            |\n+--------------------------+\n&#91;root@harbor250.oldboyedu.com ~]# <\/code><\/pre>\n\n\n\n<h1 class=\"wp-block-heading\" id=\"HzL1z\">\u5b8c\u7ed3<\/h1>\n","protected":false},"excerpt":{"rendered":"<p>1.1\u82e5\u4f9d\u9879\u76ee\u4ecb\u7ecd 1.2\u5b89\u88c5jdk\u73af\u5883 1.3\u90e8\u7f72MySQL\u6570\u636e\u5e93 1.4\u90e8\u7f72Maven\u8f6f\u4ef6 1.5\u7f16\u8bd1\u82e5\u4f9d [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":108,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-107","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux"],"_links":{"self":[{"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/posts\/107","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=107"}],"version-history":[{"count":1,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions"}],"predecessor-version":[{"id":109,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/posts\/107\/revisions\/109"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=\/wp\/v2\/media\/108"}],"wp:attachment":[{"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=107"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=107"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.xueyaa.top\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=107"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}