问题描述

有时候逛技术社区,经常会发现有个叫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. Windows10自适应和交互式toast通知[1]

    阅读目录: 概述 toast通知的结构 视觉区域(Visual) 行为(Actions) 特定场景下的Toast通知 带多内容的通知 带行为的通知(例子1) 带行为的通知(例子2) 带文本输入框和行为 ...

  2. 浅析Go语言的Interface机制

    前几日一朋友在学GO,问了我一些interface机制的问题.试着解释发现自己也不是太清楚,所以今天下午特意查了资料和阅读GO的源码(基于go1.4),整理出了此文.如果有错误的地方还望指正. GO语 ...

  3. ABP(现代ASP.NET样板开发框架)系列之10、ABP领域层——实体

    点这里进入ABP系列文章总目录 基于DDD的现代ASP.NET开发框架--ABP系列之10.ABP领域层——实体 ABP是“ASP.NET Boilerplate Project (ASP.NET样板 ...

  4. ABP源码分析七:Setting 以及 Mail

    本文主要说明Setting的实现以及Mail这个功能模块如何使用Setting. 首先区分一下ABP中的Setting和Configuration. Setting一般用于需要通过外部配置文件(或数据 ...

  5. 自定义view(一)

    最近在学习自定义view  一遍看一别学顺便记录一下 1.View的测量-------->onMeasure() 首先,当我们要画一个图形的时候,必须知道三个数据:位置,长度,宽度   才能确定 ...

  6. python中的Ellipsis

    ...在python中居然是个常量 print(...) # Ellipsis 看别人怎么装逼 https://www.keakon.net/2014/12/05/Python%E8%A3%85%E9 ...

  7. python中的默认参数

    https://eastlakeside.gitbooks.io/interpy-zh/content/Mutation/ 看下面的代码 def add_to(num, target=[]): tar ...

  8. SQL Server 动态行转列(参数化表名、分组列、行转列字段、字段值)

    一.本文所涉及的内容(Contents) 本文所涉及的内容(Contents) 背景(Contexts) 实现代码(SQL Codes) 方法一:使用拼接SQL,静态列字段: 方法二:使用拼接SQL, ...

  9. sql重置自增长

    SQL的自增列挺好用,只是开发过程中一旦删除数据,标识列就不连续了 写起来 也很郁闷,所以查阅了一下标识列重置的方法 发现可以分为三种: --- 删除原表数据,并重置自增列 truncate tabl ...

  10. 打造高效前端工作环境 - tmux

    打造高效前端工作环境 - tmux 前言  现在前端开发可不容易啊,先打开个VIM,然后再打开个lite-server,一不小心写个ES2015还要打开个gulp来做预编译,如果能把这么多个窗口放在一 ...