Tag:Common commands

  • MySQL master-slave replication practice


    Basic information Primary: root pwd1From: root pwd2 backups Copy / etc / MySQL / mysql.conf.d/mysqld.cnf of the two servers to / etc / MySQL / mysql.conf.d/mysqld.cnf.bak for data recovery Master server configuration # bind-address = server-id = 1 log_bin = /var/log/mysql/mysql-bin.log Comment out bind address to, allow remote connection, and open […]

  • Practice series – Kafka cluster deployment


    Version selection kafka_2.12- number Description: Kafka is developed using Scala. The previous 2.12 is the version number of Scala, and the later is the version number of Kafka.Version 0.11 is already a relatively complete version of Kafka. The later versions are all kinds of enhancements to streaming. If it is only used as a message […]

  • Practice series – Kafka Eagle deployment


    Version selection v2.0.6 Download address https://codeload.github.com/s… Deployment details Because Kafka Eagle uses JMX to pull data, you need to modify the Kafka startup script.vim kafka-server-start.sh 28 if [ “x$KAFKA_HEAP_OPTS” = “x” ]; then 29 export KAFKA_HEAP_OPTS=”-Xmx1G -Xms1G” 30 fi Change to 28 if [ “x$KAFKA_HEAP_OPTS” = “x” ]; then 29 export KAFKA_HEAP_OPTS=”-server -Xms2G -Xmx2G -XX:PermSize=128m […]

  • How do I run Linux on windows? Here is a guide!


    Author: majianguo link:https://www.cnblogs.com/majianguo/p/8047676.html I’ve known some windows subsystems for Linux before, and I heard it mentioned recently, so I installed an Ubuntu on my windows 10 professional edition. It’s really convenient to run. There’s no need to install desktop virtualization applications to develop Linux programs on windows in the future. Here are the specific steps. […]

  • Common commands of mongodb and solutions to errors caused by insufficient free space for journal files


    Mongodb common commands: <!– View current database — >db <!– View all databases — >show dbs <!– Connect to XXX database — >use xxx <!– View all tables in the current database — >show collections <!– View data in YYY table — >db.yyy.find() <!– Delete current database — >db.dropDatabase() report errorsInsufficient free space for journal […]

  • Record some work knowledge


    It’s said that learning while summing up, progress will be faster~ JS Understand async & defer thoroughly Four methods of judging JS data type Using async / await to deal with Async Explain promise in vernacular (1) Some ways to deal with array This usage Notes on Vue development Detailed explanation of JavaScript operation mechanism: […]

  • Git usage and common commands


    Git application process in team project 1. First, from a git remote warehouse clone project to the local Git clone warehouse address 2. Create development branch Generally, we don’t write code on the master branch, but create a new branch git checkout -b test 3. Modify the code on the test branch, such as completing […]

  • Git common command sorting


    preface Git will not be introduced here. The table is afraid when it sees the command line. These are the common commands, which basically meet more than 99% of the project requirements. It is very practical. text   1、 Common git commands     1.1  git clone <url> [<directory>] From the remote library clone code to the local directory, […]

  • Merge multiple commits using git rebase


    In normal software development, each team uses a public warehouse (GIT warehouse). Whenever there is a new requirement, we will pull out a feature branch, and then develop and submit personal code on this feature branch. I have a habit: in order to ensure the security of the code, I will submit the personal local […]

  • Common commands of CONDA


    Common commands of CONDA Create environment conda create -n xxxx python=3.5 Activation environment source activate xxxx Exit environment source deactivate Replication environment conda create –name new_env_name –clone old_env_name Export environment conda env export > environment.yml Create environment conda env create -f environment.yml View all environments conda env list View package conda list Installation package conda […]

  • [git] common commands


    Git common commands View submission history git log –pretty git log –pretty=oneline -n git log –pretty=format:”%h %s” –graph discard changes When the file is not put into the staging area git checkout — <filepath> git checkout — . The file has been put into the staging area git reset HEAD <filepath> git reset HEAD . […]

  • Installation and configuration of MySQL 5.7


    Download Yum repository wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm Install Yum repository yum -y localinstall mysql57-community-release-el7-11.noarch.rpm Install MySQL Online yum -y install mysql-community-server Modify configuration #cat /etc/my.cnf [mysqld] user=mysql port=3306 log-error=/var/log/mysqld.log pid-file=/var/run/mysqld/mysqld.pid #Data catalog basedir=/data/mysql datadir=/data/mysql/data socket=/data/mysql/lib/mysql.sock #Symbolic links symbolic-links=0 #Set the maximum number of connections max_connections=1000 #skip-grant-tables sql_mode =STRICT_TRANS_TABLES,NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,NO_AUTO_CREATE_USER,NO_ENGINE_SUBSTITUTION #Set MySQL default character set character-set-server=utf8 collation-server=utf8_general_ci ##Enable binlog […]