current location:Home > Technical Articles > Backend Development

  • Use Memcached as session server to maintain session
    Use Memcached as session server to maintain session
    Three ways to maintain sessions: Sessionsticky session binding: By implementing a unified session in the configuration of the front-end scheduler and sending it to the same back-end server. Sessioncluster Session cluster: By configuring Tomcat to keep the information of all Tomcat sessions consistent. Sessionserver session service: Hand over all sessions to specialized session service management. Here we explain the third type, using Memcached as session server. 1. Architecture diagram. System environment. All servers use CentOS7.3. All required software packages. The following files must be placed on the tomcat server host.
    Linux . tomcat 985 2024-07-21 20:03:32
  • Solution to the problem of regularly restarting tomcat script and not executing it after adding crontab
    Solution to the problem of regularly restarting tomcat script and not executing it after adding crontab
    I found a script on the Internet to restart tomcat regularly. It is possible to execute it automatically, but it will not execute after adding crontab. The restart script is as follows restart_tomcat.sh#!/bin/bashtomcat_home=/usr/local/tomcat8SHUTDOWN=$tomcat_home/bin/shutdown.shSTARTTOMCAT=$tomcat_home/bin/startup.sh$SHUTDOWN$STARTTOMCAT scheduled task 02***cd/opt&& ./restart_tomca
    Linux . tomcat 528 2024-07-19 11:07:03
  • Introduction to how to modify the groups to which Linux users belong and related practical tools
    Introduction to how to modify the groups to which Linux users belong and related practical tools
    How Linux changes the groups to which a user belongs - **groupadd** and **groupdel**: used to add and delete user groups respectively. -**chown** and **chgrp**: used to modify the owner and group of a file or directory. There are also some practical tools related to user management: -**pwcov**: synchronize `/etc/passwd` to `/etc... Use the mkdir command to create directories and subdirectories under Linux. For example, `mkdir- m=r--letter` will create a directory named `letter` with permissions set to the owner only having read permissions, and the user group and other users having no execute and write permissions. generally,
    Linux . tomcat 280 2024-07-19 02:52:35
  • Online course selection management system based on SSM framework: a powerful tool to improve the efficiency of educational administration management in colleges and universities
    Online course selection management system based on SSM framework: a powerful tool to improve the efficiency of educational administration management in colleges and universities
    Other projects: Design and implementation of seismic data processing software based on Linux, click on the author's homepage Catalog 1 System Introduction With the development of the information age, design and implementation of seismic data processing software based on Linux, the Internet has made people's lives more and more convenient. In recent years, in the face of the new enrollment expansion policies of major colleges and universities, the number of middle school students in various colleges and universities has suddenly increased, and the corresponding school academic staff will also face a shortage. This has reduced the difficulty for academic staff in managing the course selection information of middle school students. , the traditional course selection in previous years was gradually eliminated because it was a waste of manpower and material resources. At this time, the emergence of the online course selection management system will promote the increasingly standardized course selection management behavior of middle schools, thereby greatly reducing the casualness of middle school course selection management in previous years and greatly improving the efficiency of course selection management.
    Linux . tomcat 280 2024-07-18 10:10:44
  • Detailed explanation of Elasticsearch's basic friend Logstash
    Detailed explanation of Elasticsearch's basic friend Logstash
    Logstash is a powerful data processing tool that can realize data transmission, format processing, formatted output, and has powerful plug-in functions, which are often used for log processing. 1. Principle Input can extract data from files, storage, and databases. Input has two options. One is to hand it over to Filter for filtering and pruning. The other is to hand it directly to OutputFilter to dynamically convert and parse the data. Data information can be filtered and trimmed in a customized way. Output provides many output options. You can send data to the place you want to specify, and can flexibly unlock many downstream use cases. 2. Installation and use 1. Install wgethttps://artifacts
    Linux . tomcat 831 2024-07-18 06:56:47
  • Introduction to Spring Boot in Java
    Introduction to Spring Boot in Java
    Spring Boot: Spring Boot is a powerful framework for building Java-based, production-grade applications with minimal effort. It simplifies the development process by providing a set of conventions and defaults for common use cases, allowing developer
    Java Tutorial . tomcat 714 2024-07-18 06:12:50
  • Nginx+Tomcat deployment operation of Angular+javaweb project
    Nginx+Tomcat deployment operation of Angular+javaweb project
    Initially, I used ngbuild-prod-aot to compile and package. Note here that since it is now officially built-in, you only need to enter ngbuild–prod when packaging. Here you can compare it with the size of my project: ngbuild: 8,348,761 bytes ngbuild–aot: 9,232,405 bytes ngbuild–prod: 1,839,811 bytes ngbuild–prod–aot: 1,839,811 bytes Finally, it can be seen that ngbuild–prod can be completed. Minimum packaging for productization. I don’t understand something here. The pre-compiled build is larger than the regular build. I hope it will be bigger.
    Linux . tomcat 334 2024-07-16 12:41:29
  • How to upload files to image server in Tomcat container on Linux
    How to upload files to image server in Tomcat container on Linux
    A recent project requirement is to upload files to a picture server. The picture server is a tomcat container deployed on Linux. The Linux system uploads files. Not much to say about Linux e-books. Just code a tool class. Done: packagecom.supermap.sbsm.util;importcom.jcraft.jsch.Channel;importcom.jcraft.jsch.ChannelSftp;importcom.jcraft.jsch.JSch;importcom.jcraft.jsch.Session;
    Linux . tomcat 900 2024-07-11 18:35:53
  • Analyze N ways to optimize Tomcat performance
    Analyze N ways to optimize Tomcat performance
    Tomcat is often the default development environment for JavaWeb practitioners, but the default configuration of Tomcat as a production environment, especially the configuration of memory and threads, is very low by default and can easily become a performance bottleneck. Fortunately, Tomcat still has a lot of room for improvement. Below Let’s introduce Tomcat optimization, which can be divided into memory, thread, and IO. Tomcat is often the default development environment for JavaWeb practitioners. However, Tomcat’s default configuration as a production environment, especially the configuration of memory and threads, is very low and easy by default. It has become a performance bottleneck. Fortunately, Tomcat still has a lot of room for improvement. The following introduces Tomcat optimization, which can be divided into memory, threads, and IO. 1:
    Linux . tomcat 620 2024-06-14 21:10:00
  • Teach you Tomcat URL rewriting
    Teach you Tomcat URL rewriting
    Preparation for the early installation of JDKyuminstalljava-1.8.0-openjdk-develvim/etc/profile.d/jdk.shexportJAVA_HOME=/usr/java/latest#First define the environment variable of JAVA_HOME exportPATH=$JAVA_HOME/bin:$PATH#and then append./ etc/profile.d/jdk.sh install tomcatyuminstalltomcattomcat-admin-webapps.noarch\tomcat-webapps.noarcht
    Linux . tomcat 529 2024-06-13 19:29:03
  • Tutorial on using useradd and passwd commands in Linux system
    Tutorial on using useradd and passwd commands in Linux system
    #useradd–d/usr/sam-msam This command creates a user sam. The -d and -m options are used to form a home directory /usr/sam for the login name sam (/usr is the default user directory. parent directory). Assume that the current user is sam, then the following command changes the user's own password: #passwdOldpassword:******Newpassword:*******Re-enternewpassword:**********if it is super User, you can specify a password for any user using: #passwdsamNewpassword:*******Re-en
    Linux . tomcat 368 2024-06-12 22:36:26
  • How to choose the appropriate Java framework to maximize development efficiency?
    How to choose the appropriate Java framework to maximize development efficiency?
    Learn how to choose a Java framework to improve development efficiency: Spring Boot is suitable for fast web applications, with simple configuration and convenient integration. Quarkus is purpose-built for cloud-native applications, with fast startup times and native support for container technology. PlayFramework is a full-stack framework for building web applications and APIs with rich features. Hibernate is an ORM framework that simplifies persistence operations and allows the use of Java classes to interact with the database. Selection criteria include application type, performance requirements, team skills, and ecosystem support. Practical cases demonstrate the use of SpringBoot to build web applications and Quarkus to build
    Java Tutorial . tomcat 1030 2024-06-06 11:12:57
  • The role of Java frameworks in modern DevOps
    The role of Java frameworks in modern DevOps
    Java frameworks play a key role in modern DevOps practices, simplifying development and deployment and improving quality through pre-built components, conformance standards, automated tasks, and scalability. Specific benefits include: Code reuse Consistency and standardization Improved efficiency Scalability
    Java Tutorial . tomcat 236 2024-06-05 22:01:01
  • How does the Java framework simplify deployment and operation and maintenance?
    How does the Java framework simplify deployment and operation and maintenance?
    The Java framework simplifies the deployment and operation of Java applications by providing out-of-the-box functionality (database connection pooling, web server integration, error handling, etc.) and simplified configuration interfaces (such as Spring's annotation configuration), allowing developers to Focus on business logic and ensure application robustness and maintainability.
    Java Tutorial . tomcat 986 2024-06-05 20:45:59
  • What are the open source and commercial options for java frameworks?
    What are the open source and commercial options for java frameworks?
    Java framework selection: Open source: Spring Framework, Hibernate, Junit, Apache Tomcat. Commercial: JBossEAP, OracleWebLogicServer, IBMWebSphereLibertyProfile. The choice depends on application needs: open source offers flexibility, commercial offers enterprise-grade functionality.
    Java Tutorial . tomcat 200 2024-06-05 20:12:00

Tool Recommendations

jQuery enterprise message form contact code

jQuery enterprise message form contact code is a simple and practical enterprise message form and contact us introduction page code.
form button
2024-02-29

HTML5 MP3 music box playback effects

HTML5 MP3 music box playback special effect is an mp3 music player based on HTML5 css3 to create cute music box emoticons and click the switch button.

HTML5 cool particle animation navigation menu special effects

HTML5 cool particle animation navigation menu special effect is a special effect that changes color when the navigation menu is hovered by the mouse.
Menu navigation
2024-02-29

jQuery visual form drag and drop editing code

jQuery visual form drag and drop editing code is a visual form based on jQuery and bootstrap framework.
form button
2024-02-29

Organic fruit and vegetable supplier web template Bootstrap5

An organic fruit and vegetable supplier web template-Bootstrap5
Bootstrap template
2023-02-03

Bootstrap3 multifunctional data information background management responsive web page template-Novus

Bootstrap3 multifunctional data information background management responsive web page template-Novus
backend template
2023-02-02

Real estate resource service platform web page template Bootstrap5

Real estate resource service platform web page template Bootstrap5
Bootstrap template
2023-02-02

Simple resume information web template Bootstrap4

Simple resume information web template Bootstrap4
Bootstrap template
2023-02-02

Cute summer elements vector material (EPS PNG)

This is a cute summer element vector material, including the sun, sun hat, coconut tree, bikini, airplane, watermelon, ice cream, ice cream, cold drink, swimming ring, flip-flops, pineapple, conch, shell, starfish, crab, Lemons, sunscreen, sunglasses, etc., the materials are provided in EPS and PNG formats, including JPG previews.
PNG material
2024-05-09

Four red 2023 graduation badges vector material (AI EPS PNG)

This is a red 2023 graduation badge vector material, four in total, available in AI, EPS and PNG formats, including JPG preview.
PNG material
2024-02-29

Singing bird and cart filled with flowers design spring banner vector material (AI EPS)

This is a spring banner vector material designed with singing birds and a cart full of flowers. It is available in AI and EPS formats, including JPG preview.
banner picture
2024-02-29

Golden graduation cap vector material (EPS PNG)

This is a golden graduation cap vector material, available in EPS and PNG formats, including JPG preview.
PNG material
2024-02-27

Home Decor Cleaning and Repair Service Company Website Template

Home Decoration Cleaning and Maintenance Service Company Website Template is a website template download suitable for promotional websites that provide home decoration, cleaning, maintenance and other service organizations. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-05-09

Fresh color personal resume guide page template

Fresh color matching personal job application resume guide page template is a personal job search resume work display guide page web template download suitable for fresh color matching style. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-29

Designer Creative Job Resume Web Template

Designer Creative Job Resume Web Template is a downloadable web template for personal job resume display suitable for various designer positions. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28

Modern engineering construction company website template

The modern engineering and construction company website template is a downloadable website template suitable for promotion of the engineering and construction service industry. Tip: This template calls the Google font library, and the page may open slowly.
Front-end template
2024-02-28
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!