lighttpd源码安装
来源:互联网 发布:赞美女生的网络句子 编辑:程序博客网 时间:2024/06/07 01:49
安装必要的软件
- yum -y install glib2-devel openssl-devel pcre-devel bzip2-devel gzip-devel
- yum -y install gamin
- yum -y install gamin-devel
- yum -y install gcc gcc-c++
安装Lighttpd
到http://www.lighttpd.net/下载最新版,现在最新版是1.4.28。
- cd /usr/local/src
- wget http://download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.gz
- tar -zxvf lighttpd-1.4.28.tar.gz
- cd lighttpd-1.4.28
- make clean && make distclean
- ./configure --with-fam
- make
- make install
配置Lighttpd
- sed -e 's/FOO/lighttpd/g' doc/rc.lighttpd.redhat > /etc/init.d/lighttpd
- chmod 755 /etc/init.d/lighttpd
- echo "LIGHTTPD_CONF_PATH=/etc/lighttpd/lighttpd.conf" > /etc/sysconfig/lighttpd
- install -Dp ./doc/lighttpd.conf /etc/lighttpd/lighttpd.conf
- chkconfig lighttpd on
创建符号链接
- ln -s /usr/local/sbin/lighttpd /usr/sbin/lighttpd
为Lighttpd建立用户和用户组
- groupadd lighttpd
- adduser -m -g lighttpd -d /var/www -s /sbin/nologin lighttpd
为Lighttpd建立文件夹和设置所有权
- mkdir /var/log/lighttpd
- chown lighttpd:lighttpd /var/log/lighttpd
修改配置文件
- vi /etc/lighttpd/lighttpd.conf
启动Lighttpd
- service lighttpd start
设置根目录文件夹
- server.document-root = "/srv/www/htdocs/"
设置用户名和组
- perl -i -p -e 's/#server.username = "wwwrun"/server.username = "lighttpd"/g;' /etc/lighttpd/lighttpd.conf
- perl -i -p -e 's/#server.groupname = "wwwrun"/server.groupname = "lighttpd"/g;' /etc/lighttpd/lighttpd.conf
设置pid文件
- server.pid-file = "/var/run/lighttpd.pid"
- lighttpd源码安装
- lighttpd安装
- 在ubuntu11.04 下源码安装 lighttpd + php
- 在CentOS 5.6中使用源码安装lighttpd
- lighttpd源码学习
- linux安装lighttpd及配置lighttpd
- 安装lighttpd lighttpd随linux启动
- linux安装lighttpd及配置lighttpd .
- Lighttpd 的安装配置
- Lighttpd安装日志
- lighttpd(1) 安装过程
- Lighttpd 的安装配置
- Lighttpd安装日志
- Debian 安装lighttpd
- lighttpd+webpy安装实践
- 最新安装lighttpd
- ubuntu安装lighttpd
- lighttpd+PHP安装
- Spring IoC容器在Web环境中的启动源码阅读
- android事件过滤策略
- 浅谈windows和linux下内存分配规律
- div + css深入详解
- 精通one,学习another,关注next
- lighttpd源码安装
- C#中XmlNode与XmlElement的区别
- 总结
- C++标准转换运算符const_cast
- OpenGL ES2.0 – Iphone开发指引
- SSH框架中各层作用
- 如何在ashx页面获取Session值
- Java中的Timer和TimerTask在Android中的用法
- 设置echo输出字体样式