Skip to content

ruimin-z/OnlineShoppingSystem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Install Jar

https://maven.apache.org/download.cgi Update POM with pacakage Jar and plugins for maven In Plugins do compile and then jar Copy from target to root path, then type:

mvn install:install-file -Dfile=target/OnlineShopping-1.0.jar -DgroupId=com.qiuzhitech -DartifactId=OnlineShopping -Dversion=1.1 -Dpackaging=jar

Redis - 处理高并发high concurrency

Jmeter压力测试: apache-jmeter-5.6.3

Redis - 不需要每次启动:

  1. Install: sudo apt install redis
  2. Start: redis-server &
  3. Authentication: redis-cli ping

RocketMQ - 流量控制和顺序处理 - PrimeDay优化

异步化处理数据,下单和付款解耦。Asynchronous data processing.

环境配置Environment setup

Key: ROCKETMQ_HOME, Val: rocketmq-4.9.3

启动

  1. Enter CMD go to Folder /rocketmq-4.9.3/bin
  2. Start RocketMQ with: ./mqnamesrv or nohup sh bin/mqnamesrv &
  3. Launch a new terminal with:
    sh mqbroker -n localhost:9876 -c ../conf/broker.conf autoCreateTopicEnable=true
    

检查端口Check Port:

netstat -ano | findstr "9876"

关闭端口ShutDown RocketMQ:

mqshutdown broker
mqshutdown namesrv

删除消息Delete Message:

./mqadmin deleteTopic -c DefaultCluster -n localhost:9876 -t {topicName}

Elasticsearch - 搜索加速

倒排索引 Inverted Index in Distributed NoSQL DBMS.

  1. Enter CMD go to Folder /elasticsearch-7.4.2/bin
  2. Type ./elasticsearch
  3. Enter CMD goto folder /kibana-7.4.2-darwin-x86_64/bin
  4. Type ./kibana

Visit http://127.0.0.1:9200/ to check ElasticSearch status

Visit http://127.0.0.1:5601/ to manage database via Kibana console

Consul - 分布式静态页面

分布式服务发现和配置管理工具。 Distributed service discovery and configuration management tool.

  1. Download Consul https://developer.hashicorp.com/consul/downloads
  2. Start with ./consul agent -dev
  3. Visit Web http://localhost:8500/

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published