วันพฤหัสบดีที่ 16 มีนาคม พ.ศ. 2560

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

แจ้งเตือนเมื่อมีคนแอบเข้า 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
i: insert
# .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]#


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

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