Linux | tags

Linux | SSH login Alert Telegram bot

Security Command Linux

from https://github.com/vdeville/ssh-login-alert-telegram apt-get -y install git cd /opt/ && git clone https://github.com/vdeville/ssh-login-alert-telegram.git (more…).. อ่านต่อ ( read more» )

Linux | Fix debian 8/9 “curl: (60) SSL certificate problem: certificate has expired”

Linux Debian Security Command PHP

Linux | find footprint script virus webhost server

Find Linux Command

find /home/*/domains/*/public_html/ -maxdepth 2 -type f -name '.htaccess' -print0 | xargs -0 grep -il '(py|exe|php)' find /home/*/domains/*/public_html/ -maxdepth 2 -type f -name '.htaccess' -print0 | xargs -0 grep -il '(py|exe' rm -f wp-content/uplo.. อ่านต่อ ( read more» )

Linux | Monitor & Restart HTTPD / NGINX conf & more service

Linux Nginx Command

Monitor service up/down & auto restart //httpd (apache) vim /root/apacherestart.sh #!/bin/bash PGREP=/usr/bin/pgrep CHKSERVICE=httpd $PGREP ${CHKSERVICE} if [ $? -ne 0 ] then # printf $? /etc/init.d/httpd restart date >> /root/apacherestart.log f.. อ่านต่อ ( read more» )

Linux | How to install Squid for IP Proxy Server

Proxy Command Linux Squid

ติดตั้ง squid รุ่นล่าสุดhttp://www.squid-cache.org/Versions/ cd /tmp wget http://www.squid-cache.org/Versions/v3/3.4/squid-3.4.9.tar.gz tar xvfz squid-3.4.9.tar.gz cd squid-3.4.9 ./configure --prefix=/usr/local/squid make && make install (more&hellip.. อ่านต่อ ( read more» )

Linux | Manage Harddisk Linux (view, create, format)

Linux Command

ในเครื่องของเรามี mount point อะไรอยู่บ้าง df -h | grep /dev ดูว่าเรามี Harddisk ที่อยู่ในระบบและยังไม่ได้กำหนดการ mount ไว้ ls /dev/disk/by-uuid/ -alh ตรวจสอบ file system type parted /dev/sda1 p ขนาดของ HDD fdisk -l /dev/sdb สร้าง partition fdisk /d.. อ่านต่อ ( read more» )

Linux | Extract filename UNIX all in one

Linux Command

Add this to your ~/.bashrc extract () { if [ -f $1 ] ; then case $1 in *.tar.bz2) tar xvjf $1 && cd $(basename $1 .tar.bz2);; *.tar.gz) tar xvzf $1 && cd $(basename $1 .tar.gz);; *.tar.xz) tar Jxvf $1 && cd $(basename $1 .tar.xz);; *.bz2) bunzi.. อ่านต่อ ( read more» )

Linux | วิธี SSH ข้ามเซิฟเวอร์โดยไม่ใส่รหัสผ่าน

Security Command Linux

ยกตัวอย่างเช่น ssh จากเครื่อง A ไปเครื่อง B โดยไม่ใช้รหัสผ่านในการ ssh @เครื่อง A ssh-keygen -t rsa (มีอะไรขึ้นมาก็กด enter ผ่านไปให้หมด แล้วพิมพ์คำสั่งด้านล่าง เพื่อเตรียมก็อบค่าไว้) cat /root/.ssh/id_rsa.pub id_rsa.pub = publickey ก๊อปไปใส่เครื่องป.. อ่านต่อ ( read more» )

Linux | หนังสือคู่มือติดตั้ง CentOS ภาษาไทย (E-Book)

Tutorial Download CentOS E-Book Linux

หนังสือ: การติดตั้งและใช้งาน CentOS ลีนุกซ์เซิร์ฟเวอร์ เขียนโดย: โสทร รอดคงที่ เนื้อหาในเล่ม E-Book หนังสือคู่มือติดตั้ง CentOS ภาษาไทยบทที่ 1 โครงสร้าง ฮาร์ดดิสก์และการเรียกชื่อฮาร์ดดิสก์ บทที่ 2 หลักการติดตั้งลีนุกซ์ บทที่ 3 ตัวอย่างการติดตั้ง Cent.. อ่านต่อ ( read more» )

Linux | Recover MySQL Database root password

Database Linux Command MySQL

Ploblem: forget MySQL root password Solutions: Recover(hack) MySQL root password 1. Login as root 2. Stop the MySQL server by using command /etc/init.d/mysql stop #or ps aux | grep mysql kill -9 mysqlID 3. Start MySQL server without password (more&he.. อ่านต่อ ( read more» )