Location>code7788 >text

2024 IDEA developer deploying lilishop's manager module (exhaustive version)

Popularity:860 ℃/2024-09-23 12:14:20

I. Environmental integration

Build tool (reference tool deployment method)

Software Name releases Related Articles
Git 13.5.0 /liuyangfirst/p/
NodeJS 16.0.0 /liuyangfirst/p/
JDK 1.8 /liuyangfirst/p/
Maven 3.6.0 /liuyangfirst/p/
MySQL 5.6.10 /liuyangfirst/p/
Redis 5.0.10 /liuyangfirst/p/
DBeaver 7.3.0 /liuyangfirst/p/
IntelliJ IDEA Try to use a more recent version /idea/
RedisDesktopManager 0.9.3.817 /liuyangfirst/p/
Logstash 0.0.0 /liuyangfirst/p/
RabbitMQ 0.0.0 /liuyangfirst/p/
Elasticsearch 0.0.0 /liuyangfirst/p/

II. Front-end lilishop-ui deployment

1. Download the source code to local

  • Ensure that the git installation is successful and use the command to download the project locally.

# PC front-end (developer admin + merchant + buyer user)
git clone git@:beijing_hongye_huicheng/

  • Introduction to the front-end project structure .


.vscode --- Configuration file for VScode tools (.idea)
node_modules --- runtime dependencies of the Vue project) (equivalent to jar packages, generated by npm install after loading)
public --- resources folder (browser icon) (resources folder)
src --- source folder (coding folder, core folder)
.gitignoregit --- ignore files (git ignores files)
index.htm1 --- entry HTML file (entry file, start page)
         --- Information description file (equivalent to a pom file)
            --- annotation file (description file)
       --- Vue configuration file (yaml file)

2. Install nodejs

  • The main thing here is to pay attention to the version, if the version is not right it will create a lot of problems, if the version is not a problem it will be easy to succeed. (There are tons of compatibility issues)
serial number name (of a thing) releases
1 v14.18.3
  • This was installed using nvm

  • See the documentation for nvm installation for specific installations.

3. Install yarn


# Install yarn (you can ignore this step if it's installed on your machine)
npm install -g yarn

4. Packaging startup

4.1 Downloading relevant packages

  • Go to the module catalog

   cd D:\workspace_html\2024\lilishop-ui
   # All three modules are accessed this way
   cd manager

  • Download package command. (No error means the download was successful)

yarn install

4.2 Packing

  • Use the pack command (no error reported is success)

yarn build

4.3 Startup commands

  • Enter the startup command (no error means the startup was successful)
 yarn run dev

  • Finally, the screen as shown in the picture is a successful startup, there will be an address to access.

  • Accessed at.http://localhost:10003/

  • Enter the account/password : admin/123456, enter the login interface

  • The official address of the same experience, the account password is as above.
serial number name (of a thing) releases
1 Platform side (operating platform)

4.4 Other modules

  • The buyer and seller modules are deployed in the same way as the manager module.
4.4.1 buyer module
  • Start the buyer module.

  • Accessed at.http://localhost:10000/

  • Register for an account.

  • Official website experience
serial number name (of a thing) releases
1 center side
4.4.2 The seller module
  • Deploying the seller

  • Local access address.http://localhost:10002/

  • Click on Login to enter the main screen.

  • Official website experience
serial number name (of a thing) releases
1 Store side (third party)
  • Account/Password : 13011111111/111111

III. Backend Installation

1. Database deployment

  • Ensure that the database installation is not a problem (this version to use MySQL8), find the project's DB directory, open the README file.

  • Download the sql script locally using the git command.

/beijing_hongye_huicheng/docker/tree/master/init/mysql

  • After downloading the script as shown in the picture, right click on the script run.

  • The database for xxl-job should be added to the database in the same way.

2. Modification of configuration files

  • Take buyer as an example, other modules are similar.
serial number name (of a thing) address
1 buyer-api\src\main\resources\

  • Contents of the modification
serial number name (of a thing) descriptive
1 comprehensive database Change to local database account and password: username/password
2 redis Change the account and password to the local redis account, and delete it if there is no password here.
3 Logstash Change to local IP address

  • Change the database account password for xxl-job
serial number name (of a thing) descriptive
1 comprehensive database Change to local database account and password: username/password

3. Maven added to the package

  • Click on the location as shown in the picture to add in the package and package. (Maven configuration is not a problem will not go wrong)

4. Project initiation

  • Middleware should be started in order, otherwise it will report an error.
serial number name (of a thing) descriptive
1 Logstash You have to start it first, or you'll get an error.
2 Elasticsearch Two startups.
3 RabbitMQ direct launch
4 Redis direct launch
5 xxl-job Startup (xxl-job\xxl-job-admin-2.3.)
6 BuyerApiApplication buyer-api\src\main\java\cn\lili\
  • xxl-job start command
  java -jar xxl-job-admin-2.3.

  • Start BuyerApiApplication

  • To access the address, you need to configure Knife4J to open it.
serial number name (of a thing) descriptive
1 Ways to turn on swagger /liuyangfirst/p/
  • Visit swagger to see all the interfaces!

IV. Problems encountered

1. Logstash keeps reporting errors

  • The following error has been reported.

WARNING, using JAVA_HOME while Logstash distribution comes with a bundled JDK
Java HotSpot(TM) 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
Sending Logstash logs to C:/Program Files/Elastic/logstash-7.11.1/logs which is now configured via 
[2021-02-25T14:57:05,899][INFO ][          ] Starting Logstash {""=>"7.11.1", ""=>"jruby 9.2.13.0 (2.5.7) 2020-08-03 9a89c94bcc Java HotSpot(TM) 64-Bit Server VM 11.0.10+8-LTS-162 on 11.0.10+8-LTS-162 +indy +jit [mswin32-x86_64]"}
[2021-02-25T14:57:06,132][WARN ][] Ignoring the '' file because modules or command line options are specified
[2021-02-25T14:57:06,858][INFO ][] No config files found in path {:path=>"C:/Program Files/Elastic/logstash-7.11.1/"}
[2021-02-25T14:57:07,136][ERROR][] No configuration found in the configured sources.
[2021-02-25T14:57:07,747][INFO ][           ] Successfully started Logstash API endpoint {:port=>9600}
[2021-02-25T14:57:12,678][INFO ][          ] Logstash shut down.
[2021-02-25T14:57:12,968][FATAL][    ] Logstash stopped processing because of an error: (SystemExit) exit
: (SystemExit) exit
        at (org/jruby/:747) ~[jruby-complete-9.2.13.:?]
        at (org/jruby/:710) ~[jruby-complete-9.2.13.:?]
        at C_3a_.Program_20_Files.Elastic.logstash_minus_7_dot_11_dot_1..<main>(C:\Program Files\Elastic\logstash-7.11.1\lib\bootstrap\:89) ~[?:?]

  • All the modifications I found didn't work, so I uninstalled and installed the old version and it didn't report the error.
serial number name (of a thing) descriptive
1 Logstash 8.15.3 I've just started installing this new version and it keeps giving me the same error, even when I change machines.
2 logstash-7.17.24 Change to this version, and if the other middleware starts first, start Logstash first, otherwise you will still get the above error.
  • After the project is started, it keeps prompting the link Logstash warning, I don't know how to change this ip.

2024-09-21 04:20:30.373  WARN 2872 --- [gistrationTask1]        : Failed to register application as Application(name=buyer-api, managementUrl=http://LAPTOP-RF86FEB6:8888/actuator, healthUrl=http://LAPTOP-RF86FEB6:8888/actuator/health, serviceUrl=http://LAPTOP-RF86FEB6:8888/) at spring-boot-admin ([http://127.0.0.1:8000/instances]): I/O error on POST request for "http://127.0.0.1:8000/instances": Connect to 127.0.0.1:8000 [/127.0.0.1] failed: Connection refused: connect; nested exception is : Connect to 127.0.0.1:8000 [/127.0.0.1] failed: Connection refused: connect. Further attempts are logged on DEBUG level


WARN in [LOGSTASH] - Log destination 127.0.0.1:9600: Waiting 29989ms before attempting reconnection.

concluding remarks

Vomiting blood, continuous liver 9 hours (need to write the configuration of the environment of the document, but also repeated testing, in order to provide the best for you to see the Lord boutique article), I hope that the likes, favorites, comments, forwarding, your support is the motivation of this blogger to move forward.