current location:Home > Technical Articles > System Tutorial > LINUX

  • Detailed explanation on the installation and use of rz and sz commands to transfer files
    Detailed explanation on the installation and use of rz and sz commands to transfer files
    To use rz and sz commands to transfer files, you need to install lrzsz on the server: yum-yinstall lrzsz command sz, rz usage method. The r in rz means received. When rz is entered, it means the server receives the file, and the official file is uploaded locally. to the server. The s in sz means send. When sz is entered, it means that the server wants to send files, that is, it sends files from the server to the local, or the local downloads files from the server. Note: Whether it is send or received, the action is initiated on the server. rz usage: Note: When uploading, if the linux directory uploaded to has a file with the same name, it will be difficult to upload. You need to delete lin first.
    LINUX 724 2024-07-19 16:49:07
  • Timer Timer's various application methods and advantages and disadvantages under Linux
    Timer Timer's various application methods and advantages and disadvantages under Linux
    Timer Timer has a wide range of application scenarios. There are several ways to apply timers in Linux under Linux: 1. Hongqi Linux desktop version, using sleep() and usleep(). The sleep accuracy is one second, and the usleep accuracy is 1 microsecond. Specifically No more code is written. The disadvantages of using these techniques are obvious. In Linux systems, sleep functions cannot guarantee accuracy. Especially when the system load is relatively heavy, sleep usually times out. 2. The accuracy of these methods using the semaphore SIGALRM+alarm() can reach one second. With the help of the semaphore mechanism of the *nix system, first register the semaphore SIGALRM processing function and call ala
    LINUX 904 2024-07-19 15:52:09
  • Analysis of the maximum number of concurrent TCP connections and identification methods for a single machine in network programming
    Analysis of the maximum number of concurrent TCP connections and identification methods for a single machine in network programming
    In network programming, in TCP applications, the server eavesdrops on a fixed port in advance, the client actively initiates a connection, and a TCP connection is established after a three-way handshake. What is the maximum number of concurrent TCP connections for a single machine? How to mark a TCP connection. Before determining the maximum number of connections, let's first take a look at how the system marks a TCP connection. The system uses a 4-tuple to uniquely identify a TCP connection: {localip, localport, remoteip, remoteport}. Maximum number of TCP connections for a client. Each time a client initiates a TCP connection request, unless the port is bound, the system will generally select an idle local port (localport).
    LINUX 436 2024-07-19 13:09:22
  • 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 688 2024-07-19 11:07:03
  • Kali Linux SSH login troubleshooting
    Kali Linux SSH login troubleshooting
    Today I wanted to use Kali to do something bad, but what I didn't expect was that after the installation was completed, SSH could not go up. I was really unhappy. Let's take a picture first to see what happened, so that children with the same problem can know how to solve it. this! ! ! In fact, I forgot to enable the SSH service, so I need to enable the SSH service in Kali. The command is as follows: #servicesshdstart. Then reconnect, otherwise the following problems will occur (this is the focus of today). The SSH connection has been successful. Next, I was asked to enter a password, but it seemed that the password was wrong no matter how I entered it. Until the end, it prompted "Permission denied, please try again." This means that I do not have permission.
    LINUX 343 2024-07-19 05:47:49
  • How to modify the maximum open file limit for Linux system users?
    How to modify the maximum open file limit for Linux system users?
    1. Changes in the file number limit 1. View the maximum open file limit for Linux system users at the user level: #ulimit-n1024(1)vi/etc/security/limits.confmysqlsoftnofile10240mysqlhardnofile10240 where mysql specifies the limit on the number of open files for that user to be changed. The '*' sign can be used to indicate changing the limit for all users; soft or hard specifies whether to change the soft limit or the hard limit; 10240 specifies the new limit value that you want to change, that is, the maximum number of open files (please note that the soft limit value must be greater than or equal to the hard limit). (2)vi/etc/pam.d/lo
    LINUX 395 2024-07-19 04:59:42
  • 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 509 2024-07-19 02:52:35
  • Centos 7 binary installation and configuration MariaDB database
    Centos 7 binary installation and configuration MariaDB database
    Since each company's database server version is different, I still recommend everyone to use the Mariadb database. At least for now, the community and products are very stable. As for any new features, it is recommended to go to its official website to learn more about the features. Check the system version command $cat/etc/redhat-releaseCentOSLinuxrelease7.4.1708(Core)x64 Install MariaDB (MySQL) Download the MariaDB binary installation package: https://downloads.mariadb.org Unzip and install the Mariadb-devel static library: $yuminstallmariadb- develn
    LINUX 388 2024-07-19 02:20:18
  • Detailed introduction and usage of code implementation of forwarding server and proxy server
    Detailed introduction and usage of code implementation of forwarding server and proxy server
    The code was written after work. The code is divided into forwarding server and proxy server. Let’s talk about the forwarding server first. Although the forwarding server can also be said to be a redirection server, Linux uses a proxy server. For example, the forwarding server eavesdrops on port 80. If a browser user accesses the server IP (browser requests port 80 by default), after the forwarding server receives the browser user's request, it redirects the browser user's request to other ports on this machine or to designated ports on other machines on the same public network. Let's talk about the proxy. Let me explain the server first. My proxy server can only proxy designated websites or other customers who can proxy, such as SVN services built on the external network or intranets that are inaccessible in some places.
    LINUX 464 2024-07-19 02:17:58
  • How to run stable diffusion using school high-performance GPU without root access and network
    How to run stable diffusion using school high-performance GPU without root access and network
    As we all know, stablediffusion usually cannot be driven by laptop GPUs. It is said that at least 4GB of GPUVRAM is needed, but it is not enough if you want to use it at "normal speed (1)". Want to use the cloud? Some cloudgpu rental prices are acceptable, and they usually don't allow you to store files. Opening a cloud storage is another expense, and it's troublesome to transfer files to and from them. So I (mainly my tutor) decided to use the GPU from the middle school in order to save money. (1) Approximate reference regardless of GPU model speed: My GPU2GB: 3 minutes for one picture. Linux uses a proxy server for Linux system programming. Friends AGPU6GB: 50 seconds for one picture. Friends BGPU32GB: 2S for one picture.
    LINUX 837 2024-07-19 00:30:09
  • How to end a process under Linux: Detailed explanation of normal and abnormal termination
    How to end a process under Linux: Detailed explanation of normal and abnormal termination
    In the first two chapters, we learned about creating processes. In this chapter, we will learn how to end the process under Linux. In Linux, there are 3 ways to end the process normally and 2 ways to terminate abnormally: 1. Normal end: a. Call return in the main function. This is equivalent to calling exit. b. Call the exit function. According to the definition of this function in ANSIC, when called, all registered exit handles will be executed, all standard I/O streams will be closed, and file descriptors and multi-processes (parent processes and subprocess), jobs, etc., so it is not sound for Linux systems. c. Call the _exit function. exit is called by _exit, turn off some li
    LINUX 614 2024-07-18 22:11:07
  • Mariadb learning summary (4): data insertion, deletion and modification
    Mariadb learning summary (4): data insertion, deletion and modification
    INSERT insert data INSERT statement format: INSERT[LOW_PRIORITY|DELAYED|HIGH_PRIORITY][IGNORE][INTO]tbl_name[PARTITION(partition_list)][(col,...)]{VALUES|VALUE}({expr|DEFAULT},. ..),(...),...[ONDUPLICATEKEYUPDATEcol=expr[,col=expr]...]The table structure is as follows: MariaDB[mydb]>DESCuser;+------
    LINUX 1147 2024-07-18 19:06:39
  • How to adjust the maximum number of socket connection limits for web servers and cache servers under high concurrency
    How to adjust the maximum number of socket connection limits for web servers and cache servers under high concurrency
    Web server and cache server, under high concurrency, adjust the limit of the maximum number of socket connections: 1. Change the limit of the maximum number of files that a user process can open. Effective immediately: ulimit-nxxx takes permanent effect: echo "ulimit-HSn65536">>/etc/rc.localecho "ulimit-HSn65536">>/root/.bash_profileulimit-HSn655362, changes the limit of the maximum number of TCP connections by the network kernel. /etc/sysctl.conf 1. On the Linux platform,
    LINUX 383 2024-07-18 18:44:23
  • Centos7 default firewalld firewall command
    Centos7 default firewalld firewall command
    Basic operations; #systemctlstartfirewalld//Start #systemctlstatusfirewalld//Status #systemctldisablefirewalld//Disable #systemctlstopfirewalld//Stop systemctl is an indispensable management tool in centos7. It has all the functions of service and chkconfig; #systemctlstartfirewalld.service//Start A certain service #systemctlstopfirewalld.service//Close a certain service
    LINUX 966 2024-07-18 18:08:20
  • Linux uniq command example
    Linux uniq command example
    Note that uniq will not remove duplicate rows unless they are adjacent. Therefore, you may need to sort them first, or combine the sort command with uniq to get the results. Let me show you some examples. First, let's create a file with some repeated lines: viostechnix.txtwelcometoostechnixwelcometoostechnixLinuxisthecreatorofLinux.LinuxissecurebydefaultLinuxisthecreatorofLinux.Top500supercomputersarepoweredbyL
    LINUX 580 2024-07-18 16:17:06

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