มาเรียนรู้การคำนวณ IP Address version 4 ด้วยเทคนิคการใช้ตารางมหัศจรรย์ซึ่งทำให้ศิษย์นำไปใช้ในการทำงานและการสอบ Cert.IT ได้อย่างดีเยี่ยม
Basic Linux Command ตอนที่ 1 (ls,cat,vi)by Jodoi
มาเรียนรู้การใช้ Linux Command เบื้องต้นกันครับ เริ่มต้นด้วย command ls , cat และ vi ซึ่งปัจจุบันมีความจำเป็นต้องเรียนรู่อย่างยิ่งเพราะหลายๆองค์กรมีการใช้ Linux Server กันมากขึ้น
ใส่ Username และ Password ให้ถูกต้องแล้ว save ออกมา
ขั้นต่อไปคือการ Configuring Apache Server สำหรับการติดตั้้ง Cacti
[root@localhost jodoi]# vi /etc/httpd/conf.d/cacti.conf
Alias /cacti /usr/share/cacti
<Directory /usr/share/cacti/>
<IfModule mod_authz_core.c>
# httpd 2.4
#Require host localhost
Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
# httpd 2.2
Order deny,allow
Deny from all
Allow from all
</IfModule>
</Directory>
แก้ไขให้ถูกต้องแล้ว save ออกมา สั่ง restart service httpd
คลิกเครื่องหมายถฏที่ Accept License Agreement. แล้วกด Begin
แก้ปัญหาต่างๆให้สามารถกด Next ได้ เช่นเรื่อง TimeZone เช่น
[root@localhost ~]# mysql -u root -p
Enter password:
MariaDB [(none)]> use mysql;
Reading table information for completion of table and column names
You can turn off this feature to get a quicker startup with -A
Database changed
MariaDB [mysql]> GRANT SELECT ON mysql.time_zone_name TO cacti@localhost;
Query OK, 0 rows affected (0.00 sec)
MariaDB [mysql]> quit
Bye
[root@localhost ~]# mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u root -p mysql
Enter password:
Warning: Unable to load '/usr/share/zoneinfo/leapseconds' as time zone. Skipping it.
Warning: Unable to load '/usr/share/zoneinfo/tzdata.zi' as time zone. Skipping it.