1. Install MySQL / MariaDB
Once you have your MariaDB.repo entry, add it to a file under /etc/yum.repos.d/. (We suggest something like /etc/yum.repos.d/MariaDB.repo.)
An example MariaDB.repo file for CentOS 7 is:
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.1/centos7-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
Installing MariaDB is as simple as running just one command:
yum install...
Thứ Sáu, 30 tháng 6, 2017
Thứ Ba, 27 tháng 6, 2017
How To Create SSH Keys With PuTTY
Generating OpenSSH-compatible Keys for Use with PuTTY
To generate a set of RSA keys with PuTTYgen:
Start the PuTTYgen utility, by double-clicking on its .exe file;
For Type of key to generate, select SSH-2 RSA;
In the Number of bits in a generated key field, specify either 2048 or 4096 (increasing the bits makes it harder to crack the key by brute-force methods);
Click the Generate button;
Move...
Thứ Hai, 26 tháng 6, 2017
How To Install MySQL / MariaDB on CentOS 7
Install MySQL / MariaDB
Installing MariaDB is as simple as running just one command:
yum -y install mariadb-server mariadb
And then start MySQL, now MariaDB:
systemctl start mariadb
Be sure that MySQL/MariaDB starts at boot:
systemctl enable mariadb
To check the status of MySQL/MariaDB:
systemctl status mariadb
To top MySQL/MariaDB:
systemctl stop mariadb
Check the installation with the command client:
mys...
sử dụng Rsync
Rsync (Remote Sync) là một công cụ dùng để sao chép và đồng bộ file/thư mục được dùng rất phổ biến. Với sự trợ giúp của rsync, bạn có thể đồng bộ dữ liệu trên local hoặc giữa các server với nhau một cách dễ dàng.
Cài đặt Rsync
Rsync được cài đặt dễ dàng với một dòng lệnh:
– Trên Red Hat/CentOS
yum install rsync
– Trên Debian/Ubuntu
apt-get install rsysnc
Sử dụng Rsync
Câu lệnh căn bản của rsync:
rsync options source destination
Trong...
MySQL Incremental Backup - Point In Time Backup and Recovery of InnoDB and MyIsam Databases
MySQL Incremental Backup - Point In Time Backup and Recovery of InnoDB and MyIsam Databases
Doing incremental backups is an important requirement for large production databases. Without a safe incremental backup, you can not tell yourself that you have a reliable production database. Because you must have enough data in order to recover your database in emergency cases. After some search on Internet, I could not find any tool...
Đăng ký:
Bài đăng (Atom)