Home / Operating System / Linux (page 2)

Linux

Chặn một IP tấn công server Linux

Giải pháp: sử dụng iptables của Linux chặn địa chỉ IP gửi request. Cách làm: Mở asterisk CLI (asterisk -r). Xem địa chỉ IP đang liên tục gửi request lên server. Mở system configuration của Linux (gõ lệnh setup). Vào firewal, enabled firewall. Start iptables service (service iptables start). Add …

Read More »

Hướng dẫn xem HDD trên hệ thống

fdisk /dev/hda (for the first IDE disk)fdisk /dev/sdc (for the third SCSI disk)fdisk /dev/eda (for the first PS/2 ESDI drive)fdisk /dev/rd/c0d0 or: fdisk /dev/ida/c0d0 (for RAID devices) Ví dụ trên hệ thống: Gõ lệnh fdisk -l Disk /dev/cciss/c0d0: 36.3 GB, 36364615680 bytes => HDD có RAID 255 heads, 63 sectors/track, …

Read More »

Resize partition Linux

Resize partition Linux Tải gparted http://gparted.sourceforge.net/ - Boot live cd gparted - Tiến hành resize trong giao diện GUI gparted + Deatvice phân vùng LVM muốn resize + Nhấp apply + Sau đó active lại phân vùng LVM - Reboot - Sau khi boot vào hệ thống ta gõ lệnh …

Read More »

Cài đặt NGINX trên Centos

Cài đặt NGINX trên Centos vi /etc/yum.repos.d/nginx.repo # insert [nginx] name=nginx repo baseurl=http://nginx.org/packages/centos/$releasever/$basearch/ gpgcheck=0 enabled=1 #Lưu file lại # Sau đó tiến hành cài đặt bằng yum yum install nginx #Cấu hình proxy by pass # Edit file /etc/nginx/conf.d/default.conf vi /etc/nginx/conf.d/default.conf # Tìm # location / { # ..... # …

Read More »

Cấu hình file /etc/fstab để quản lý việc mount thiết bị trong Linux

Trong Linux, file fstab nằm tại thư mục /etc. Bài viết này sẽ tìm hiểu nội dung và cách chỉnh sửa thông tin trong file này và ngụ ý rằng bạn đã biết cơ bản về lệnh mount (xem lại bài “Làm sao để mount/unmount filesystem trong Linux”).  1.     Giới thiệu File cấu hình /etc/fstab chứa …

Read More »

Install iotop

1.Introduction What Is iotop? IOTop is a very essential tool for system administrator if you are interested to track down an IO bottleneck of your server. Vmstat also provides an optimal report although it is hard to pinpoint the error using vmstat. Vmstat can help you to understand there is …

Read More »
Translate »
0902 780 887