How to Install Nano Text Editor

Nano is included in most Linux distributions by default. However, if it’s not present on your system, install Nano using the following steps: 1. Update the apt repositories with the apt update command: 2. Install Nano with: sudo apt install nano Note: If you’re running CentOS or Fedora, execute yum install nano to complete this step....

spacer
spacer

Cài đặt MongoDB trên CentOS

Configure the package management system (yum). Create a /etc/yum.repos.d/mongodb-org-4.0.repo file so that you can install MongoDB directly using yum: Install the MongoDB packages Start MongoDB Verify that MongoDB has started successfully where <port> is the port configured in /etc/mongod.conf, 27017 by default. You can optionally ensure that MongoDB will start following a system reboot by issuing the...

spacer
spacer
spacer
spacer
spacer

Tìm file/folder lớn nhất trên VPS

Sau đây là hai lệnh rất dễ sử dụng để check 10 folder và 10 file có dung lượng lớn nhất trên VPS Trước tiên bạn cần chuyển đến thư mục cần kiểm tra bằng lệnh cd giả sử bạn cần check trong thư mục home, ta sử dụng...

spacer

Câu lệnh VPS

Một số câu lệnh để các bạn có thể kiểm tra thông số cấu hình của VPS Linux Lệnh kiểm tra CPU: cat /proc/cpuinfo Lệnh theo dõi CPU: top -c Lệnh kiểm tra hệ điều hành: uname -a Lệnh kiểm tra phiên bản hệ điều hành (CentOS) cat /etc/redhat-release...

spacer

Format Date trong Yii2

Trong ActiveForm : Trong GridView : Tham khảo: Cách sử dụng : http://www.yiiframework.com/doc-2.0/guide-output-formatting.html Class : http://www.yiiframework.com/doc-2.0/yii-i18n-formatter.html#asDatetime()-detail

spacer