전체 글22 텔레그램에서 봇 공지하기 1) 봇을 텔레그램 관리자로 초대하기 2) 해당 채널에서 'hi' 와 같은 특정 문구 치기 3) 봇파더(botFather) 에 가서 /mybots 치기 4) 해당 봇 선택하기 5) API TOKEN 버튼 선택하기 6) 토큰 복사하기 https://api.telegram.org/bot123456:AAGlDt9Sth5-8R4iVfTddasdfasdf/getUpdates 7) 위 구문에서 bot 이후 부분에 붙여넣기 8) 위 링크에 접근하기 9) 나오는 json 파일에서 가장 아래 부분 "id":-123456789 이 부분 가져오기 10) 전송 api 에 해당 채팅방 코드에 위 -숫자 부분 붙여넣고 메시지 발송하기 2022. 7. 23. yum(dnf) update 시 'Cannot download All mirrors were tried' 패키지 업데이트시 특정 모듈에서 다운로드가 안되면서 Cannot download All mirrors were tried 라는 메시지가 포함된 에러가 나올때가 있다 또한 커스텀 repo 설정이 안되는 경우도 있는데 이때 이렇게 해결했다 $ yum remove epel-release -y $ yum update 오랜만에 yum update (dnf update) 를 실행할시 업데이트가 안되는 문제가 발생할 수 있는데 epel-release repo 를 위 명령어로 삭제하고 다시 yum update 를 치니까 정상적으로 다운로드가 됨 2022. 7. 23. centOS 8 에서 repo 사용시 'AppStream' 에러해결 Error: Failed to download metadata for repo 'AppStream' yum update 또는 dnf update 사용시 위와 같은 에러가 발생한다 [root@localhost ~]# cd /etc/yum.repos.d/ [root@localhost yum.repos.d]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-* [root@localhost yum.repos.d]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-* 레포 경로로 들어가 위와 같은 형태로 레포를 교체해주면.. 2022. 7. 23. tc.log 문제로 mysql 시작이 안될시 /var/log/mariadb/mariadb.log gcp 기반 서버에서 오랜만에 mysql 이 시작이 안되어서 로그를 들어가보니 아래와 같은 로그가 기록되어 있다. 2022-07-23 0:31:31 0 [Note] Recovering after a crash using tc.log 2022-07-23 0:31:31 0 [ERROR] Bad magic header in tc log 2022-07-23 0:31:31 0 [ERROR] Crash recovery failed. Either correct the problem (if it's, for example, out of memory error) and restart, or delete tc log and start mysqld with --tc-heu.. 2022. 7. 23. 이전 1 2 3 다음