root@vps-0a3cc8e4:~# pkill -9 mariadbd pkill -9 mysqld pkill -9 mysqld_safe root@vps-0a3cc8e4:~# /etc/init.d/php-fpm-74 restart /etc/init.d/php-fpm-80 restart /etc/init.d/php-fpm-83 restart /etc/init.d/php-fpm-84 restart
Category: Server Administration
Aapanel N8n lỗi 502 Nginx khi restore, Update version n8n và xóa log n8n
chuyển về Owner ubuntu chown -R ubuntu:ubuntu /www/dk_project/dk_app/n8n/n8n_iEZi/data/* Cách 2: dùng lệnh này đợ 5 phút root@server1:~# docker exec f84d7a04fdc5 id uid=1000(node) gid=1000(node) groups=1000(node) root@server1:~# chown -R 1000:1000 /www/dk_project/dk_app/n8n/n8n_iEZi/data root@server1:~# find /www/dk_project/dk_app/n8n/n8n_iEZi/data -type d -exec chmod 755 {} \; root@server1:~# find /www/dk_project/dk_app/n8n/n8n_iEZi/data -type f -exec chmod 644 {} \; root@server1:~# ls -l /www/dk_project/dk_app/n8n/n8n_iEZi/data docker restart […]
EE4 xóa log
Xoá các file binlog cũ Vào MariaDB container:docker exec -it services_global-db_1 bash mysql -uroot -p Xem lại password của root cat /opt/easyengine/services/docker-compose.yml | grep MYSQL_ROOT_PASSWORD ✅ Trong MariaDB prompt: RESET MASTER; Lệnh này sẽ xoá toàn bộ binlog cũ và chỉ giữ lại binlog hiện tại. Xoá nội dung log mà không xoá file (để […]
Cài Đặt Mail Server Trên aaPanel Với Postfix, Dovecot Và SSL
Việc thiết lập một mail server trên aaPanel giúp bạn quản lý email một cách chuyên nghiệp và an toàn. Trong bài viết này, chúng ta sẽ hướng dẫn cách cài đặt và cấu hình Postfix, Dovecot và SSL để đảm bảo mail server hoạt động ổn định. 1. Cài Đặt Mail Server Trên aaPanel […]
Cài đặt EasyEngine v4
Linux For Linux, we have created an installer script which will install all the dependencies for you. We have tested this on Ubuntu 14.04, 16.04, 18.04 and Debian 8. wget -qO ee https://rt.cx/ee4 && sudo bash ee Mac Starting with v4, EasyEngine supports Mac install using the famous brew package manager. brew install easyengine Commands https://easyengine.io/commands
[HDCV] Các câu lệnh MySQL hay dùng
Đăng nhập MySQL mysql -u root -p Sau khi đăng nhập thành công Xem quyền Xem quyền của user root Xem quyền của user khác Liệt kê user, host Làm việc với Database Kiểm tra xem Database nào đang được lựa chọn Lựa chọn Database để làm việc Tham khảo Xóa Database Backup & Restore Database […]
[HDCV] MySQL – Reset password cho user root trên server Linux
[Repu Digital] 1. Cách đổi password cho user root Trường hợp 1 – Vừa cài đặt mysql và root chưa có password Trường hợp 2 – Đổi password sang password mới Test lại pass mới sau khi đổi Tham khảo MySQL Change root Password 2. Cách Reset lại password cho user root của MySQL […]
[HDCV] Tạo user sFTP và phân quyền trong server Linux dùng Easy Engine
Tham khảo: Chroot SFtp with EasyEngine Làm y hệt như hướng dẫn trong bài là ok THIẾT LẬP LẦN ĐẦU In this tutorial, we are creating sftp user ee-user having access to only example.com Create Users The following command creates a user ee-user who should only allowed to perform SFTP in chroot environment, and not […]
[HDCV] Cài đặt và sử dụng Easy Engine cho máy chủ Linux (Ubuntu)
A. Cài đặt Easy Engine 1. Cài đặt script ee stack install –nginx –php –hhvm –php7 –mysql –wpcli –utils –admin Tham khảo Install Easy Engine (làm theo hướng dẫn trên website chính thức của EE là mới nhất) Bài hướng dẫn cài EE trên ThachPham.com (để hiểu, cách làm có thể cũ, không còn chính xác) 2. […]
[HDCV] Cài đặt server Linux cho PHP Web Hosting
Cài đặt máy chủ trên Linode Bắt đầu Cài đặt HĐH CentOS7 Khởi động Server Kết nối SSH vào Server Update HĐH Thiết lập Hostname Update file /etc/hosts Thiết lập Timezone Thiết lập bảo mật Server Add user để đăng nhập thay cho root Thiết lập bảng IP truy cập Thiết lập Firewall Thiết lập […]