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

  • Centos 7 backup and restore Redis data
    Centos 7 backup and restore Redis data
    What is Redis? Redis is an in-memory key-value cache and store (i.e. database) that can also be persisted to disk. In this article, you will learn how to back up and restore your redis database on Centos7. Backup and Restore Instructions By default, Redis data will be saved to a .rdb file on disk, which is a point-in-time snapshot of the Redis data set. Snapshots are taken at specified intervals, so are perfect for backups. Data Backup In Centos7 and other Linux distributions, the default Redis database directory is /var/lib/redis. However, if you have changed the redis storage location, you can find it by typing: [
    LINUX 719 2024-09-02 14:02:32
  • Linux's love-hate relationship with ping packages
    Linux's love-hate relationship with ping packages
    By default, Linux systems allow ping, but in some cases, for security reasons, we set the server to disable ping. To temporarily allow the ping command, you can use the command: echo0>/proc/sys/net/ipv4/icmp_ignore_all. :0, represents permission; 1, represents prohibition of viewing the current settings: 0, for which we can ping and try using the ping command - t can continuously allow or prohibit ping. Modify the configuration file /etc/sysctl.conf and add a line as shown above. net.ipv4.icmp_echo_ignore_all=11 means prohibited.
    LINUX 1141 2024-09-02 14:01:10
  • Centos7 add delete Swap exchange partitions
    Centos7 add delete Swap exchange partitions
    Swap means: swap partition, similar to Windows virtual memory, but when the physical memory is insufficient, part of the hard disk space is used as virtual memory, thereby solving the problem of insufficient physical memory capacity. Advantages: cost savings. Disadvantages: Inadequate performance. This method is not limited to Centos7 and can be used on all Linux systems. Operating user: root. Add swap partition space. Use the dd command to create the swap partition file /dev/mapper/centos-swap, with a size of 2G: $ddif=/dev/zeroof=/dev/mapper/centos-swapbs=1024count=2048000. Format the swap partition. :
    LINUX 976 2024-09-02 13:50:43
  • Centos 7 smoothly and seamlessly upgrades PHP7.1.0 to PHP 7.1.5
    Centos 7 smoothly and seamlessly upgrades PHP7.1.0 to PHP 7.1.5
    Experimental environment: CentOS Linux release 7.3.1611 (Core) Kernel version: Linux version 3.10.0-514.el7.x86_641. There are two ways to check the PHP version, and the display results are the same. The first one #/usr/local/php/bin/php-v The second one #php-vPHP7.1.0(cli)(built:Dec17201617:00:32)(ZTS)Copyright(c)1997-2016ThePHPGroupZendEnginev3.1.0- dev,Copyright(c)1998-201
    LINUX 1410 2024-09-02 13:43:20
  • A brief introduction to common modules of ansible
    A brief introduction to common modules of ansible
    This article introduces commonly used modules. According to the official classification, the modules are classified by function into: cloud module, command module, database module, file module, asset module, message module, monitoring module, network module, notification module, package management module, source code control module, system module, Unit module, web facility module, windows module, please refer to the official page for details. Here we select some of the most commonly used modules from the officially classified modules for introduction (the commands module has been introduced in the previous article and will not be mentioned here). 1. The ping module tests whether the host is accessible. The usage is very simple and does not involve parameters: [root@361way~]#ansible10.212.52.252-mping10
    LINUX 683 2024-09-02 13:36:00
  • Introduction to Ansible Dynamic Inventory
    Introduction to Ansible Dynamic Inventory
    AnsibleInventory actually consists of two parts: static Inventory and dynamic Inventory. Static Inventory refers to the hosts and groups specified in the file /etc/ansible/hosts. DynamicInventory refers to obtaining the host list through an external script and returning it in the format required by ansible. To ansilbe command. This part generally combines the CMDB asset management system, zabbix monitoring system, crobble installation system, cloud computing platform, etc. to obtain host information. Since host resources generally increase or decrease dynamically, these systems generally update intelligently. We can use these tools to provide a
    LINUX 1060 2024-08-24 10:44:02
  • 7 ways to help you check the registration date of Linux users
    7 ways to help you check the registration date of Linux users
    Did you know, how to check the creation date of an account on a Linux system? If you know, what can you do? Did you succeed? If yes, how to do it? Basically Linux systems don't track this information, so what are the alternative ways to get this information? You may ask why am I checking this? Yes, there are situations where you may need to review this information and it will be helpful to you at that time. You can use the following 7 methods to verify. Use /var/log/secure Use aureport tool Use .bash_logout Use chage command Use useradd command Use passwd command Use last command Method 1: Use /var/l
    LINUX 1465 2024-08-24 07:31:32
  • Summary of ansible usage: ansible installation
    Summary of ansible usage: ansible installation
    1. Introduction Ansible is a configuration management and application deployment tool. Its functions are similar to the current industry configuration management tools Chef, Puppet, and Saltstack. Ansible is developed through Python language. The Ansible platform was created by Michael DeHaan, who is also the author of the well-known software Cobbler and Func. The first version of Ansible was released in February 2012. Ansible manages machines through the SSH protocol by default, so Ansible does not need to install a client program on the server. You only need to install Ansible on a server. After Ansible is installed, you can manage and control it.
    LINUX 1140 2024-08-24 07:31:14
  • How to determine whether a Linux disk is a solid state drive or a mechanical hard drive
    How to determine whether a Linux disk is a solid state drive or a mechanical hard drive
    Three methods to determine whether a Linux disk is a solid state drive or a mechanical hard drive: Method 1 determines the return value of cat/sys/block/*/queue/rotational (where * is the name of your hard drive device, such as sda, etc.), if it returns 1 If it returns 0, it means the disk cannot rotate, so it is an SSD. [pythontab@pythontab.com~]$cat/sys/block/sda/queue/rotational0[pythontab@pythontab.com~]$grep^/sys/block/*/queu
    LINUX 1345 2024-08-23 19:33:51
  • Interesting commands under Linux
    Interesting commands under Linux
    Let us learn the fun command screenfetch in Linux: display system and theme information. Installation and use: sudoaptinstallscreenfetchscreenfetch rendering: linux_logo: Linux version logo picture and system information. Installation and use: sudoaptinstalllinuxlogolinux_logo rendering: view the built-in logo list: linux_logo-f -LlistAvailableBuilt-inLogos:NumTypeAsciiNameDescription1ClassicYesa
    LINUX 1264 2024-08-22 19:58:45
  • rtop monitors remote hosts via SSH
    rtop monitors remote hosts via SSH
    rtop is a direct, interactive SSH-based remote system monitoring tool that collects and displays important system performance metrics such as CPU, disk, memory, and network metrics. It is written in Go and does not require any additional programs to be installed on the server to be monitored, except for an SSH server and login credentials. rtop basically collects various system performance information by starting an SSH session and executing certain commands on the remote server. Once the SSH session is established, it refreshes the information collected from the remote server every few seconds (5 seconds by default), similar to all other top-like applications in Linux (such as htop). Installation requirements: To install rtop make sure you have Go installed in Linux (
    LINUX 1034 2024-08-22 12:02:32
  • Use the Diff and Meld tools to compare the differences between two directories
    Use the Diff and Meld tools to compare the differences between two directories
    Generally, to compare two files under Linux, we will use diff (a simple command line tool derived from Unix) to display the differences between two computer files; it compares files line by line, and is very convenient to use. , pre-installed in almost all Linux distributions. The question is how can we compare two directories under Linux? Now, we want to know which files/subdirectories are common to both directories and which ones only exist in one directory. The general syntax for running diff is as follows: $diff[OPTION]…FILES$diffoptionsdir1dir2 By default, the output is sorted alphabetically by the file name of the file/subfolder, as shown in the screenshot below
    LINUX 670 2024-08-21 16:39:30
  • How to use awk to output fields and columns in text
    How to use awk to output fields and columns in text
    First of all, we need to know that awk can automatically separate the input line into several fields. Each field is a set of characters separated from other fields by an internal field separator. If you are familiar with Unix/Linux or know bashshell programming, then you should know what the internal field separator (IFS) variable is. The default IFS in awk is tab and space. The field separator in awk works as follows: when a line of input is read, it is split into different fields according to the specified IFS. The first set of characters is field one, which can be accessed through $1, and the second set of characters is field two. , can be accessed through $2, the third group of characters is field three, can be accessed through $3, and so on.
    LINUX 711 2024-08-21 07:32:02
  • Redis high availability practice
    Redis high availability practice
    0×01 Preface Redis is an open source log-type Key-Value database written in ANSIC language, supports network, can be memory-based and persistent, and provides APIs in multiple languages. Nowadays, Internet business data is growing at a faster rate, and data types are becoming more and more abundant, which puts forward higher requirements for data processing speed and capabilities. Redis is an open source in-memory non-relational database that brings a disruptive experience to developers. Designed from start to finish with high performance in mind, Redis is the fastest NoSQL database available today. While considering high performance, high availability is also an important consideration. Internet 7×24 uninterrupted service during downtime
    LINUX 1358 2024-08-20 16:51:04
  • Redis high availability practice
    Redis high availability practice
    0×01 Preface Redis is an open source log-type Key-Value database written in ANSIC language, supports network, can be memory-based and persistent, and provides APIs in multiple languages. Nowadays, Internet business data is growing at a faster rate, and data types are becoming more and more abundant, which puts forward higher requirements for data processing speed and capabilities. Redis is an open source in-memory non-relational database that brings a disruptive experience to developers. Designed from start to finish with high performance in mind, Redis is the fastest NoSQL database available today. While considering high performance, high availability is also an important consideration. Internet 7×24 uninterrupted service during downtime
    LINUX 921 2024-08-20 16:51:02

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