
Linux » SSH login Alert Telegram bot
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-tel..
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-tel..
example error curl -I https://www.google.com/ curl: (60) SSL certificate problem: unable to get local issuer certificate . . ..
find /home/*/domains/*/public_html/ -maxdepth 2 -type f -name '.htaccess' -print0 | xargs -0 grep -il '(py|exe|php)' find /home/*/domains/*/public_htm..
Monitor service up/down & auto restart //httpd (apache) vim /root/apacherestart.sh #!/bin/bash PGREP=/usr/bin/pgrep CHKSERVICE=httpd $PGREP ${CHKS..
ติดตั้ง squid รุ่นล่าสุด https://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 squ..
ในเครื่องของเรามี mount point อะไรอยู่บ้าง df -h | grep /dev ดูว่าเรามี Harddisk ที่อยู่ในระบบและยังไม่ได้กำหนดการ mount ไว้ ls /dev/disk/by-uuid/ -al..
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 ..
ยกตัวอย่างเช่น ssh จากเครื่อง A ไปเครื่อง B โดยไม่ใช้รหัสผ่านในการ ssh @เครื่อง A ssh-keygen -t rsa (มีอะไรขึ้นมาก็กด enter ผ่านไปให้หมด แล้วพิมพ์คำสั..
หนังสือ: การติดตั้งและใช้งาน CentOS ลีนุกซ์เซิร์ฟเวอร์ เขียนโดย: โสทร รอดคงที่ เนื้อหาในเล่ม E-Book หนังสือคู่มือติดตั้ง CentOS ภาษาไทยบทที่ 1 โครงสร้..
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...
#การใช้ netstat ตรวจสอบการถูกยิงด้วย syn คำสั่ง netstat -ntu | grep SYN_RECV | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nrอันนี้จะบอกว่..
Solutions: Change and Update Time Zone (Bangkok ICT) on CentOS/Debian or other Linux rm -f /etc/localtime ln -s /usr/share/zoneinfo/Asia/Bangkok /etc/..