Linux下Apache的安装
地址:http://httpd.apache.org/
下载地址:http://httpd.apache.org/download.cgi
1,解压缩
tar -xzvf httpd-2.0.63.tar.gz
2,配置
./configure --prefix=/usr/local/apache --enable-module=all --enable-shared=max
3,编译
make
4,安装
make install
5,管理
apachectl start
apachectl stop
apachectl restart
6,删除
rm -rf /usr/local/apache
相关文档:
#protect share data
spin_lock/spin_unlock: protect the data during process context(and only at process context), and make sure your code bewteen lock/unlock is fast enough.There may deadlock if the same spin_lock is called at interrupt context.
spin_lock_irq/spin_unlock_irq: call it during interru ......
Ubuntu Linux系统环境变量配置文件介绍
发布时间:2007.12.19 06:30 来源:赛迪网 作者:sixth
在Ubuntu中有如下几个文件可以设置环境变量
/etc/profile:在登录时,操作系统定制用户环境时使用的第一个文件,此文件为系统的每个用户设置环境信息,当用 ......
1,先看看工作队列和tasklet的区别:
(1) 定时器和tasklet:
Tasklets resemble kernel timers in 3 ways.
1)They are always run at interrupt time,
2)they always run on the same CPU that schedules the ......
nginx("engine x")是一个高性能的HTTP和反向代理服务器,是由俄罗斯人Igor Sysoev建立的项目,超轻量级,超快处理能力。
目前使用的nginx版本是0.7.61
nginx的官言网站为:http://nginx.net/
下载地址为:http://sysoev.ru/nginx/nginx-0.7.61.tar.gz
nginx需要pcre的支持,所以我们需要下载pcre
pcre全名为Perl Compa ......
动态获取IP
虚拟机的网卡使用NAT的连接方式(没办法,单位一个端口只允许1个IP,连hub都没法用)
pwd> vi /etc/sysconfig/network-scripts/ifcfg-eth0
BOOTPROTO的值改为dhcp,并保存
ifdown eth0; ifup eth0;重启网卡
ifconfig 发现被分配了个IP:10.0.2.15
ping www.163.com 通过
静态设置IP
待续.... ......