業務用エアコン関連の技術情報、エラーコード、環境問題対策に関する別サイト「エアコンの安全な修理・適切なフロン回収」

nuy

Almalinux9.4_en

AlmaLinux9.4 : System Backup and Restore

1.Website data backup1-1.Backup under /var/www/html①Create backup script file# cd /var/www/system# vi backup_html.sh2.MySQL database backup①Create backup script file# cd /var/www/system# vi db_my_backup.sh3.Restore backup files under html①Store HTML backup files in "/ (root)" directory4.Restore Mysql backup file①Save the database backup file to any directory and(In the example, the directory is "/var/www/backup/db_bak".)Extracting data
Almalinux9.4_en

AlmaLinux9.4 : SSH connection with public key

SSH connection with authentication using public key cryptography Creation of public and private key pairsCreate a public/private key pair for a user connecting to the Linux server using OpenSSH.Use ssh-keygen to create key pairs.Creation of public/private key pairs is performed with remote login user privileges。If you do not specify the destination and file name, id_ed25519 and id_ed25519.pub will be created in /home/(user name)/.ssh/. On the way, enter the password for the key.
Almalinux9.4_en

AlmaLinux9.4 : SSH、Firewalld、NTP Server

1. SSH remote connectionSSH is a service for connecting remotely to a server and is basically running immediately after the OS is installed, but the default settings are somewhat insecure.Here we will configure the default settings to increase the security of ssh connections.
Debian10.13_en

Debian10.13 : SNORT2 , Tripwire

1.SNORT2 InstallSnort is an open source network intrusion de...
Debian10.13_en

Debian10.13 : MySQL8 , WordPress

1. MySQL 8 Install1. 1 Update package index# apt update# apt...
Debian10.13_en

Debian10.13 : Let's Encrypt WEB , Mail SSL

1. Obtaining a Certificate(Let's Encrypt)1.1 advance prepara...
Debian10.13_en

Debian10.13 : Antivirus , Mail Server

1.Anti-virus Clamav installed1.1 InstallThe clamav-related c...
Debian10.13_en

Debian10.13 : WEB Server Apache2

WEB Server Apache2Allow http:80 and https:443 ports in UFW b...
Debian10.13_en

Debian10.13 : NTP ,FTP Server

1. Install an NTP server that provides time synchronization ...
Debian10.13_en

Debian10.13 : SSH with public key

SSH connection with authentication using RSA public key cryp...
Debian10.13_en

Debian10.13 : SSH , Firewall

1. SSH Service Security SettingsThe SSH service allows the r...
Debian10.13_en

Debian10.13 : Initialization

1. Install and configure vim editorDebian has "nano" as the ...
Debian11.3_en

Debian11.3 : System Backup and Restore

1.1 Backup under /var/www/html① Create backup_all.sh script under /opt# vi /opt/backup_all.shbackup_all.sh script contents1.2 Mysql database backup①Create db_backup.sh script under /opt# vi /opt/db_backup.shdb_backup.sh script contents2.1 Restore backup files under HTML① Store HTML backup files used for backup in the "/ (root)" directorySelect the backup file with the latest timestamp (e.g. www_back_20220501.tar.gz)2.2 Restore MySQL database①Save DB backup file to any directory and extract data# cd /var/www/backup/db_bak
Debian11.3_en

Debian11.3 : Disk Usage Check、Logwatch

1. Introduce disk usage check script1.1 Scripting# cd /opt/script/# vi disk_capacity_check.shContents of disk_capacity_check.sh#!/bin/bash#Email Address for NotificationMAIL=" "2. Log analysis tool logwatch installed2.1 Install logwatch# apt -y install logwatch2.2 Edit logwatch configuration file①Copy the default configuration file
Debian11.3_en

Debian11.3 : SNORT2 , Tripwire Install

1.Install SNORTSnort is an open source network intrusion detection system capable of performing real-time traffic analysis and packet logging on IP networks.It can perform "protocol analysis," "content search," and "matching," and can be used to detect a variety of attacks, including "buffer overflows," "stealth port scans," "CGI attacks," "SMB probes," "OS fingerprinting attempts," "semantic URL attacks," and "server message block probes.