Bash Script: Cảnh báo dung lượng ổ đĩa trên server về Telegram BOT
Nhận đường liên kết
Facebook
X
Pinterest
Email
Ứng dụng khác
Trong cuộc sống nhiều khi server nó đầy bất ngờ. Script sau sẽ giúp monitoring và cảnh báo về telegram của system admin để lắp thêm storage trước khi service chết không kịp ngáp
Hôm qua gặp quả lỗi PhpStorm do cấu hình sai Reformat, sau 1 hồi tìm kiếm thì ra thông tin sau, nếu lỗi có thể thử fix Ấn phím tắt Option + Shift + Command + L, 1 popup sẽ hiện ra như sau PhpStorm Reformat File Dialog Cấu hình popup trên như sau Scope - Only changes uncommitted to VCS : Nếu được chọn, thì việc reformat code sẽ chỉ áp dụng cho mã đã được thay đổi cục bộ nhưng chưa được đưa vào kho lưu trữ. Tùy chọn này chỉ khả dụng cho các tệp được kiểm soát phiên bản. - Selected text : Nếu chọn scope này, PhpStorm sẽ chỉ format đoạn code được bôi đen - Whole file : Chọn options này để định dạng lại toàn bộ mã nguồn trong tệp hiện tại -> Nên chọn options này Options - Code cleanup : Chọn tùy chọn này để chạy kiểm tra dọn dẹp mã. PhpStorm tìm và tự động sửa các đoạn mã có khả năng gây ra sự cố -> nên bỏ để tránh tốn performance. Nên sử dụng các trình eslint và check để xử lý và kiểm soát tốt hơn - Do not keep line breaks : Định dạng lại ngắt dòng theo cài đặt kiể...
Introduction Adding and removing users on a Linux system is one of the most important system administration tasks to familiarize yourself with. When you create a new system, you are often only given access to the root account by default. While running as the root user gives you complete control over a system and its users, it is also dangerous and possibly destructive. For common system administration tasks, it’s a better idea to add an unprivileged user and carry out those tasks without root privileges. You can also create additional unprivileged accounts for any other users you may have on your system. Each user on a system should have their own separate account. For tasks that require administrator privileges, there is a tool installed on Ubuntu systems called sudo . Briefly, sudo allows you to run a command as another user, including users with administrative privileges. In this guide, you’ll learn how to create user accounts, as...
Introduction Systemd logs all Linux messages from the kernel and system processes. The journalctl command enables viewing and editing the systemd logs, making it a powerful tool for service and process debugging. This guide shows how to read, control, and maintain systemd logs using journalctl through examples. Prerequisites Access to the command line/terminal window. A text editor (such as nano ) to edit the config file. A user with sudo privileges (see how to add a user to sudoers ). What Is Systemd? Systemd is a Linux service and system manager. While users do not invoke systemd directly, the manager contains many tools and daemons to run individually for various system processes. One of the most powerful systemd functionalities is the logging features. Systemd provides a centralized solution for logging all kernel and user processes through logs known as journals . The...
Nhận xét
Đăng nhận xét