Category:Linux

  • A startup script example of real server (recommended)

    Time:2020-7-13

    VIP startup script of real server #!/bin/bash #chkconfig: 2345 50 50 #description: real server init script VIP=192.168.80.80 case $1 in “start”) echo “starting real server …” ifconfig lo:0 $VIP broadcast $VIP netmask 255.255.255.255 up echo “1”>/proc/sys/net/ipv4/conf/lo/arp_ignore echo “2”>/proc/sys/net/ipv4/conf/lo/arp_announce echo “1”>/proc/sys/net/ipv4/conf/all/arp_ignore echo “2”>/proc/sys/net/ipv4/conf/all/arp_announce ;; “stop”) echo “stoping real server …” ifconfig lo:0 $VIP down echo “0”>/proc/sys/net/ipv4/conf/lo/arp_ignore […]

  • What should I do if I fail to start after configuring vsftpd service in Linux system?

    Time:2020-7-13

    The solution to the boot failure after the successful installation of vsftpd in Linux is that the FTP port 21 is occupied, which causes the vsftpd service to fail to start normally 1. Check whether the vsftpdf service is installed successfullyrpm -qa|gerp vsft 2. Start the vsftpd service:service vsftpd start, as shown in the figure, […]

  • Linux system management command

    Time:2020-7-11

      View how commands are used Help list common shell names MKDIR — help lists the usage of the specified command (MKDIR) (parameter)     Command history Direction key up a command Key down next command     Clear the screen Clear just opens a new page downward, and you can still see the previous […]

  • How does Linux change the screen resolution? Linux screen resolution setting tutorial

    Time:2020-7-11

    When we install Linux system on the virtual machine, we find that it can’t be full screen, and there are black bars on both sides of the screen. If we can’t full screen, our interest in it will be greatly reduced. How can we change its screen resolution? 1. As shown in the figure below, […]

  • How to initialize Linux partition into physical volume and add physical volume to volume group

    Time:2020-7-11

    The commands used are 1、pvcreate  (physical volume create) 2、vgcreate  (volume group create) Example 1: creating a physical volume Pvcreate / dev / sdb1 — / dev / sdb1 is a partition! If an error occurs during initialization, it may be because the partition type of the partition is incorrect. The partition type requirement is 8e (Linux LVM) […]

  • Solve centos7 boot / etc/ rc.local The problem of non implementation

    Time:2020-7-10

    Recently discoveredcentos7Of/etc/rc.localCan’t boot execution, so take a serious look/etc/rc.localThe content of the file found the cause of the problem #!/bin/bash # THIS FILE IS ADDED FOR COMPATIBILITY PURPOSES # # It is highly advisable to create own systemd services or udev rules # to run scripts during boot instead of using this file. # # […]

  • Detailed explanation of commands listing PCI device and USB device in Linux system

    Time:2020-7-10

    lspci NAME Lspci – list all PCI devices [[]]Synopsis lspci [ options ] [[ ]]Description Lspci is a tool used to display all PCI bus devices in the system or all devices connected to the bus. In order to be able to use all the functions of this command, you need to have Linux 2.1.82 […]

  • Some problems of installing MySQL in Linux binary package

    Time:2020-7-9

    Step 1:Installation related dependency Yum install Perl Data Dumper Step 2:Initialize the internal information of MySQL database. / scripts / MySQL_ install_ db –basedir=/usr/local/mysql –datadir=/usr/local/mysql/data ———————————————- Whether the binary package can run successfully depends on whether the dependency of RPM package is resolved first. In other words, even if the RPM package cannot be installed, […]

  • CentOS common basic commands

    Time:2020-7-9

    1. Shutdown (system shutdown, restart and logout) command Shutdown – h now shut down the system (1)Init 0 shut down the system (2)Telinit 0 shut down the system (3)shutdown -h hours:minutes & Shut down the system at a predetermined timeShutdown – C cancel shutting down the system at a scheduled timeShutdown – r now restart […]

  • Using uname command to display system and hardware information in Linux system

    Time:2020-7-9

    Usage: uname [option]Output a set of system information. If the option is not followed, only the – s option is considered to be attached. – A, – all – outputs all information in the following order. Where – P andIf the detection result of – I is unknown, it is omitted– s, – kernel name […]

  • Linux learning day4: pipeline, redirection and environment variables

    Time:2020-7-9

    It is not enough to learn the commands of Linux system. Only by combining multiple commands in the way you want, can we improve the work efficiency. Today’s content is mainly about how to combine commands to make the input commands more accurate and efficient, and lay a good foundation for the next shell script. […]

  • On Linux package and compression and tar command

    Time:2020-7-8

    Packaging and compression In Linux, packaging and compression are two different concepts. It is very helpful for us to understand complex file suffixes pack When several files and directories are packed together into a large file, it is just a simple package. Therefore, the file size after packaging is generally larger than the total number […]