แจ้งเตือนเมื่อมีคนแอบเข้า Server เรา แจ้งมาที่ Line ( For Linux Server )

คู่มือสอนติดตั้งระบบแจ้งเตือนผ่านไลน์ เมื่อ มีบุคคล Remote ไปยัง Server ของเรา ได้
ผ่านระบบไลน์  ได้ทั้ง Line Group and Line Personal
ในนี้จะสอนกับระบบ Linux CentOS7
สำหรับท่านที่ยังไม่ได้มีบัญชี Line Notify ให้ไปสมัครได้ที่นี้
https://notify-bot.line.me  โดย Login ผ่าน Line Account  ที่ลงทะเบียนด้วย E-Mail เท่านั้น
หลังจากLogin แล้วจะได้ Line Token


====== Login Server by CentOS7 ===
[root@localhost ssh]# vi /root/.bash_profile
# .bash_profile

# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs
curl -X POST -H 'Authorization: Bearer LINE-TOKENของเราครับ' -F 'message=ข้อความที่ต้องการให้ส่ง' https://notify-api.line.me/api/notify

PATH=$PATH:$HOME/bin
export PATH
:wq
[root@localhost ssh]#

Share:

ไม่มีความคิดเห็น:

แสดงความคิดเห็น

ค้นหาบล็อกนี้

ขับเคลื่อนโดย Blogger.

ผู้ให้ข้อมูลร่วมกัน

Recent Posts

Unordered List

  • Lorem ipsum dolor sit amet, consectetuer adipiscing elit.
  • Aliquam tincidunt mauris eu risus.
  • Vestibulum auctor dapibus neque.

Pages

Theme Support

Need our help to upload or customize this blogger template? Contact me with details about the theme customization you need.