วันจันทร์ที่ 23 มิถุนายน พ.ศ. 2557

วันอังคารที่ 17 มิถุนายน พ.ศ. 2557

MySQL

MySQL

MySQL is a Relational Database Management System (RDBMS) that runs as a server providing multi-user access to a number of databases.  For more information on MySQL, you can visit their website at www.mysql.com.

Version

This documentation was written for MySQL 5.0.45 but may be usefull with other versions.

How to install MySQL

  1. Install MySQL
    yum install mysql-server mysql php-mysql

How to configure MySQL

  1. Set the MySQL service to start on boot
    chkconfig --levels 235 mysqld on
  2. Start the MySQL service
    service mysqld start
  3. Log into MySQL
    mysql -u root
  4. Set the root user password for all local domains
    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('new-password');
    SET PASSWORD FOR 'root'@'localhost.localdomain' = PASSWORD('new-password');
    SET PASSWORD FOR 'root'@'127.0.0.1' = PASSWORD('new-password');
  5. Drop the Any user
    DROP USER ''@'localhost';DROP USER ''@'localhost.localdomain';
  6. Exit MySQL
    exit
from http://dev.antoinesolutions.com/mysql

วันพุธที่ 4 มิถุนายน พ.ศ. 2557

ข้าสู่ Windows 8 โดยที่ไม่ต้องทำการใส่พาสเวิร์ด

สำหรับในทิปนี้แอดมินจะมาแนะนำวิธีการเข้าสู่ Windows 8 โดยที่ไม่ต้องทำการใส่พาสเวิร์ดเพื่อความสะดวกรวดเร็วนั่นเองครับ โดยมีวิธีการดังต่อไปนี้
1. ขั้นตอนแรกให้เราทำการเรียกหน้าต่าง Run ขึ้นมาก่อนโดยการกดปุ่ม Windows + R
2. จากนั้นทำการพิมพ์คำว่า netplwiz ลงในช่องแล้วกด Enter ครับ
3. จากนั้นทำการเลือก User ที่เราต้องการจะเข้าโดยไม่ต้องใช้พาสเวิร์ด
4. ทำการเอาเครื่องหมายถูกออกจากหัวข้อ Users must enter a user name and password to use this computer
5. คลิก OK แล้วระบบจะถามหารหัสผ่าน ให้ใส่ไป 2 ครั้ง แล้วกด Ok อีกครั้งหนึ่ง
เพียงเท่านี้ก็เสร็จเรียบร้อยแล้วครับ

วันจันทร์ที่ 2 มิถุนายน พ.ศ. 2557

การปิด ping ไม่ให้ทำการ ping หาเครื่องเราได้

windows xp
   start >Control Panel >Windows Firewall > Tab General
   ให้เลือก check “On (recommended)”

   แล้วให้ไปที่ Tab Advanced
   start >Control Panel >Windows Firewall > Tab Advanced

   เลือกหัวข้อ ICMP click to “Settings…”
   เอาเครื่งหมายถูกช่อง allow incoming echo request ออก

   Test ping ว่าปิดได้ไหมครับ
#ping ip_address


windows Server 2003
   start >Control Panel >Windows Firewall > Tab General
   ให้เลือก check “On”

   แล้วให้ไปที่ Tab Advanced
   start >Control Panel >Windows Firewall > Tab Advanced

   เลือกหัวข้อ ICMP click to “Settings…”
   เอาเครื่งหมายถูกช่อง allow incoming echo request ออก

   Test ping ว่าปิดได้ไหมครับ
#ping ip_address


Windows Server 2008 จะถูกตั้งค่าให้ปิด Ping Reply อยู่แล้ว
   วิธีการตั้งค่า Windows Server 2008 ให้สามารถ Ping Reply ได้ให้ดูข้อมูลได้ที่เว็บsosweets.net ซื่งอธิบายรายละเอียดทุกขึ้นตอน


windows 7
   -


linux Redhat/CentOS
   พิมพ์คำสั่งตามข้างล่าง
   [root@RD ~]# echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all
   ถ้าต้องการให้สามารถ ping ได้เหมือนเดิม ให้เปลี่ยนการ echo 1 เป็น echo 0 แทนครับ

ที่มาhttp://group.wunjun.com/hospital/topic/420422-13602

วันอังคารที่ 26 กุมภาพันธ์ พ.ศ. 2556

แก้ไข login rnet2007 ไม่ทำงาน

กรณีเปลี่ยน ip server
#service chilly restart
#service network restart
#chmod 755 /var/www/cgi-bin/hotsport.cgi
#reboot -n
ลองใหม่

วันพุธที่ 6 กุมภาพันธ์ พ.ศ. 2556

เปลี่ยน ip centOS


เปลี่ยน ip วงใหญ่
[root@log ~]# service iptables restart
[root@log ~]# service radiusd restart
[root@log ~]# nano /var/www/cgi-bin/hotspotlogin.cgi
[root@log ~]# nano /etc/raddb/radiusd.conf
[root@log ~]# service squid restart
[root@log ~]# nano /etc/chilli.conf
[root@log ~]# nano /var/www/html/net2007/config.php
[root@log ~]# chkconfig chilli on
[root@log ~]# service chilli restart


ip 1000 user
255.255.252.0
10.0.1.1/22

วันจันทร์ที่ 12 พฤศจิกายน พ.ศ. 2555

ลบ cache ใน Authen

ตรวจสอบ Memory
root@34d30y [~]# free -m
total       used       free     shared    buffers     cached
Mem:          8881       4744       4136          0        296       3567
-/+ buffers/cache:        880       8000
Swap:         4095          0       4095
root@34d30y [~]# sync
root@34d30y [~]# echo 3 > /proc/sys/vm/drop_caches
root@34d30y [~]# free -m
total       used       free     shared    buffers     cached
Mem:          8881        533       8347          0          1         19
-/+ buffers/cache:        512       8368
Swap:         4095          0       4095

=========
ลบในเคื่อง Authen ครับ
#/etc/init.d/squid stop
#rm -Rf /var/spool/squid/*
#/etc/init.d/squid start