当前位置:网站首页>[technology for grass planting] lightweight 248 helps individual developers go to the cloud
[technology for grass planting] lightweight 248 helps individual developers go to the cloud
2022-06-24 01:31:00 【Loader】
This year's double 11 is constantly chopping hands , I believe the partners must have collected a lot of servers , I also bought some , Get on the front foot 248, There's another one on the back foot 11.11, Directly stabbed by the back , But I was lucky to get one , Hey !( But now new users get on the bus 248 It only needs 198) Not much to say , Let's go straight to the subject ,11.11 With ,248 With , We can't leave them idle , I am a genuine Java Bricklayer , Use this below 248 Build a previously learned code , Below are my building notes .
Let's talk about the Project Overview , For most developers , The vast majority of projects need user rights management 、 authentication 、 authentication 、 encryption 、 Decrypt 、XSS Anti Cross Station attack, etc . The overall realization of these functions is basically the same , But most projects need to be implemented once , This virtually forms a huge waste of resources . This project is aimed at this problem , It provides a set of general permission solutions - General authority management system . With this infrastructure , We can directly redevelop this project by writing code , It can greatly reduce our workload , Improve work efficiency , This time, I just took advantage of this activity to share the process of building a project with a lightweight server , Take a simple note .
1. Tool preparation
As the saying goes , A good workman does his work well , You must sharpen your tools first , First of all, our top priority , Configure as authentic 2 nucleus 4G8M Bandwidth Tencent cloud lightweight server (ps, I'm in the lightweight worry free program ), The rest is 1 set Java Server environment configuration .
First, let's talk about the environment , Because I am lazy , It's using win Server for , For those who are not good at linux For people who , Relatively simple , Post the environment that needs to be prepared .
Mysql 5.7
Nacos1.14
Java1.8
Nginx1.18
Redis
stay windows Platform installation Java+Mysql+Redis+Nacos These things are relatively simple , I won't introduce them here .
2.Nocos Start configuration import
2.1 start-up
precondition :github download nacos Unzip your package .
Get into nacos Of bin Catalog , Click on startup.cmd start-up nacos, Then release in the server background nocos port 8848, Let's open the browser , My address is as follows , The default account password is nacos/nacos
http://x.x.x.x:8848/nacos/#/login
2.2 Import configuration
Sign in nacos backstage , New namespace pinda-dev, Then in the configuration list , Import configuration information , Although the configuration information has been modified , We also need to modify the... In the configuration information mysql Connection information , Change to our local mysql Connection information .
The second is , We need to take our sql File imported mysql Server , Open in the background of our server 3306 port , Use local sql Connect to the management tool , Import our initial database information , In this way, the configuration information required by the project , We're all ready .
3. Configure the backend java service
precondition : The server needs to be installed java And configure the environment variables .
The back end of the project mainly includes 2 A module ,1 One is the gateway module ,1 The first is the background permission service module ,java The environment doesn't say how to install , Start the project by entering a command directly on the command line
java -Dfile.encoding=UTF-8 -jar pd-auth-server.jar java -Dfile.encoding=UTF-8 -jar pd-gateway.jar
function cmd command , Start in turn 2 A service
Gateway project started
Permission service started
4. Installation configuration Nginx
precondition : Download from the Internet nginx windows edition
Put our locally packaged front end vue Upload the project to the server , Put in and nginx Same directory , Then we need to modify nginx Configuration information , In the following table of contents
Modify port as 8080( Remember to release in the server firewall 8080 port )
Modify the front vue Project path information
Modify the backend api Interface , But... Is not used here , I was in vue The interface address of the server directly packaged in the project .
Then switch the path to the following directory , Execute command to start nginx
nginx.exe
The front-end project has been started , We can open it and see if we can access it !
My has been visited normally , If the deployed back-end project is OK , The verification code can be loaded normally , Click the verification code to switch the verification code , Let's test logging in with an account password .
http://x.x.x.x:8080
After successful login, the background home page displays
Log in
Warehouse address of source code , Suitable for Java Basic partner , If you have ideas, you can try ! If you have any questions, you can comment on , I will reply to you when I see it .
https://gitee.com/upy/base
The above is just a record of learning , It is hereby released , I hope I can help my friends !
If you want to build a project like this , That must need 1 Taiwan and me 1 A server with the same configuration . If you don't have a server , Tencent cloud has activities , New users to buy 248 It only needs 198 element , Activity Links :
https://cloud.tencent.com/act/double11?spread_hash_key=3ab6463290b0e2bfb8505ec63b26839f
Above is my lightweight tutorial , Thank you for watching . If there is any wrong , Please advise .
边栏推荐
- CSDN auto sign in
- NJS triggers system command operation
- What is the cost of domain name trademark registration? What is the use of domain names and trademarks?
- JS stack memory
- 5-step method to quickly find data analysis ideas
- Why use CDN content distribution network?
- EasyPlayer. JS play m3u8 error net:: err_ EMPTY_ Response, how to solve it?
- AES encryption analysis of CNKI academic translation
- Use Navicat software to connect self built database (Linux system)
- What you don't know about traifik
猜你喜欢
![[flutter] comment utiliser les paquets et plug - ins flutter](/img/a6/e494dcdb2d3830b6d6c24d0ee05af2.png)
[flutter] comment utiliser les paquets et plug - ins flutter

Arm learning (7) symbol table and debugging
Shengdun technology joined dragon lizard community to build a new open source ecosystem
![2022 postgraduate entrance examination experience sharing [preliminary examination, school selection, re examination, adjustment, school recruitment and social recruitment]](/img/05/e204f526e2f3e90ed9a7ad0361a72e.png)
2022 postgraduate entrance examination experience sharing [preliminary examination, school selection, re examination, adjustment, school recruitment and social recruitment]

JS input / output statements, variables
![Graduation project - thesis writing notes [design topic type, thesis writing details, design materials]](/img/66/c0c400609b56dd012d87c620ca66e4.png)
Graduation project - thesis writing notes [design topic type, thesis writing details, design materials]

LMS Virtual. Derivation method of lab acoustic simulation results

Use recursion to form a multi-level directory tree structure, with possibly the most detailed notes of the whole network.
Talk to Wu Jiesheng, head of Alibaba cloud storage: my 20 years of data storage (unlimited growth)

985 Android programmers won the oral offer of Alibaba P6 in 40 days. After the successful interview, they sorted out these interview ideas
随机推荐
One article introduces you to the world of kubernetes
How to view kubernetes API traffic by grabbing packets
EasyPlayer. JS play m3u8 error net:: err_ EMPTY_ Response, how to solve it?
Salesforce uses hyperlink formula field to implement custom jump
Arm learning (7) symbol table and debugging
Note 3 of disruptor: basic operation of ring queue (without disruptor class)
7 tips for preventing DDoS Attacks
What is pension finance? What are the pension financial products?
Software cost evaluation: basic knowledge interpretation of cosmoc method
CSDN articles crawl the top ten bloggers' articles and convert them to MD
The best Base64 encoding and decoding tutorial in the whole network, with 6 examples!
How to quickly convert stock code into int in quantitative trading?
Flink weapon: introduction to the open source platform streamx
How to realize court face recognition / flow statistics based on easycvr technology?
jdbc
Sockfwd a data forwarding gadget
Dart series part: asynchronous programming in dart
LMS Virtual. Derivation method of lab acoustic simulation results
A review of Tencent digital ecology conference · wechat low code special session
How to improve program performance