#20130816
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
0 16 * * 0-6 root /var/jhcis/mysql-backup-jhcisdb.sh >/dev/null 2>&1
0 0-23 * * 0-6 root /var/jepidem/runjepidem.sh >/dev/null 2>&1
0 0-23 * * 0-6 root /var/jxp18/runjxp18.sh >/dev/null 2>&1
0 13,16,21,02,06,10 * * 0-6 root /var/jautoup/runjauto.sh >/dev/null 2>&1
#end
บล็อคของนายปองพล ธรรมคง โรงพยาบาลส่งเสริมสุขภาพตำบลหนองหัวช้าง อำเภอกันทรารมย์ จังหวัดศรีสะเกษ .........งานเทคโนโลยีสารสนเทศ (IT) สสอ.กันทรารมย์ จ.ศรีสะเกษ
หนัง
วันพฤหัสบดีที่ 30 ตุลาคม พ.ศ. 2557
วันอาทิตย์ที่ 26 ตุลาคม พ.ศ. 2557
noip
- cd /usr/local/src/
- wget http://www.no-ip.com/client/linux/noip-duc-linux.tar.gz
- tar xf noip-duc-linux.tar.gz
- cd noip-2.1.9-1/
- make install
- /usr/local/bin/noip2 -i eth0 -M
- /usr/local/bin/noip2 -C
- /usr/local/bin/noip2
in /usr/local/src/noip-2.1.9-1/README.FIRST
- sudo chmod 700 /usr/local/bin/noip2
chown root:root /usr/local/bin/noip2 - sudo nano /etc/rc.d/init.d/noip2 (sudo vim /etc/init.d/noip2)
#! /bin/sh
# . /etc/rc.d/init.d/functions # uncomment/modify for your killproc
case "$1" in
start)
echo "Starting noip2."
/usr/local/bin/noip2
;;
stop)
echo -n "Shutting down noip2."
killproc -TERM /usr/local/bin/noip2
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac
exit 0
ctrl+x
y
enter
sudo chmod 755 /etc/init.d/noip2
sudo update-rc.d noip2 defaults
sudo reboot
หากต้องการจะแก้ไข Port Web Service 80 เป็น Port = 8080
sudo nano /etc/apache2/ports.conf
เปลี่ยน Listen = 80 ให้เป็น Listen = 8080
Restart Web Service Apache2 ใหม่
phpinfo()
วันอังคารที่ 14 ตุลาคม พ.ศ. 2557
วันเสาร์ที่ 13 กันยายน พ.ศ. 2557
noip2
/usr/local/bin/noip2 -i eth0 -M
เป็นการอัพเดท /usr/local/etc/no-ip2.conf
#=============================#
stop: /etc/init.d/noip2 stop
Shutting down noip2: noip2 killproc -TERM /usr/local/bin/noip2
restart: sudo /etc/init.d/noip2 restart
http://www.itmission.org/Main/NOIP
เป็นการอัพเดท /usr/local/etc/no-ip2.conf
#=============================#
stop: /etc/init.d/noip2 stop
Shutting down noip2: noip2 killproc -TERM /usr/local/bin/noip2
restart: sudo /etc/init.d/noip2 restart
http://www.itmission.org/Main/NOIP
########################################################################### HOW TO USE THE CLIENT WITHOUT READING THE REST OF THIS TEXT Usual operation? /usr/local/bin/noip2 -C configure a client /usr/local/bin/noip2 run a client /usr/local/bin/noip2 -S display info about running clients /usr/local/bin/noip2 -D pid toggle the debug state for client pid /usr/local/bin/noip2 -K pid terminate client pid Have more than one internet access device? /usr/local/bin/noip2 -M -c file start additional instances ###################################################################### ==>>>
jhcis@jhcis-srv:~$ sudo su [sudo] password for jhcis: root@jhcis-srv:/home/jhcis# /usr/local/bin/noip2 -S 1 noip2 process active. Process 1368, started as noip2, (version 2.1.9) Using configuration from /var/lib/noip2/noip2.conf Last IP Address set 0.0.0.0 Account pongpol07@gmail.com configured for: host pcu-nonghouchang.no-ip.biz Address check every 5 minutes, directly connected via /dev/Eth0. Configuration data from /usr/local/etc/no-ip2.conf. Account pongpol07@gmail.com configured for: host thph-nonghouchang.ddns.net Updating every 5 minutes via /dev/Eth0 with NAT enabled. root@jhcis-srv:/home/jhcis#
#######################################################################
USAGE: noip2 [ -C [ -F][ -Y][ -U #min]][ -c file]
[ -d][ -D pid][ -i addr][ -S][ -M][ -h]
Version Linux-2.x.x
Options: -C create configuration data
-F force NAT off
-Y select all hosts/groups
-U minutes set update interval
-c config_file use alternate data path
-d increase debug verbosity
-D processID toggle debug flag for PID
-i IPaddress use supplied address
-I interface use supplied interface
-S show configuration data
-M permit multiple instances
-K processID terminate instance PID
-h help (this text)
#################################################################
echo "Stopping No-IP"
killall noip2
USAGE: noip2 [ -C [ -F][ -Y][ -U #min]][ -c file]
[ -d][ -D pid][ -i addr][ -S][ -M][ -h]
Version Linux-2.x.x
Options: -C create configuration data
-F force NAT off
-Y select all hosts/groups
-U minutes set update interval
-c config_file use alternate data path
-d increase debug verbosity
-D processID toggle debug flag for PID
-i IPaddress use supplied address
-I interface use supplied interface
-S show configuration data
-M permit multiple instances
-K processID terminate instance PID
-h help (this text)
#################################################################
echo "Stopping No-IP"
killall noip2
วันเสาร์ที่ 6 กันยายน พ.ศ. 2557
วันพฤหัสบดีที่ 17 กรกฎาคม พ.ศ. 2557
Removing XAMPP from Ubuntu
Removing XAMPP from Ubuntu is simple. Follow the following steps:
1. XAMPP gets itself installed in “opt/lampp” directory by default.
2. Stop the XAMPP server by typing sudo /opt/lampp/lampp stop in the Terminal (you can open the terminal by pressing Ctrl+Alt+t).
3. Now type sudo rm -rf /opt/lampp4. Check your opt directory. The folder “lampp” would have been removed.
5. You have successfully removed XAMPP from your Ubuntu.
2. Stop the XAMPP server by typing sudo /opt/lampp/lampp stop in the Terminal (you can open the terminal by pressing Ctrl+Alt+t).
3. Now type sudo rm -rf /opt/lampp4. Check your opt directory. The folder “lampp” would have been removed.
5. You have successfully removed XAMPP from your Ubuntu.
วันพุธที่ 2 กรกฎาคม พ.ศ. 2557
วิธีแก้ปัญหา Error 0×80070522: A required privilege is not held by the client
บทความนี้คัดลอกมาจาก http://www.ilovebrowser.com/วิธีแก้ปัญหา-error-0x80070522-a-required-privilege-is-not-held-by-the-client/
แก้ด้วย Local Security Policy(secpol) ทำได้ ดังนี้
- อันดับแรก ให้ไปที่ ให้ไปที่ Start > แล้วพิมพ์คำว่า “secpol.msc”(ไม่ต้องมี “”) จากนั้นจะปรากฏดังรูป
ให้คลิกที่ secpol.msc - อันดับต่อมา จะปรากฏหน้าต่าง Local Security Policy ให้คลิกไปที่ Local Policies->Security Options
แล้วดับเบิ้ลคลิกที่ “User Account Control: Run all administrators in Admin Approval Mode” เพื่อเปลี่ยนค่าเป็น Disable ดังรูป - อันดับสุดท้าย ให้กดปุ่ม OK และปิดหน้าต่าง Local Security Policy ออกไป จากนั้นให้รีสตาร์ทเครื่อง
สมัครสมาชิก:
บทความ (Atom)