Docker và Docker swarm
1. Install Docker 2. Một số lệnh cơ bản 3. Docker compose Docker compose là một công cụ cho việc định nghĩa và khởi chạy nhiều container với docker. Khai bao nhiều container trong cùng một file– Khai báo app’s… Docker và Docker swarm
Mariadb Galera Cluster
1. Install Mariadb Install dependencyapt-get install -y build-essential libgcrypt11-dev zlib1g-dev libxml2-dev libssl-dev libncurses-dev git wget cmake gcc make tar libgd-dev libpcre3-dev bison scons libboost-dev libboost-program-options-dev openssl dh-autoreconf libssl-dev Download mariadbhttps://vn-mirrors.vhost.vn/mariadb/mariadb-11.8.2/source/mariadb-11.8.2.tar.gz Build Mariadb 2. Install galera wget https://archive.mariadb.org//mariadb-11.8.2/galera-26.4.22/src/galera-26.4.22.tar.gztar xvfz galera-26.4.22.tar.gzapt-get install… Mariadb Galera Cluster
Các thuật ngữ thường dùng trong chiến lược backup database
1. Giới thiệu các thuật ngữ thường gặp khi backupBackup database là một trong các công việc quan trọng nhất của người quản trị CSDL (Database Administrator – DBA). Hẳn là khi backup database, bạn thường nghe đến các thuật… Các thuật ngữ thường dùng trong chiến lược backup database
Một số lệnh patroni và etcd cơ bản
PatroniKhởi tạo lại member patronipatronictl -c /etc/patroni.yml reinit postgres indo_psql1Loại bỏ 1 node ra khỏi clusterpatronictl -c /etc/patroni.yml remove indo_psql1Kiểm tra member listpatronictl -c /etc/patroni/patroni.yml listĐể Disable Patroni Cluster Auto Failoverpatronictl -c /etc/patroni/patroni.yml pausePatroni Cluster Switchoverpatronictl -c /etc/patroni/patroni.yml switchover –master… Một số lệnh patroni và etcd cơ bản
High Available Postgres by Patroni
Install Postges trên tất cả các node Tạo các user trên các nodesu postgres/opt/postgres/bin/psqlpostgres=# CREATE USER replicator WITH REPLICATION ENCRYPTED PASSWORD ‘x0hDfZv27’;postgres=# CREATE USER postgres WITH SUPERUSER ENCRYPTED PASSWORD ‘njk16uAeFNl’; Install watchdogsudo vi /etc/watchdog.conf## active dòng này lên, bỏ comment… High Available Postgres by Patroni
Install Postgresql-16
https://www.manniwood.com/2023_12_07/postgresql_16_compile_install_howto.html https://www.tecmint.com/install-postgresql-from-source-code-in-linux echo “vm.nr_hugepages = 2048” >> /etc/sysctl.confsysctl -p Script install postgresql-16 Tạo các extension Cấu hình pg_hba.conf
Elasticsearch import data from databases
1. Install elasticsearch 2.3.4 Download elasticsearch 2.3.4mkdir /opt/setupcd /opt/setupwget https://download.elastic.co/elasticsearch/release/org/elasticsearch/distribution/tar/elasticsearch/2.3.4/elasticsearch-2.3.4.tar.gz Unzip elasticsearchmkdir -p /data/es-datamkdir -p /opt/log/es-logcd /opt/setuptar xvfz elasticsearch-2.3.4.tar.gzmv elasticsearch-2.3.4 /opt/cd /opt/elasticsearch-2.3.4/confnano elasticsearch.yml Create servicenano /etc/init.d/elasticsearch chmod +x /etc/init.d/elasticsearchupdate-rc.d elasticsearch defaultsupdate-rc.d elasticsearch enable Tạo user và phân quyền groupadd esuseradd… Elasticsearch import data from databases
Kiểm tra kết nối khi server bị DDOS
1️. Kiểm tra số lượng kết nối TCPTấn công DDoS thường sử dụng nhiều kết nối đến server. Bạn có thể kiểm tra bằng lệnh:netstat -an | grep :80 | wc -l🔹 Giải thích:Thống kê số lượng kết nối đến… Kiểm tra kết nối khi server bị DDOS
Active Driectory with SAMBA4
1. Tổng quan hệ thống Vai trò Hostname IP OS PDC pdc.abc.local 10.1.1.1 Ubuntu 22.04 BDC bdc.abc.local 10.1.1.2 Ubuntu 22.04 2. Cài đặt Samba 4 và BIND9_DLZ Trên cả PDC và BDC: sudo apt updatesudo apt install -ysudo apt install… Active Driectory with SAMBA4