Tag:centos

  • Detailed procedures for installing redis 3.0.6 and configuring the cluster under CentOS 7

    Time:2019-10-24

    Install dependencies [[email protected] ~]# yum -y install gcc openssl-devel libyaml-devel libffi-devel readline-devel zlib-devel gdbm-devel ncurses-devel gcc-c++ automake autoconf Install redis [[email protected] ~]# wget http://download.redis.io/releases/redis-3.0.6.tar.gz [[email protected] ~]# tar xvf redis-3.0.6.tar.gz [[email protected] ~]# cd redis-3.0.6/ [[email protected] redis-3.0.6]# make MALLOC=libc [[email protected] redis-3.0.6]# make install Start the server Through the commandredis-serverTo start theredis server. As you can see from […]

  • Notes on CentOS rescue model experiment

    Time:2019-10-24

    Experimental notes on centos rescue model 1, first in the BIOS boot options to set the DVD drive boot or USB boot is also possible 2. Select “Rescue installed system” from the option that appears after the CD startup and press enter to confirm. 3, language selection, here we can choose the default, because it […]

  • How does CentOS set crontab to visit a web site regularly?

    Time:2019-10-23

    Linux crontab function syntax If you want to visit a website every 3 minutes, you can use: crontab -e Then type the following command: */3 * * * *  curl  http://www.baidu.com Where */3 means access every 3 minutes. Curl returns the content of HTTP (HTML) to the output.

  • Install fileinfo extensions to PHP7.0 on CentOs

    Time:2019-10-23

    Because the construction of the project is in a preliminary stage, it is inevitable that a series of problems occurred due to the immaturity of the environment. In the procedure of file operation, an error of lack of expansion was reported, which has been solved Have a look at the instructions given official, http://php.net/manual/zh/book… Solving […]

  • Linux system resources view (walker)

    Time:2019-10-23

    OS version lsb_release -a uname -a cat /proc/version System resource overview top memory free -h cat /proc/meminfo disk Disk capacity and partition status (unmounted partitions cannot be viewed) df -Th Disk capacity and partition status (you can view unmounted partitions) sudo fdisk -l sudo lsblk -f # /lib directory size du -sh /lib # /lib […]

  • 1. Install docker on centos7

    Time:2019-10-21

    Docker is becoming more and more popular. This is the first chapter of docker. Let’s follow it. Installation dependency yum install -y yum-utils device-mapper-persistent-data lvm2 Set up the yum warehouse of docker. yum-config-manager –add-repo https://download.docker.com/linux/centos/docker-ce.repo Before installation, you can view all docker versions in all warehouses. sudo yum list docker-ce –showduplicates | sort -r If […]

  • Improve performance, build MySQL read-write separation environment (1)

    Time:2019-10-21

    This is a scattered note before brother song. I’ll sort it out and share it with you! MySQL read-write separation is a very common requirement in Internet projects. Trapped in Linux and MySQL version problems, many people often fail to build. Today, brother song will give you a successful example. Later, I will share with […]

  • Linux view all users of a user group (Python Implementation)

    Time:2019-10-21

    code # encoding: utf-8 # author: walker # date: 2017-07-31 #Summary: Linux view all users of a user group # filename: group_users.py import sys #Print all members of a group def ShowGroupUsers(group_name): group_id = ‘err’ users = ” with open(‘/etc/group’) as f: for line in f: line = line.strip() vec = line.split(‘:’) if vec[0] == […]

  • How to solve the problem of CentOS boot system not displaying progress bar?

    Time:2019-10-21

    Test version: CentOS 6.6 To edit the startup grub profile: #VI / boot / grub / grub.conf or / etc / grub.conf soft connect files. The contents of the two files are the same. Delete the “rhgb” at the end of the kernel line to save and exit. Restart after deletion will not display the […]

  • 2. Configure the docker image source of alicloud

    Time:2019-10-20

    Warehouse image can be understood as a good environment for others to help you make. So you can use it directly. Docker image warehouse address: https://hub.docker.com Because there are walls, we configure domestic images. We use Alibaba cloud’s image address. https://dev.aliyun.com/search… //Configure and use alicloud image accelerator sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-‘EOF’ […]

  • Alibaba cloud deployment 2.mysql

    Time:2019-10-20

    mysql download Directly use Yum to quickly build. wget -i -c http://dev.mysql.com/get/mysql57-community-release-el7-10.noarch.rpm yum -y install mysql57-community-release-el7-10.noarch.rpm yum -y install mysql-community-server Start stop MySQL service start-up [[email protected] ~]# systemctl start mysqld.service Use PS – EF | grep Mysql to view and find that the MySQL service has been started. [[email protected] ~]# ps -ef | grep mysql […]

  • Mysql database basic operation command

    Time:2019-10-19

    Next: introduction to common commands for getting started with MySQL Today, I will introduce some basic commands for the operation of guantian MySQL database. Users and permissions Create user mysql>create user test identified by ‘[email protected]#’; Change Password 5.5 and previous commands mysql>set password for test=passowrd(‘[email protected]#3’); 5.6 and above mysql>update mysql.user set authentication_string=password(‘A1b2c3#[email protected]’) where user=’test’; Create […]