问题描述

有时候逛技术社区,经常会发现有个叫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

欢迎补充

centos6环境下搭建irc服务器的更多相关文章

  1. ubuntu 14.04LTS 环境下搭建tftp服务器

    花费我一整天的时间在 ubuntu 14.04LTS 环境下搭建tftp服务器,网上好多资料参差不齐,简单来说,TFTP(Trivial File Transfer Protocol),是一个基于UD ...

  2. freeSSHD在windows环境下搭建SFTP服务器

    freeSSHD在windows环境下搭建SFTP服务器 0 建议现在windows环境下安装cygwin,否则在windows环境下cmd模式使用不了sftp去连接,可以利用win scp去测试连接 ...

  3. Centos6.8下搭建SVN服务器

    1.Centos6.8下搭建SVN服务器 Subversion是一个自由,开源的版本控制系统.Subversion将文件存放在中心版本库里.这个版本库很像一个普通的文件服务器,不同的是,它可以记录每一 ...

  4. Windows环境下搭建MosQuitto服务器

    Windows环境下搭建MosQuitto服务器 2018年04月16日 22:00:01 wistronpj 阅读数:1185  摘自:https://blog.csdn.net/pjlxm/art ...

  5. Windows和Linux环境下搭建SVN服务器

    --------------------------Windows下搭建SVN服务器----------------------------- 一.安装SVN服务端 软件包Setup-Subversi ...

  6. CentOS6.5下搭建ftp服务器(三种认证模式:匿名用户、本地用户、虚拟用户)

    CentOS 6.5下搭建ftp服务器 vsftpd(very secure ftp daemon,非常安全的FTP守护进程)是一款运行在Linux操作系统上的FTP服务程序,不仅完全开源而且免费,此 ...

  7. linux系统Centos环境下搭建SVN服务器及权限配置

    linux系统Centos环境下如何搭建SVN服务器以及svnserve.conf.authz.passwd配置文件详细介绍   至于svn的概念,这里就不做详细阐述了,可以自行百度.简单来讲就是一个 ...

  8. CentOS6.5下搭建VNC服务器

    VNC(Virtual Network Computing,虚拟网络计算机)是一款由AT&T欧洲研究实验室开发的远程控制软件,允许用户在网络的任何地方使用简单的程序来和一个特定的计算机进行交互 ...

  9. [转]DNS服务器原理详解与Centos6.x下搭建DNS服务器

    转自:http://blog.it985.com/8958.html DNS 数据库的记录:正解,反解, Zone 的意义 通过DNS解析过程详解这篇文章,我们知道了要想访问www.zmit.cn,最 ...

随机推荐

  1. [转]Java实现定时任务的三种方法

    在应用里经常都有用到在后台跑定时任务的需求.举个例子,比如需要在服务后台跑一个定时任务来进行非实时计算,清除临时数据.文件等.在本文里,我会给大家介绍3种不同的实现方法: 普通thread实现 Tim ...

  2. SiteMap 提交,并使用正确的方式提交给搜索引擎

    原创Sitemap收录介绍 对于网站中原创内容的网页url,站长可以将其制作成标准的Sitemap(站点地图)文件. 站长提交Sitemap文件后,好搜会使用Sitemap中的内容来了解网站结构等信息 ...

  3. iOS-开发进阶

    iOS完整学习路线图 iOS进阶介绍: 一.iOS-常用的第三方框架的介绍 二.iOS-提高iOS开发效率的方法和工具 三.常用的调试方法 1.iOS-调试技巧 2.iOS-Xcode的使用技巧 四. ...

  4. 基于Caffe的DeepID2实现(中)

    小喵的唠叨话:我们在上一篇博客里面,介绍了Caffe的Data层的编写.有了Data层,下一步则是如何去使用生成好的训练数据.也就是这一篇的内容. 小喵的博客:http://www.miaoerduo ...

  5. 应用新安全组 - 每天5分钟玩转 OpenStack(116)

    Neutron 默认的安全组规则会禁止掉所有从外面访问 instance 的流量. 本节我们会修改安全组的配置,允许 ping 和 ssh instance.有两种方法可以达到这个目的: 1. 修改 ...

  6. Handler系列之原理分析

    上一节我们讲解了Handler的基本使用方法,也是平时大家用到的最多的使用方式.那么本节让我们来学习一下Handler的工作原理吧!!! 我们知道Android中我们只能在ui线程(主线程)更新ui信 ...

  7. YYModel 源码解读(二)之NSObject+YYModel.h (3)

    本篇主要介绍的是 在真正转之前的几个辅助函数 /** Get number from property. @discussion Caller should hold strong reference ...

  8. 模仿东京首页banner轮播,京东新闻上下滚动动画实现(动画实现)

    接着上篇 微信小程序-阅读小程序demo写:http://www.cnblogs.com/muyixiaoguang/p/5917986.html 首页banner动画实现 京东新闻上下动画实现 想着 ...

  9. 记录软件工程课程项目开发时遇到的各种小问题(django)

    1.python manage.py makemigrations 无效/无法检测出model的变化 在修改了models.py之后,我们想要更新数据库的表,使用了python manage.py m ...

  10. 【C#】组件发布:MessageTip,轻快型消息提示窗

    -------------201610212046更新------------- 更新至2.0版,基本完全重写,重点: 改为基于原生LayeredWindow窗体和UpdateLayeredWindo ...