资源预览内容
第1页 / 共13页
第2页 / 共13页
第3页 / 共13页
第4页 / 共13页
第5页 / 共13页
第6页 / 共13页
第7页 / 共13页
第8页 / 共13页
第9页 / 共13页
第10页 / 共13页
亲,该文档总共13页,到这儿已超出免费预览范围,如果喜欢就下载吧!
资源描述
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 修改yum升级选项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-CentOS-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.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 ./initrd#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:/download.lighttpd.net/lighttpd/releases-1.4.x/lighttpd-1.4.28.tar.gz#tar zxfv lighttpd-1.4.28.tar.gz#cd lighttpd-1.4.28#./configure -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/ipshotweb,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.state_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 = application/pdf, .sig = application/pgp-signature, .spl = application/futuresplash, ..ps = application/postscript, .torrent = application/x-bittorrent, .dvi = application/x-dvi, .gz = application/x-gzip, .pac = application/x-ns-proxy-autoconfig, .swf = application/x-shockwave-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-archive, .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
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号