惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Google Online Security Blog
Google Online Security Blog
C
CXSECURITY Database RSS Feed - CXSecurity.com
C
CERT Recently Published Vulnerability Notes
C
Cybersecurity and Infrastructure Security Agency CISA
Cisco Talos Blog
Cisco Talos Blog
Hacker News - Newest:
Hacker News - Newest: "LLM"
Scott Helme
Scott Helme
Project Zero
Project Zero
E
Exploit-DB.com RSS Feed
S
Secure Thoughts
K
Kaspersky official blog
L
Lohrmann on Cybersecurity
NISL@THU
NISL@THU
WordPress大学
WordPress大学
N
News and Events Feed by Topic
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
L
LINUX DO - 热门话题
小众软件
小众软件
P
Privacy & Cybersecurity Law Blog
博客园 - 聂微东
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
A
About on SuperTechFans
Hacker News: Ask HN
Hacker News: Ask HN
AWS News Blog
AWS News Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
H
Hacker News: Front Page
F
Full Disclosure
Latest news
Latest news
Schneier on Security
Schneier on Security
The Hacker News
The Hacker News
T
Troy Hunt's Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
Jina AI
Jina AI
Martin Fowler
Martin Fowler
P
Proofpoint News Feed
TaoSecurity Blog
TaoSecurity Blog
G
GRAHAM CLULEY
Forbes - Security
Forbes - Security
V
V2EX - 技术
酷 壳 – CoolShell
酷 壳 – CoolShell
V
Vulnerabilities – Threatpost
C
Cyber Attacks, Cyber Crime and Cyber Security
MongoDB | Blog
MongoDB | Blog
博客园 - 三生石上(FineUI控件)
S
SegmentFault 最新的问题
Hugging Face - Blog
Hugging Face - Blog
P
Privacy International News Feed
C
Check Point Blog
N
News and Events Feed by Topic

博客园 - xvhfeng

blog搬迁 2012 年度总结 2011年年度总结 albian使用方法-1 albian开发笔记六-albian的架构 hashTable和多线程问题 albian开发笔记五--谈缓存同步 albian开发笔记四 albian开发笔记三 albian开发笔记二 albian开发笔记一 Albian开发库的设计与规划 《程序员入职锦囊妙计》终于完成了 FastMQ V0.2.0 stable版发布 实现线程内同一对象 发现你的优势测评结果 DFS架构 开源消息队列FastMQ V0.1.0 发布 linux环境C编程的血泪教训
FastMQ V0.1.1使用方法
xvhfeng · 2010-10-05 · via 博客园 - xvhfeng

      FastMQ V0.1.1即将在本月底发布,FastMQ V0.1.1版本的配置文件和V0.1.0版本的配置文件没有根本的区别,为了更好的使用FastMQ,下文讲述FastMQ V0.1.1的更改之处和安装,使用方法。

      相对于V0.1.0,FastMQ V0.1.1最大的改变是在程序架构上的,V0.1.0版本使用fostlib的share lib方式连接fastmq,V0.1.1版本为了使使用者能更好的了解fostmq和做二次开发的调试工作,V0.1.1版本直接使用连接fostlib中的o文件方式。

      FastMQ V0.1.1版本中,安装方法如下:

安装libevent,tc服务器

cd fostmq_path

./make.sh

./make.sh install

./fostmq config_path

即可安装fostmq,并且运行,若执行make.sh无反应或提示权限问题,请检查make.sh的权限。

     配置文件:

#notice:every config item value max length is 64 chars.
bind_ip= 192.168.134.184  #服务器ip,目前必须配置
port= 9090  #服务器监听端口
network_timeout= 50 #连接延迟时间

#max network connection
max_connection=300 #服务器最大连接数

#max thread pool size
max_threadpool = 256 #线程池最大线程数,一般为连接池的1/2

#log file path
#this is must absolute path
log_path= /app/fostmq/log #日志文件路径

#store_path
store_path =/app/fostmq/data #队列文件存放路径

#interval time snyc memory to disk
sync_time= 34 #队列内容从内存同步到硬盘时间间隔

#the database memory cache size in MB
chuck_size=64 #内存块大小

#the maximum munber of non-leaf nodes to be cached
nonleaf_nodes=12 #队列服务器b-tree的node数

#the thread stack size in KB
stack_size = 4 #线程次中,线程栈的最小大小,最小为4

#the prefix name for the log file,
#the time of log file created in the end.
log_prefix=fostmq #日志文件的前缀

#every log file max line number
log_line=5000 #单日志文件最大的日志记录数

#log level
#please config it with number
#explame if you want to set log level to info,please set log_level=6
### 0:emerg for emergency
### 1:alert
### 2:crit for critical
### 3:error
### 4:warn for warning
### 5:notice
### 6:info
### 7:debug
log_level=7 #日志级别,最佳定义4

   FastMQ V0.1.2版本计划:

        1.隔离队列数据和队列系统数据;

        2.增加黑名单,白名单功能;

        3.增加指定启动进程用户组和用户功能;

        4.更改taskpool的结构体,节省内存;

        5.更改函数指针定义过多问题;

   因FastMQ完全是使用业余时间开发,故计划FastMQ V0.1.2将会在明年3月初发布。

   FastMQ V0.1.1已经是一个相对稳定版本,发布后大家可以放心使用。