开发和运行环境

上传人:自*** 文档编号:79266755 上传时间:2019-02-16 格式:DOCX 页数:13 大小:32.39KB
返回 下载 相关 举报
开发和运行环境_第1页
第1页 / 共13页
开发和运行环境_第2页
第2页 / 共13页
开发和运行环境_第3页
第3页 / 共13页
开发和运行环境_第4页
第4页 / 共13页
开发和运行环境_第5页
第5页 / 共13页
点击查看更多>>
资源描述

《开发和运行环境》由会员分享,可在线阅读,更多相关《开发和运行环境(13页珍藏版)》请在金锄头文库上搜索。

1、j目录1、概述12、环境包裹需求22.1 修改yum升级选项22.2 升级所有包22.3 安装必需的包裹22.4 升级内核33、WEB服务器的安装和设置44、php的安装和配置105、安装ZFS系统115.1 安装支持包115.2 安装ZFS文件系统116、管理系统配置136.1 配置文件名称和目录131、概述IPSHOT服务器管理系统采用php+lighttpd+sqlite架构方式,开发系统为REDHAT5.5版本。2、环境包裹需求为了代码编译过程中减少问题,将尽量采用最新包裹。安装的时候请选上development包裹,否则你需要用yum install gcc自行安装。2.1 修改yu

2、m升级选项1)修改yum升级URL修改baseurl,enabled和gpgkey三个选项。name=Red Hat Enterprise Linux $releasever - $basearch - Debugbaseurl=http:/mirror.its.sfu.ca/mirror/CentOS/5/os/$basearchenabled=1gpgcheck=1gpgkey=http:/mirror.centos.org/centos/RPM-GPG-KEY-centos5rpm -import http:/mirror.centos.org/centos/RPM-GPG-KEY-Ce

3、ntOS-52.2 升级所有包条件:设置好yum镜像网站”2.1部分”,注意,两次update.#yum update#yum update#reboot2.3 安装必需的包裹#yum install openssl-devel pcre-devel pcre 2.4 升级内核如果需要升级内核,请按照下面的方式。#wget http:/www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.37.tar.bz2#tar jxfv linux-2.6.37.tar.bz2#cd linux-2.6.37#cp /boot/config-2.6.18-194.

4、32.1.el5 .config#make oldconfig#vi .config,找到CONFIG_SYSFS_DEPRECATED=y, CONFIG_SYSFS_DEPRECATED_V2=y#make#make modules_install#make install#cd /boot# mkdir newinit# cd newinit#zcat ./initrd-2.6.37.img |cpio i#vi init#编辑init文件,删除重复的部分” insmod /lib/dm-region-hash.ko”。重新打包initrd#find . | cpio -c -o ./i

5、nitrd#cd .# gzip -9 initrd-2.6.37.jethely.img#vi grub/grub.conf,修改initrd /boot/initrd-2.6.37.img为initrd-2.6.37.jethely.img#vi /boot/grub/grub.conf#修改default=0#reboot3、WEB服务器的安装和设置#mkdir p /iphost/env,此目录为内核升级,web,php源代码目录,开发系统不用删除。#wget http:/ zxfv lighttpd-1.4.28.tar.gz#cd lighttpd-1.4.28#./configu

6、re -prefix=/usr/local/lighttpd -sysconfdir=/etc/lighttpd -with-openssl -with-pcre -with-zlib#make#make install#mkdir p /etc/lighttpd,配置文件目录#mkdir p /var/log/lighttpd,日志文件目录#mkdir p /usr/local/www,界面程序文件目录# mkdir -p /var/run/lighttpd,运行启动文件保存目录#cp doc/initscripts/rc.lighttpd.redhat /etc/init.d/ipshot

7、web,web服务器启动文件#vi /etc/init.d/ipshotweb将prog改为ipshotweb,改lighttpd路径为“/usr/local/lighttpd/sbin/lighttpd”#cp doc/config/lighttpd.conf /etc/lighttpd/lighttpd.conf# /etc/lighttpd/lighttpd.conf#vi /etc/lighttpd/lighttpd.conf,把下面内容全部贴入。var.log_root = /var/log/lighttpdvar.server_root = /usr/local/wwwvar.st

8、ate_dir = /var/runvar.home_dir = /usr/local/lighttpdvar.conf_dir = /etc/lighttpdvar.vhosts_dir = server_root + /vhostsvar.cache_dir = /var/cache/lighttpdvar.socket_dir = home_dir + /socketsserver.modules = ( mod_access, mod_auth, mod_accesslog, mod_fastcgi, mod_cgi )mimetype.assign = ( .pdf = applic

9、ation/pdf, .sig = application/pgp-signature, .spl = application/futuresplash, .class = application/octet-stream, .ps = application/postscript, .torrent = application/x-bittorrent, .dvi = application/x-dvi, .gz = application/x-gzip, .pac = application/x-ns-proxy-autoconfig, .swf = application/x-shock

10、wave-flash, .tar.gz = application/x-tgz, .tgz = application/x-tgz, .tar = application/x-tar, .zip = application/zip, .mp3 = audio/mpeg, .m3u = audio/x-mpegurl, .wma = audio/x-ms-wma, .wax = audio/x-ms-wax, .ogg = application/ogg, .wav = audio/x-wav, .gif = image/gif, .jar = application/x-java-archiv

11、e, .jpg = image/jpeg, .jpeg = image/jpeg, .png = image/png, .xbm = image/x-xbitmap, .xpm = image/x-xpixmap, .xwd = image/x-xwindowdump, .css = text/css, .html = text/html, .htm = text/html, .js = text/javascript, .asc = text/plain, .c = text/plain, .cpp = text/plain, .log = text/plain, .conf = text/plain, .text = text/plain, .txt = text/plain, .dtd = text/xml, .xml = text/xml, .mpeg = video/mpeg, .mpg = video/mpeg, .mov = video/quicktime, .qt = video/quicktime, .avi = video/x-msvideo, .asf = video/x-ms-asf, .asx = video/x-ms-asf, .wmv = video/x-ms

展开阅读全文
相关资源
相关搜索

当前位置:首页 > 办公文档 > 其它办公文档

电脑版 |金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号