Danh mục: Bash – sh
-
python – python3-venv
Install the prerequisite for adding custom PPAs: # apt install software-properties-common -y Then proceed and add the deadsnakes PPA to the APT package manager sources list: # add-apt-repository ppa:deadsnakes/ppa # apt update You can now install Python 3.12 with the following command: # apt install python3.12 # apt install python3.12-venv To verify the installation and Python…
-
multipass create ubuntu in macos
4 CORE, 4GB RAM, 20GB Storage multipass launch 20.04 -n instanceNAME -c 4 -m 4G -d 20G
-
rsync over tunnel
rsync -av -e “ssh -A root@{SERVER IP TUNNEL} ssh” root@{SERVER IP TARGET}:/home/temp.txt /tmp/
-
sync live file
https://www.linux-magazine.com/Online/Blogs/Productivity-Sauce/Live-Sync-with-lsyncd Productivity Sauce Nov 05, 2008 GMT Dmitri Popov rsync is an excellent and versatile backup tool, but it does have one drawback: you have to run it manually when you want to back up your data. Sure, you can use cron to create scheduled backups, but even this solution cannot provide seamless live…
-
php-fpm
Với CentOS 7 – 8 Lệnh restart PHP-FPM trên CentOS 7 – 8 Sử dụng lệnh sau để restart PHP-FPM: $ sudo systemctl restart php-fpm Bạn cũng cần nắm những lệnh sau để sử dụng trong quá trình làm việc với PHP-FPM trên CentOS 7 & 8: Lệnh start PHP-FPM: $ sudo systemctl start php-fpm…
-
centos ERROR CONNECTION nginx add firewall
sudo firewall-cmd –permanent –zone=public –add-service=http sudo firewall-cmd –permanent –zone=public –add-service=https sudo firewall-cmd –reload
-
create user linux
adduser username passwd username visudo add this: (Có thể tạo 1 nhóm cho group sudo) %admin ALL=(ALL) ALL %sudo ALL=(ALL:ALL) ALL Rồi add user vào nhóm đó: groupadd sudo usermod -a -G sudo username username ALL=(ALL) ALL su – username ssh-keygen touch ~/.ssh/authorized_keys chmod 600 ~/.ssh/authorized_keys chmod 700 ~/.ssh delete user: userdel -r username
-
command server
Supervisor sudo systemctl start supervisor supervisorctl Mysql /etc/mysql/conf.d/mysql.cnf /etc/init.d/mysql restart