ChatBot 설치
ChatBot 띄우기1. Centos 6 를 설치하니 LinuxChatScript64 실행시에, libstdc++ 의 특정 라이브러리 GLIBCXX_3.4.15 버전이 없다고, 해서 Centos 7 설치.
( strings /usr/lib/libstdc++.so.6 | grep GLIBC )
2. 디렉토리 구조는
ChatBot
ㄴ ChatScript : https://sourceforge.net/projects/chatscript/files 에서 다운받아서 압축 해제.
아래에 BINARIES 가 들어 있다.
참조 : http://exagen.tistory.com/42
3. Under ChatBot/ChatScript
[root@localhost ChatScript] chmod +x BINARIES/LinuxChatScript64
참조 : https://medium.freecodecamp.org/chatscript-for-beginners-chatbots-developers-c58bb591da8
4. ChatBot 을 실행해 볼 수 있다.
[root@localhost ChatScript]# BINARIES/LinuxChatScript64 local
이름을 넣은 뒤,
- What is your name ? 이라고 물으면 My name is Harry. 라고 대답한다.
- 빠져나올 때는 :quit
다시 실행해서 같은 이름으로 접속하면, Hello, again. 이라고 인사한다.
5. BINARIES 에서 서버모드로 실행 => 1024 포트 리슨 확인 가능
> ./LinuxChatScript64
> netstat -anp | grep LISTEN | grep 1024
tcp 0 0 0.0.0.0:1024 0.0.0.0:* LISTEN 8336/./LinuxChatScr
6. Linux에설치가 되었다면, Windows 에서 연결 테스트를 해볼 수 있다.
Windows 에도 chatscript 를 압축해제한 후, BINARIES 에 들어가서 아래를 실행한다.
chatscript client=192.168.11.6:1024
그러면 Enter client user name: 와 같이 이름기입하라고 나타난다.
아래는 실패 ---------------
1. ChatBot 디렉토리 아래에는
ㄴ ChatScript
ㄴ [ChatBotServiceName] : 디렉토리. 이름 직접 지정 Ex> MYCHATBOT
ㄴ Infra
files[ChatBotServiceName] : 파일. 이름 직접 지정. 위 디렉토리와 동일 Ex> filesMYCHATBOT
2. HARRY 안에 4개 파일을 MYCHATBOT 에 복사
( childhood.top, introductions.top, keywordless.top, simplecontrol.top )
3. cp ChatBot/ChatScript/RAWDATA/HARRY/* ChatBot/MYCHATBOT/
* 혹시 filesharry.txt 가 있으면 제외할 것.
'ChatBot 띄우기' 카테고리의 다른 글
ChatScript Client/ Server 실행 옵션들. (0) | 2018.10.21 |
---|---|
Client 에서 Command 실행 권한자 제한 (0) | 2018.10.21 |
자신만의 Bot 만들기 (0) | 2018.10.09 |
Centos7.firewalld 에 ChatScript Port=1024 추가하기 (0) | 2018.10.08 |
APM 설치 by YUM (0) | 2018.10.07 |