Installation, deletion, modification and query of database in linux

Installation and initialization of mariadb yum install mariadb-server.x86_64 -y systemctl status mariadb systemctl start mariadb systemctl enable mariadb mysql netstat -antlupe | grep mysql See mysql port vim /etc/my.cnf //Add skip networking = 1 skip network for security systemctl restart mariadb Restart service mysql ...

Posted by DeadDude on Sat, 04 Jan 2020 11:44:08 -0800

Kubernetes/6.Pod Resource Management

1. Labels Labels are "key value" types of data that can be specified directly at the time of resource creation or added on demand at any time, and then checked for matching by the tag selector to complete resource selection. You need to be aware of: An object can have more than one tag, and the same tag can be added to more than one ...

Posted by PHP Novice on Sat, 04 Jan 2020 09:35:40 -0800

Using python code to intercept ddos Attacks

Recently, the company's servers have been attacked by a large number of requests, and the other side constantly requests to visit the web site. It takes up the broadband of the server, which makes it inaccessible to ordinary users. Headache, so I studied for a day, wrote a script with python, extracted a large number of reques ...

Posted by MikeNye on Fri, 03 Jan 2020 22:37:00 -0800

Docker Containers - Mirror Management, Port Mapping, Container Interconnection

Layer of docker image _Each instruction in the Dockerfile creates a new mirror layer;_Mirror layers will be cached and reused;_When the instructions of the Dockerfile are modified, the copied file changes, or the variables specified when the image is built are different, the corresponding mirror layer cache will fail;_When the mirror cache of ...

Posted by nadeemshafi9 on Fri, 03 Jan 2020 20:18:01 -0800

About Redis cache database

1, Redis cache database Redis is an open source using ANSI C language Write, support network, memory based and persistent log type, key value data base . Redis and Memcached are similar, but redis supports more storage value types. Here is a brief introduction to the difference between redis and Memcached Comparison and sel ...

Posted by B-truE on Fri, 03 Jan 2020 10:17:19 -0800

Enter the running docker container

When using the docker container, we always want to see what the container looks like inside: we can use the docker exec command to meet our expectations: ➜ compose docker exec --help Usage: docker exec [OPTIONS] CONTAINER COMMAND [ARG...] Run a command in a running container Options: -d, --detach Detached mode: run comma ...

Posted by ifty on Fri, 03 Jan 2020 08:46:58 -0800

[Linux] Database Management

The database organizes, stores and manages data according to the data structure. It is a warehouse built on the computer storage device. Simply speaking, it can be regarded as an electronic file cabinet itself - the place where electronic files are stored. Users can add, intercept, update and delete data in files.1. Install and deploy http://w ...

Posted by matrixd on Wed, 01 Jan 2020 22:34:22 -0800

Laravel task scheduling

Here is an example of Laravel task scheduling. For related methods, please refer to: http://laravelacademy.org/post/8484.html 1. make:command generate task php artisan make:command MigrateData After executing the above command, a new Commands directory will be created in the Console directory, which contains a MigrateData. ...

Posted by alan007 on Wed, 01 Jan 2020 12:44:13 -0800

Nginx reverse proxy and cache usage

Bowen structureReverse Proxyproxy cache nginx optimization Reverse proxy (case) 1. Reverse Proxy means that a proxy server accepts a client's connection request, then forwards the request to the web server on the network (possibly apache, nginx, tomcat, iis, etc.), and returns the result from the web server to the client requesting the conne ...

Posted by anauj0101 on Wed, 01 Jan 2020 01:03:43 -0800

saltstack -- online environment (1)

Install mysql on 11 yum install mariadb mariadb-server -y   Add in mysql configuration file my.cnf init_connect='SET collation_connection = utf8_unicode_ci' init_connect='SET NAMES utf8' character-set-server=utf8 collation-server=utf8_unicode_ci skip-character-set-client-handshake   Start mysql after configuration Set the password befor ...

Posted by crusty_php on Tue, 31 Dec 2019 15:45:00 -0800