问题描述

有时候逛技术社区,经常会发现有个叫IRC的东西存在,想搭建下看看到底是个什么东西

说明:

操作系统环境为CentOS6.5_64

安装irc服务器

通过yum进行安装,命令如下:

yum install ircd-hybrid.x86_64

ircd-hybrid版本如下:

ircd-hybrid-7.3.1-2.el6.x86_64

配置irc服务器

文件位置: /etc/ircd/ircd.conf

修改serverinfo

修改sid,vhost比如:

sid = "1ST";
vhost = "192.168.1.80";

修改auth

用于用户认证,比如:

auth {
/*
* user: the user@host allowed to connect. Multiple IPv4/IPv6 user
* lines are permitted per auth block.
*/
user = "*@192.168.1.0/24";
#user = "*test@123D:B567:*"; /* password: an optional password that is required to use this block */
#password = "letmein";
password = ""; /*
* encrypted: controls whether the auth password above has been
* encrypted.
*/
#encrypted = yes;
encrypted = no; /*
* spoof: fake the users host to this. This is free-form,
* just do everyone a favor and don't abuse it. ('=' prefix on /stats I)
*/
spoof = "I.still.hate.packets"; /* class: the class the user is placed in */
class = "opers"; /*
* need_password: don't allow users who haven't supplied the correct
* password to connect using another auth{} block
* ('&' prefix on /stats I if disabled)
* need_ident: require the user to have identd to connect ('+' prefix on /stats I)
* spoof_notice: enable spoofing notification to admins
* exceed_limit: allow a user to exceed class limits ('>' prefix on /stats I)
* kline_exempt: exempt this user from k/glines ('^' prefix on /stats I)
* gline_exempt: exempt this user from glines ('_' prefix on /stats I)
* resv_exempt: exempt this user from resvs ('$' prefix on /stats I)
* no_tilde: remove ~ from a user with no ident ('-' prefix on /stats I)
* can_flood: allow this user to exceed flood limits ('|' prefix on /stats I)
* can_idle: exempt this user from idle restrictions ('<' prefix on /stats I)
*/
flags = need_password, spoof_notice, exceed_limit, kline_exempt,
gline_exempt, resv_exempt, no_tilde, can_flood, can_idle;
};

删除havent_read_conf

havent_read_conf = 1; #必须注销掉此行,否则不让你运行

配置修改完成后,重新IRC服务器:

/etc/init.d/ircd restart

客户端测试

安装irssi :

yum install irssi

启动irssi :

irssi

连接到服务器:

/connect 192.168.1.80

这里不能用127.0.0.1

加入频道:

/join test_room

如果频道不存在,则会创建频道。

本文github地址:

https://github.com/mike-zhang/mikeBlogEssays/blob/master/2016/20160716_centos6下搭建irc服务器.md

欢迎补充

最新文章

  1. netstat
  2. 创建ServiceArea
  3. Gridview布局界面练习Base Adapter
  4. jQuery控制CSS样式
  5. jqGrid简单介绍
  6. PE框架学习之道:PE框架——style的配置
  7. android 多媒体数据库详解
  8. 502 Bad Gateway(Nginx) 查看nginx日志有如下内容
  9. MQ队列与哪些机器连接
  10. Vue实例学习过程中碰到的小问题
  11. Number and String in JS
  12. Django REST framework 简介
  13. BZOJ5177 : [Jsoi2013]贪心的导游
  14. PAT A1074 Reversing Linked List (25 分)——链表,vector,stl里的reverse
  15. Udacity并行计算课程 CS344 编程作业答案
  16. jdbc -- 001 -- 一般方式创建数据库连接(oracle/mysql)
  17. WinForm中变Enter键为Tab键实现焦点转移的方法
  18. set集合操作【python】
  19. debian 安装deb软件
  20. keydown事件下调用trigger事件执行两次

热门文章

  1. 再次思考 classpath 环境变量 等
  2. jQuery的几个应例题、JSON基础
  3. Jmeter正则表达式
  4. div中设置滚动条的问题
  5. &lt;a&gt; href属性--记录八
  6. Quartz.NET Windows 服务示例
  7. SpringMVC一路总结(三)
  8. 基于STM32Cube的IIC主从通信
  9. 针对每种Windows Server 操作Excel、Word等Office组件遇到“ComException&quot;、”80070005“等COM错误的解决方案大汇总
  10. Ionic2系列——Ionic 2 Guide 官方文档中文版