问题描述

有时候逛技术社区,经常会发现有个叫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. JavaScript动画知多少?

    今天,小学生以自己浅薄的见地,在前辈大能的基础上写这篇文章,希望给大家打开一扇窥探JavaScript(以下简称JS)动画的窗户. JS如何制造出动画效果? 结合浏览器提供的 setInterval ...

  2. 使用Nginx+Lua代理Hadoop HA

    一.Hadoop HA的Web页面访问 Hadoop开启HA后,会同时存在两个Master组件提供服务,其中正在使用的组件称为Active,另一个作为备份称为Standby,例如HDFS的NameNo ...

  3. ABP(现代ASP.NET样板开发框架)系列之6、ABP依赖注入

    点这里进入ABP系列文章总目录 基于DDD的现代ASP.NET开发框架--ABP系列之6.ABP依赖注入 ABP是“ASP.NET Boilerplate Project (ASP.NET样板项目)” ...

  4. maven archetype二三事

    maven plugin 创建maven archetype 骨架的plugin是 <plugin> <groupId>org.apache.maven.plugins< ...

  5. PHP安装mysql.so扩展

    在PHP中mysql_connect模块已经逐渐被弃用,我在搭建环境时也没有再安装mysql扩展,但是今天在维护一个老项目时,出现报错 Fatal error: Uncaught Error: Cal ...

  6. 分页实现:Offset-Fetch

    SQL Server 2012 新增 Offset-Fetch子句,用于从有序结果集中,跳过一定数量的数据行,获取指定数量的数据行,从而达到分页的目的.经过测试,在分页查询上,从逻辑读取数和响应时间来 ...

  7. 关于项目中下单流程HTML设计的一些思考

    需求 上面文字和圈圈是对齐的. 想法 一开始是想把文字和圈圈分开来的,也就是两个盒子放置.但操作中发现,想把它们对齐非常的难,总有一些是无法对齐的. 最终换了一种实现方式,按照需求,不就是想把它们关联 ...

  8. Bootstrap3系列:按钮式下拉菜单

    1. 基本实例 把按钮放入 .btn-group 中,加入适当的菜单标签,让按钮触发下拉菜单. 1.1 示例代码 <div class="btn-group"> < ...

  9. Electron安装

    1.安装nodejs和npm 官网下载地址:https://nodejs.org/en/download/ 安装包:下载.msi 安装完成后: nodejs.npm都会安装好,path环境变量也自动设 ...

  10. ASP.NET Web API与Owin OAuth:调用与用户相关的Web API

    在前一篇博文中,我们通过以 OAuth 的 Client Credential Grant 授权方式(只验证调用客户端,不验证登录用户)拿到的 Access Token ,成功调用了与用户无关的 We ...