
Tomcat 8.5 install and configuration
Production environment: Serverversion: ApacheTomcat/8.5.16CentOSLinuxrelease7.3.1611(Core)x86-641.ApacheTomcat/8.5.16 depends on jre7 and above, but higher versions of jdk already include jre. For the installation of jdk&jre, please see "LinuxJAVAJDKJRE environment variable installation and installation" Configuration》2. Create tomcat exclusive user #groupaddtomcat#useradd-gtomcat-s/bin/falsetomcat or #useradd-gtomcat
Aug 10, 2024 pm 01:49 PM
Centos 7 SSH connection timeout automatic disconnection solution
Recently, I was installing software on Centos7, and it automatically disconnected after a while without looking at it. I didn’t know the progress of the software installation. I was so angry that I directly changed the sshd_config file, and I felt much better instantly. 1. Edit the sshd configuration file #vi/etc/ssh/sshd_config and find #ClientAliveInterval0#ClientAliveCountMax3 and change it to ClientAliveInterval60ClientAliveCountMax32. Restart the sshd service #systemctlrestartsshd so that if the connection to centos7 is not operated for a long time, the connection will not time out.
Aug 10, 2024 am 10:44 AM
MariaDB database is installed and configured based on GTID master-slave synchronous replication
Operating system: CentOS Linux release 7.3.1611 (Core) Database: MariaDB-10.2.6-linux-glibc_214-x86_64 Master server: 10.10.10.56 Slave server: 10.10.10.1631. What to do today, one-way master-slave synchronization About MariaDB (MySQL ) For database installation, please refer to "Centos7.3x64-bit Binary Installation (MySQL) MariaDB10.1.20 Database Production". The configuration process of the MariaDB (MySQL) server cluster begins below. 2. In the MariaDB (MySQL) configuration file
Aug 09, 2024 pm 01:32 PM
Installation, common formats and parameter introduction of lsscsi command
1. View the lsscsi command 1. Introduction The lsscsi command is used to list SCSI devices (or hosts) and their attributes. lsscsi is not an external command. You need to install the corresponding package of lsscsi. After installation, the lsscsi command can be used. The lsscsi command can easily tell what a solid state drive is, which is a SATA disk, and which is an FC disk. If the H:C:T:L parameter is given, it will be used as a filter for linux to view scsi devices and only match the devices it is enumerated. Here H refers to Host, C refers to Channel, T refers to Idlinux to view the scsi device, and L refers to Lun. 2. Install [root@linuxpro
Aug 08, 2024 am 11:23 AM
In-depth analysis of the Linux kernel source code and exploration of the essence of the operating system
1. Kernel source code I see that the complexity of the Linux kernel code makes many people "daunted". It is precisely because of this that people's understanding of Linux is only at a general level. If you want to analyze Linux and delve into the nature of the operating system, reading the kernel source code is the most effective way. We all know that if you want to become an excellent programmer, Linux kernel source code analysis requires a lot of practice and code compilation. Programming is still important, and often people who only program can easily limit themselves to their own areas of knowledge. If we want to expand the breadth of our knowledge, we need to be more exposed to code written by others, especially code written by people who are more advanced than us. Through these ways, we can break out of the confinement of our own knowledge circle and enter the knowledge circle of others.
Aug 08, 2024 am 09:33 AM
Understand the session garbage collection mechanism in php
1. The session generation mechanism in PHP. Let’s first analyze how a session is generated in PHP. The purpose of designing session is to maintain various states of each user to make up for the shortcomings of the HTTP protocol (stateless). We now have a question. We all know that session is saved on the server. Since it is used to maintain the status of each user, what does it use to distinguish users? At this time, you have to use cookies. When we call session_start(); in the code, PHP will generate a file each to the SESSION storage directory (default is /tmp/) and the client's cookie directory. session
Aug 08, 2024 am 09:08 AM
What process do you go through when entering a URL in your browser?
1: Description of related concepts: 1.1: DNS (DomainnameSystem) cache: (Domain name system) (check the ipconfig/displaydns of the local machine) After the computer resolves a domain name, it associates this domain name with the host IP address , the computer saves this relationship in the DNS cache table. The next time the computer enters www.baidu.com, the computer will know the IP address corresponding to this domain name by searching the DNS cache, and no longer perform domain name resolution, which improves Improved efficiency 1.2: IP address: The IP address corresponds to a house number. We can find the location of the host through this address. 1.3: Domain name: (domainname)
Aug 08, 2024 am 08:16 AM
Modify hosts file and hostname: easily realize domain name and IP address mapping
Directory 1. Modify the hosts file. The hosts file is a configuration file under /etc. The LINUX delete directory records the IP address corresponding to the domain name or host name. Every computer on the Internet will have an IP address, which is similar to a specific door steel number. This machine can be accessed through the IP address. However, it is difficult to remember the IP address and modify it in the linuxhosts file, so you can use the method of mapping the IP address to the domain name to access the specific host by accessing the domain name. The hosts file records this mapping relationship. Change hosts: First, ping Baidu to get an ipvim/etc/hosts. Add the IP copied above to hosts where baidubaidu1 leads to the previous IP two.
Aug 08, 2024 am 01:54 AM
What should I do if the Linux command line displays garbled characters? Set the character encoding to UTF-8 to solve the problem
When the Linux command line displays garbled characters, you can try setting the character encoding to UTF-8. It can be set through the following commands:,, "bash, exportLC_ALL=en_US.UTF-8, exportLANG=en_US.UTF-8," In Linux systems, it is a common problem for the command line to display garbled characters, which is generally due to character encoding. This article will introduce in detail how to solve the problem of garbled characters displayed on the Linux command line due to incorrect settings. 1. Understand character encoding. Before solving this problem, we need to understand the basic concept of character encoding. Character encoding is a correspondence between characters (such as letters, numbers, and punctuation marks) and two's complement numbers (0 and 1). relations advance
Aug 08, 2024 am 01:37 AM
Detailed steps and methods for modifying the hosts file in Android system
For some reasons, it may be necessary to change the domain name specified in the hosts file to the corresponding IP address. Android is a Linux-based system. Similar to Linux, it is set up through the hosts file. Under Android, /etc is the Linux training link to /system/etc. We need to change /system/etc/hosts to achieve this. And this file is read-only and cannot be changed directly through the shell. This can be changed by connecting to a PC using adb. The steps are as follows: 1. Obtain root permissions: adbroot 2. Set /system to be readable and writable: adbremount 3. Copy the hosts file to PC: a
Aug 07, 2024 pm 10:43 PM
Red Hat Linux system download, installation, system monitoring, and process management tutorials
Table of Contents of Series Articles Chapter 1: Redhat Linux System Download and Installation Chapter 2: Linux Users and Groups Chapter 3: Linux File Management Chapter 4: Linux Directory Management Chapter 5: Linux Text Editor Chapter 6: Linux File Search and Management Chapter 7: Linux input, output redirection and pipeline Chapter 8: Linux package management Chapter 9: Linux system monitoring and process management Article table of contents Preface The main content of this blog is about system monitoring and process management, etc. The operation is still based on experiments. Follow the old rules and remember to take a snapshot in advance. 1. System monitoring query information uname-runame-alscpuhostnametoptop command
Aug 07, 2024 pm 09:36 PM
STM32 and Linux: From hardware to software, the key to mastering the operating system mechanism
Hello, landlord! I'm not going to talk to you about the big ideas like those above, but I'm going to talk to you about the practical things. Linux and stm32 are a software platform and a hardware platform, which are completely different (remember, they are platforms!). Let's put it this way, since you like microcontrollers, you should first learn the detailed explanation of stm32 embedded Linux device driver development and lay a solid foundation for the hardware, especially various buses (usb, iic, spi...), various peripheral modules (infrared , Wenhu, mpu6050...), and then focused on ucosii, that is to say, learn to complete your tasks within the framework of the operating system, rather than simply writing programs - the understanding of the operating system mechanism Grasp is the key to distance yourself from the MCU friends around you;
Aug 07, 2024 pm 09:00 PM
Centos6.4 Installation Guide: Detailed Graphical Tutorial on Installation via USB Disk
If you want to install Centos6.4, in fact, the first thing you will think of is using a USB flash drive as a carrier. Because the USB flash drive has a relatively high usage rate, is easy to carry and efficient in storage, it is one of the best choices. Tomorrow the editor will explain it to you. Provides detailed graphic and text strategies for installing Centos 6.4 via USB flash drive. 1. First we need to download UltraISO (floppy disk) and Centos6.4 image, install the software, insert the USB disk, open the UltraISO software, find the Centos6.4 installation image (as shown in the figure), delete other files and keep only images and isolinux Two folders and the TRANS.TBL file, only these three files are enough. 2. As shown in the figure, select "Write" under the "Start" button
Aug 07, 2024 pm 08:40 PM
H2Miner virus invades Windows/Linux platform, beware of long-term persistence of mining programs
H2Miner alertness level★★★Affected platforms: Windows/Linux virus execution body Description Attackers use vulnerabilities to invade Windows platforms and Linux platforms. On the Windows platform, the attacking host downloads and executes the XML file wbw.xml, executes a PowerShell command in the XML file, and downloads a script named 1.ps1. This script downloads the mining program and mining configuration file and renames it for execution. , create a scheduled task and execute the 1.ps1 script every 30 minutes to achieve persistence and stay on the attack host all year round; on the Linux platform, the attack host downloads and executes an XML file named wb.xml, which is embedded using the same method. Got it
Aug 07, 2024 pm 08:40 PM
Hot tools Tags

Undress AI Tool
Undress images for free

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Clothoff.io
AI clothes remover

Video Face Swap
Swap faces in any video effortlessly with our completely free AI face swap tool!

Hot Article

Hot Tools

vc9-vc14 (32+64 bit) runtime library collection (link below)
Download the collection of runtime libraries required for phpStudy installation

VC9 32-bit
VC9 32-bit phpstudy integrated installation environment runtime library

PHP programmer toolbox full version
Programmer Toolbox v1.0 PHP Integrated Environment

VC11 32-bit
VC11 32-bit phpstudy integrated installation environment runtime library

SublimeText3 Chinese version
Chinese version, very easy to use
