<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Server | Hessian's Blog</title><link>https://hessian.cn/cat/server</link><description>Hessian 的技术笔记：Linux、C++、网络与嵌入式</description><language>zh-CN</language><atom:link href="https://hessian.cn/cat/server/index.xml" rel="self" type="application/rss+xml"/><item><title>CentOS + Cacti 集中监控服务器 （笔记）</title><link>https://hessian.cn/p/1411.html</link><pubDate>Wed, 15 Jan 2014 06:44:42 +0800</pubDate><guid>https://hessian.cn/p/1411.html</guid><description>Cacti官方网站&#10;官方文档——Installing Under Unix&#10;Percona Monitoring Plugins （Plugins for Cacti）&#10;Percona 为我们提供了很多包括linux,apache,mysql,redis,nginx等等常见服务的监控模板非常方便。&#10;下载地址 | 官方文档&#10;</description></item><item><title>在Windows/Linux下让程序指定出口IP地址</title><link>https://hessian.cn/p/1378.html</link><pubDate>Fri, 18 Oct 2013 01:43:00 +0800</pubDate><guid>https://hessian.cn/p/1378.html</guid><description>Windows/Unix* 系统都支持为一个网卡绑定多个IP地址，但是通常操作系统会根据路由表自动选择IP地址，应用程序使用哪个IP地址用户无法主动控制。本文分别讲解在Linux和Windows下为应用程序绑定指定IP地址的方法。&#10;</description></item><item><title>NGINX userid 分析、解码</title><link>https://hessian.cn/p/1362.html</link><pubDate>Wed, 18 Sep 2013 02:05:43 +0800</pubDate><guid>https://hessian.cn/p/1362.html</guid><description>生成userid的代码在 http/modules/ngx_http_userid_filter_module.c 大概550行左右。&#10;uid_set 是4个uint32构成的，其中比较有用的是第二个unit32，是userid的生成时间。第四个是一个递增值 以 0x03030302 为初始值，每次递增0x100。&#10;</description></item><item><title>CentOS Linux 6 NFS 配置</title><link>https://hessian.cn/p/1360.html</link><pubDate>Tue, 17 Sep 2013 20:34:40 +0800</pubDate><guid>https://hessian.cn/p/1360.html</guid><description>yum install nfs nfs-utils rpcbind&#13;service rpcbind start&#13;chckonfig rpcbind on&#13;cat "/shared_dir 192.168.1.200(rw,async,all_squash,anonuid=500,anongid=500)" &gt; /etc/exports 參數 參數功能 預設參數 fg&#10;bg 當執行掛載時，該掛載的行為會在前景 (fg) 還是在背景 (bg) 執行？ 若在前景執行時，則 mount 會持續嘗試掛載，直到成功或 time out 為止，若為背景執行， 則 mount 會在背景持續多次進行 mount ，而不會影響到前景的程序操作。 如果你的網路連線有點不穩定，或是伺服器常常需要開關機，那建議使用 bg 比較妥當。 fg soft&#10;hard 如果是 hard 的情況，則當兩者之間有任何一部主機離線，則 RPC 會持續的呼叫，直到對方恢復連線為止。如果是 soft 的話，那 RPC 會在 time out 後『重複』呼叫，而非『持續』呼叫， 因此系統的延遲會比較不這麼明顯。同上，如果你的伺服器可能開開關關，建議用 soft 喔！ hard intr 當你使用上頭提到的 hard 方式掛載時，若加上 intr 這個參數， 則當 RPC 持續呼叫中，該次的呼叫是可以被中斷的 (interrupted)。 沒有 rsize&#10;wsize 讀出(rsize)與寫入(wsize)的區塊大小 (block size)。 這個設定值可以影響用戶端與伺服器端傳輸資料的緩衝記憶容量。一般來說， 如果在區域網路內 (LAN) ，並且用戶端與伺服器端都具有足夠的記憶體，那這個值可以設定大一點， 比如說 32768 (bytes) 等，提升緩衝記憶區塊將可提升 NFS 檔案系統的傳輸能力！ 但要注意設定的值也不要太大，最好是達到網路能夠傳輸的最大值為限。 rsize=1024&#10;wsize=1024 mount -t nfs -o bg,soft,rsize=32768,wsize=32768 192.168.1.100:/shared_dir /mount_point Mac系统下挂载NFS有一点特别，需要加几个参数&#10;不加resvport在mac下会挂载不了，不加nolockd的话给文件加锁的时候会提示nfs server lockd not responding&#10;</description></item><item><title>强大的 轻量级 Linux服务器监控系统 Monitorix</title><link>https://hessian.cn/p/1348.html</link><pubDate>Thu, 12 Sep 2013 01:16:49 +0800</pubDate><guid>https://hessian.cn/p/1348.html</guid><description>Monitorix 是一个开源的、轻量的 Linux/Unix 服务器监控工具。安装配置简单，图表功能丰富。&#10;官方网站：http://www.monitorix.org&#10;安装方法：&#10;# perl-HTTP-Server-Simple 需要从EPEL安装&#13;rpm -ivh http://mirrors.yun-idc.com/epel/6/x86_64/epel-release-6-8.noarch.rpm&#13;# 安装依赖&#13;yum install rrdtool rrdtool-perl perl-libwww-perl perl-MailTools perl-MIME-Lite perl-CGI perl-DBI perl-XML-Simple perl-Config-General perl-HTTP-Server-Simple&#13;# 安装Monitorix&#13;yum install monitorix&#13;# 启动服务&#13;service monitorix start 博主最近要监控一台线上服务器，用cacti又嫌太麻烦，在看了《比cacti更好的linux单机监控——Monitorix的安装与配置》 之后决定采用Monitorix。&#10;</description></item><item><title>Linode LNMP服务器环境配置笔记</title><link>https://hessian.cn/p/1273.html</link><pubDate>Tue, 14 May 2013 10:19:42 +0800</pubDate><guid>https://hessian.cn/p/1273.html</guid><description>我选的是1GB的套餐，每个月$20，年付减10%，实付$230.21折合人民币1400多点。&#10;Linode 1GB&#10;操作系统： CentOS Linux 6.2 64bit&#10;运行环境： Nginx+PHP+MySQL&#10;</description></item><item><title>VPS换了Linode</title><link>https://hessian.cn/p/1091.html</link><pubDate>Fri, 10 May 2013 12:40:37 +0800</pubDate><guid>https://hessian.cn/p/1091.html</guid><description>本来用的国内的某VPS，各方面也都不错，就是价格有点略贵（谁让我最近穷呢），跟Linode差不多的配置，价格还要贵上不少。&#10;性能方面具体测试下来，网络速度也差不多，Linode我用的是日本的节点，速度还是可以的，相比原来的VPS也差不多，感觉还是很值。&#10;</description></item><item><title>在Windows下创建符号链接（软链接）</title><link>https://hessian.cn/p/1063.html</link><pubDate>Fri, 08 Mar 2013 13:02:14 +0800</pubDate><guid>https://hessian.cn/p/1063.html</guid><description>其实在windows 2000以上的操作系统中已经支持了软链接技术，微软称为：Junction（结合点），只不过系统并没有内置用来创建软链接的工具，需要我们自己下载。&#10;</description></item><item><title>你可能不知道的Shell | 酷壳 – CoolShell.cn</title><link>https://hessian.cn/p/1054.html</link><pubDate>Fri, 23 Nov 2012 09:08:18 +0800</pubDate><guid>https://hessian.cn/p/1054.html</guid><description>via 你可能不知道的Shell | 酷壳 – CoolShell.cn.&#10; &#10;Shell也叫做命令行界面，它是*nix操作系统下用户和计算机的交互界面。Shell这个词是指操作系统中提供访问内核服务的程序。&#10;</description></item><item><title>CentOS 6.2（RHEL6）高可用服务器环境搭建</title><link>https://hessian.cn/p/961.html</link><pubDate>Fri, 25 May 2012 16:32:44 +0800</pubDate><guid>https://hessian.cn/p/961.html</guid><description>目标 为四台新服务器部署MySQL、Coreseek、Redis、MongoDB、NFS、Varnish等服务。四台服务器分为两组、使用Linux-HA + Pacemaker 实现高可用（HA, High-Availablility）。&#10;</description></item><item><title>[转]php sphinx 高效率搜索引擎搭建</title><link>https://hessian.cn/p/192.html</link><pubDate>Sun, 20 May 2012 00:56:18 +0800</pubDate><guid>https://hessian.cn/p/192.html</guid><description>原文地址：http://blog.csdn.net/adparking/article/details/7207119&#10; &#10;1.下载PHP客户端安装:&#10;</description></item><item><title>无力啊，自己编译的MYSQL有问题</title><link>https://hessian.cn/p/58.html</link><pubDate>Mon, 01 Aug 2011 21:54:03 +0800</pubDate><guid>https://hessian.cn/p/58.html</guid><description>netome.net的VPS搁置了很久了，这两天才想起来好好弄一下。 从vePortal上reload了CentOS6，又在自己机器上装了个CentOS6 Minimal做编译环境，好不容易MYSQL/PHP/NGINX都编译好了，放到服务器上调了一整天，好像没问题。&#10;</description></item></channel></rss>