Backup GitLab

Để thực hiện việc backup GitLab và lưu bản sao lưu có tên chứa ngày tháng năm, giữ lại 3 bản sao lưu mới nhất và sao chép bản sao lưu mới nhất sang máy…

Xem thêm

Làm việc với CentOS

Chào các bạn, Để làm việc với CentOS hiệu quả có số việc tôi muốn chia sẻ vớic các bạn để làm việc đó như sau: Thiết lập history export HISTFILESIZE= export HISTSIZE= export HISTTIMEFORMAT=”[%F…

Xem thêm

Làm việc với Mysql Server

Disable mod only_full_group_by của msql : SET GLOBAL sql_mode=(SELECT REPLACE(@@sql_mode,’ONLY_FULL_GROUP_BY’,”)); Kiểm tra lại: SELECT @@sql_mode; GRANT ALL PRIVILEGES ON . TO ‘root’@’192.168.31.1’ IDENTIFIED BY ‘daicakhanh21*’;flush privileges;

Xem thêm

Các lệnh hay làm việc với Ubuntu

useradd -m -d /opt/home/khanhnnvn khanhnnvn Cho tài khoản có quyền sudo usermod -aG sudo khanhnnvn List các tài khoản có quyền sudo: grep ‘^sudo:.*$’ /etc/group | cut -d: -f4 ufw allow from 183.81.32.14 to any…

Xem thêm

Reset MySQL 5.7 root password

sudo mysqld_safe –skip-grant-tables & Then when paste this and hit [ENTER]mysql -urootuse mysql;update user set authentication_string=password(‘YOURSUPERSECRETPASSWORD’) where user=’root’;flush privileges;quitRestart MySQLLogin Mysql and change passset password=password(‘Admin321*’);

Xem thêm