
Linux Server
文章平均质量分 88
unixboy_xujf
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Ssh 无密码登录的怪问题
今天为做Oracle RAC 做ssh的免密码登陆,出现也这个问题: Jun 23 14:09:52 oracle1 sshd[4970]: Authentication refused: bad ownership or modes for directory /opt/oracle 一定要将 oracle的home 和.ssh的mod 设为700. 这是 ubuntu feisty...2008-06-23 14:21:05 · 118 阅读 · 0 评论 -
dovecot + postfix + postfixadmin 建立mail服务器中的几个事项
我是新手! 第一次建立自己单位的mail服务器。根据网上的资料都无法通过md5加密口令的smtp认证。自己改动了几个地方,终于实现了。 从网上得到了很多资料,这次回报一下,有什么不对的地方,请大家指出。 首先你可以网上搜一下完整的PHP APACHE MYSQL DOVECOT POSTFIX的安装事项,再看看这篇能不能解决你遇到的问题。 服务器版本:CentOS 4.5 X86_64 其它...2008-05-27 22:48:56 · 862 阅读 · 0 评论 -
windows 无盘机,更新主机名.
同用一个镜像的无盘机,开机后更新主机名. 写个run.vbs脚机,在本地策略中开机后运行. On Error Resume Next urp="http://192.168.0.110/pxe/" URL=urp & "hostname.php" Set Http = CreateObject("Microsoft.XMLHTTP") Http.Open "GET"...2009-11-11 22:03:24 · 168 阅读 · 0 评论 -
两台linux完美实现双机热备
一直想做基于linux的双机热备,一直没有时间和机会。一直以为只要做双机热备的实验就必须两台机器外接一个存储。甚至一个月以前在学习keepalived的时候还在琢磨keepalvied去掉哪些条件可以实现双机热备。直到一个月以前设计存储方案的时候部门老大给了一个国外的链接介绍drbd+nfs实现nfs的热备方案的时候,我的眼前一亮,这不就是我一直想做的不依靠存储实现热备的解决方案吗? ...原创 2009-11-12 21:39:40 · 341 阅读 · 0 评论 -
redmine & ruby 在ubuntu 上的安装笔记
edmine & ruby 在ubuntu 上的安装笔记 1. 前提 gcc 环境是必要的 apt-get install build-essential 2. ruby 必要件安装 apt-get install ruby ri rdoc rake rubygems ruby-dev libmysqlclient16-dev libopenssl-ruby...2009-12-05 11:07:09 · 144 阅读 · 0 评论 -
lvm on xen
Moving a Xen Guest into an LVM container from a loopback sparse image is easy enough. You’ll need to power down the VM using xm shutdown mymachine Once done, create the logical volume with: lvcreate...2010-03-25 22:18:32 · 131 阅读 · 0 评论 -
squid server
For fine control you may need to use Squid proxy server authentication. This will only allow authorized users to use proxy server. You need to use proxy_auth ACLs to configure ncsa_auth module. Brows...2010-03-25 23:01:35 · 140 阅读 · 0 评论 -
apache 的模块安装
Apache HTTP服务器是一个模块化的软件,管理员可以通过选择服务器中包含的模块进行功能增减。模块可以在编译时被静态包含进httpd二进制文件,也可以编译成独立于httpd二进制文件的动态共享对象(DSO)。DSO模块可以与服务器一起编译,也可以用Apache扩展工具(apxs)单独编译。 本文阐述如何使用DSO模块及其工作原理。 实现 相关模块 相关指令 mod_so LoadModule ...原创 2010-01-23 13:18:04 · 263 阅读 · 0 评论 -
apache 设置中的两个指令 EnableMMAP/EnableSendfile
apache 中的目录为 windows 共享文件夹时,出现了一种情况: 访问大文件时>100k,只能送出前30k左右的内容, 在 ie中如何刷新都不能显示完整, 在 firefox中刷新几次后可显示完整,用 wget时,可看出明显的续传的过程. 需要关闭以下两项, 具体还是不知为何,但行之有效: EnableMMAP 指令 说明 在递送中使用内存映射(memo...原创 2010-06-29 21:18:04 · 171 阅读 · 0 评论 -
挂载虚拟机镜像文件里的 LVM 逻辑分区
如果按照 “在 CentOS 上安装和配置 KVM ” 这篇文章介绍的方法安装 guest 操作系统到一个 raw 文件里(virt-install … –disk path=/home/vpsee/centos.img …),那么在以后的维护过程中就可能会遇到麻烦。比如,前段时间 VPSee 碰到一位用户忘了 root 密码需要挂载这个虚拟机的文件系统并恢复 shadow,这时...原创 2010-10-08 10:52:21 · 274 阅读 · 0 评论 -
查看 apache2 安装了哪些模块
root@ubuntu-idc:/# apache2ctl -t -D DUMP_MODULES apache2: apr_sockaddr_info_get() failed for ubuntu-idcapache2: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1 f...2008-05-26 15:23:47 · 1397 阅读 · 0 评论 -
Differences Between NFS and iSCSI
NFS and iSCSI provide fundamentally different data sharing semantics. NFS is inherently suitable for data sharing , since it enable files to be shared among multiple client machines. In contra...2008-06-27 09:44:52 · 107 阅读 · 0 评论 -
Virtual Hosting With Proftpd And MySQL (Incl. Quot
This document describes how to install a Proftpd server that uses virtual users from a MySQL database instead of real system users. This is much more performant and allows to have thousands of ftp...原创 2008-07-07 17:48:03 · 95 阅读 · 0 评论 -
Squid can forward https:// request to peer
In cache_peer options: cache_peer parent.foo.net parent 3128 3130 proxy-only front-end-https In the help doc, he says: use front-end-https to enable the "Front-End-Https: On" ...2008-01-09 17:25:34 · 95 阅读 · 0 评论 -
ruby on rails应用性能优化之道
JavaEye网站从2006年9月11日上线基于RoR的2.0版本开始,到现在已经运行了将近一年半了。在这一年半的时间里,JavaEye网站的每日PV从最开始的5万,缓慢增长到了现在的60万。随着网站负载的不断增加,我们也在不断尝试和调整网站的性能,积累了不少第一手RoR应用性能优化的实战经验。虽然我们并不是RoR性能优化的权威专家,我们所积累的经验也许并不是最优实践,但是作为国内最早涉足RoR商...2008-01-24 11:54:37 · 248 阅读 · 0 评论 -
Ubuntu 中 apache2+tomcat+mod_jk
1. 分别下载jdk和tomcat, 不建议使用源里的包,因为,文件放得比较散,版本也不算高,还会在启动时自动加载tomcat. 2. apt-get install libapache2-mod-jk 3.新建 workers.properties root@ubuntu-idc:/etc/apache2# cat workers.properties workers.java_home=...2008-09-05 07:45:12 · 132 阅读 · 0 评论 -
Apache 1.3 基于IP限制带宽
安装步聚: /usr/local/apache/bin/apxs -c -i -a mod_limitipconn.c 创建目录: mkdir /tmp/apachebw /tmp/apachebw/link /tmp/apachebw/master httpd.conf 添加: ExtendedStatus On...2008-02-28 14:17:56 · 162 阅读 · 0 评论 -
使用mod_cband管理Apache 2带宽和流量
About the module mod_cband is an Apache 2 module provided to solve the problem of limiting users’ and virtualhosts’ bandwidth usage. The current versions can set virtualhosts’ and users’ bandwidth ...2008-02-28 22:24:43 · 312 阅读 · 0 评论 -
How to userspace l7 filter on Ubuntu
How to userspace l7 filter on Ubuntu <script type="text/javascript"></script> <script src="http://digg.com/tools/diggthis.js" type="text/javascript"></script> L7-filt原创 2008-10-23 08:00:59 · 191 阅读 · 0 评论 -
如何用ssh挂载远程目录
如何用ssh挂载远程目录 当我们需要管理一台远程的linux服务器的时候经常使用的是比较安全的ssh。这里提供一个使用sshfs来挂载远程目录的方法。当你准备好开始做的时候请打开一个中端并按照下面的步骤进行操作:1、 sudo apt-get install sshfs2、 sudo modprobe fuse3、 sudo adduser &...原创 2008-10-30 11:09:15 · 664 阅读 · 0 评论 -
扩大虚拟机硬盘空间的方法
虚拟机是Xen,但同样适用于KVM. 虚拟机硬盘格式为raw. 1) 先建立一个空的大文件:(http://unixboy.iteye.com/admin/blogs/522648) dd if=/dev/zero of=os11.img bs=1 count=0 seek=10G 2) 停了虚拟机 3) cat os11.img >> app_data...原创 2010-11-18 07:53:48 · 137 阅读 · 0 评论