Some simple scripts for enjoy life!
 
Go to file
mirivlad c4b7cedb89 Add readme 2024-03-28 23:13:28 +08:00
python3/bot Add wordpress+telegram send post bot 2024-03-15 17:19:24 +08:00
README.md Add readme 2024-03-28 23:13:28 +08:00
connect_tunnel.sh Add script for ssh connect to remote server and create tunnel to server in private network 2024-03-11 16:25:26 +08:00
create_db.sh Add create mysql user and database 2024-02-28 13:54:31 +08:00
create_host.sh Change php-fpm socket name creation 2024-03-07 16:09:26 +08:00
get_pc_temp.sh Change commet ion get_pc_temp.sh 2024-03-28 22:57:52 +08:00

README.md

Scripts

This repository contains scripts written by me at various times to make my work easier or to reduce routine operations

List scripts and their description

connect_tunnel.sh

This script interactively accepts input from the user and connects via ssh with tunnel forwarding to a host on a private network

create_db.sh

This script interactively accepts input from the user, creates a mysql database, the user and gives him rights to this database

create_host.sh

This script checks whether nginx, php-fpm, mysql are installed on the system, if not, it installs them. Then it interactively accepts input from the user, creates a directory for the site, a configuration file for the web server, a pool for php-fpm, a mysql database, and a user for it. Thus, this script prepares a local or remote server to launch a virtual host for the site to run. Requires running under sudo or as root