Chuyển đến nội dung chính

Linux IP Commands

Display Current Config for all NIC's: ifconfig

Display Current Config for eth0: ifconfig eth0

Assign IP: ifconfig eth0 192.168.1.2

Ping: ping -c 3 192.168.1.1 Assign multiple IP's: ifconfig eth0:0 192.168.1.2

Assign second IP: ifconfig eth0:1 192.168.1.3

Disable network card: ifconfig eth0 down

Enable network card: ifconfig eth0 up

View current routing table: route "or" route -n

View arp cache: arp "or" arp -n

Assign IP/Subnet: ifconfig eth0 192.168.1.2 netmask 255.255.255.0

Assign Default Gateway: route add default gw 192.168.1.1

Trace Route: traceroute bntkblog.blogspot.com

Trace Path: tracepathbntkblog.blogspot.com

DNS Test: host bntkblog.blogspot.com

Advanced DNS Test: dig bntkblog.blogspot.com

Reverse Lookup: host 66.11.119.69

Advanced Reverse Lookup: dig -x 66.11.119.69

Bài đăng phổ biến từ blog này

Thay đổi thuộc tính file php.ini cho từng website trong Apache

Đối với 1 hệ thống máy chủ hỗ trợ PHP mà có nhiều website hoạt động trên đó, thì việc điều chỉnh thông số kỹ thuật của file cấu hình php.ini đôi khi trở nên rắc rối. Thông thường sử dụng cú pháp ini_set() hoặc .htaccess để can thiệp . Giả sử, có 1 website với thư mục lưu trữ gốc là /var/www/html/example/ , với domain www.example.com . Để kiểm tra, trước tiên tạo file /var/www/html/example/phpinfo.php : <?php phpinfo(); ?>

DOS / Windows IP Commands

Display Connection Configuration: ipconfig /all Display DNS Cache Info: ipconfig /displaydns Clear DNS Cache: ipconfig /flushdns Release All IP Address Connections: ipconfig /release