安装了mysql lighttpd 等服务程序 往往需要在开机的时候自动启动
先 需要在/etc/init.d/ 下放入启动的脚本
然后 在ubuntu 有个很方便的工具:rcconf sudo apt-get install rcconf
------thanwe.com
ubuntu 下一个网卡绑定2个ip
#vi /etc/network/interfaces
OR
$ sudo vi /etc/network/interfaces
Modify as follows:
auto eth0
auto eth0:0
auto eth0:1
iface eth0 inet static
address 192.168.1.1
netmask 255.255.255.248
gateway 192.168.1.254
iface eth0:0 inet static
address 192.168.1.2
netma ...
通过调整system control (sysctl)可以显著提高linux的性能
http://www.samag.com/documents/s=8920/sam0311a/0311a.htm
#最大文件句柄数
fs.file-max = 3199696
net.ipv4.tcp_sack = 0
net.ipv4.tcp_timestamps = 0
net.ipv4.ip_local_port_range = 1024 35999
# 这样保证了 TIME_WAIT 端口既不被拒也不快速关闭
net.ipv4.tcp_fin_timeout ...
【聚杰网Linux】一个进程能够打开最大文件句柄数的设置
在Linux下,我们使用ulimit -n命令可以看到单个进程能够打开的最大文件句柄数量(socket连接也算在里面)。系统默认值1024。
对于一般的应用来说(象Apache、系统进程)1024完全足够使用。但是如何象squid、mysql、java等单进程处理大量请求的应用来说就有点捉襟见肘了。如果单个进程打开的文件句柄数量超过了系统定义的值,就会提到“too many files open”的错误提示。如何知道当前进程打开了多少个文件句柄呢?下面一段小脚本可以帮你查看:lsof -n |awk '{print $2}'|sor ...
http://nmrj.bloghome.cn/posts/147657.html
启动GNOME设置守护进程时出错
主题、声音或者背景设置等可能不会正常工作。
最后的错误信息是:
Did not receive a reply. Possible causes include: the remote application did not send a reply, the message bus security policy blocked the reply, the reply timeout expired, or the network connection was broke ...
find -name "*.xml" |xargs grep -rl "localhost"
wangkai@rserver:~/桌面/dbo$ ./jad -h
Jad v1.5.8e. Copyright 2001 Pavel Kouznetsov (kpdus@yahoo.com).
Usage: jad [option(s)] <filename(s)>
Options: -a - generate JVM instructions as comments (annotate)
-af - output fully qualified names when annotating
-b - gene ...
http://blog.lighttpd.net/articles/2005/08/28/spice-up-for-error-page
http://blogs.atlassian.com/developer/2007/05/lighttpd_as_a_front-end_for_atlassian_applications.html
Normally that's all there is to it. However, during restarts of the application server lighttpd will show a default 503 (service ...
- 17:46
- 浏览 (112)
- 评论 (0)
我在执行rndc reload 的时候显示
[root@HY-DNS conf]# rndc reload
rndc: connection to remote host closed
This may indicate that the remote server is using an older version of
the command protocol, this host is not authorized to connect,
or the key is invalid.
好像是跟 key 有关。但是我从新生成了key 也不行。
name.conf rndc.conf rnd ...
正则表达式(regular expression)描述了一种字符串匹配的模式,可以用来检查一个串是否含有某种子串、将匹配的子串做替换或者从某个串中取出符合某个条件的子串等。
列目录时, dir *.txt或ls *.txt中的*.txt就不是一个正则表达式,因为这里*与正则式的*的含义是不同的。
为便于理解和记忆,先从一些概念入手,所有特殊字符或字符组合有一个总表在后面,最后一些例子供理解相应的概念。
正则表达式
是由普通字符(例如字符 a 到 z)以及特殊字符(称为元字符)组成的文字模式。正则表达式作为一个模板,将某个字符模式与所搜索的字符串进行匹配。
可以通过在一 ...
- 浏览: 33842 次
- 性别:

- 来自: 杭州

- 详细资料
搜索本博客
我的相册
hqman
共 13 张
共 13 张
最近加入圈子
最新评论
-
Velocity体验
freemarker!!
-- by wutao8818 -
ubuntu8.04 安装错误记录
-- by wutao8818 -
简单实现了sso功能总结一 ...
为什么不把chinaren的那个链接粘贴上去呢?
-- by javafan_303 -
Velocity体验
我也要看看
-- by qichunren -
几个好用的firefox扩展
的确是很好用。。view Cookies ..哈哈
-- by lsk






评论排行榜