




已阅读5页,还剩8页未读, 继续免费阅读
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
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=/centos/RPM-GPG-KEY-centos5rpm -import /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 /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 /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, .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-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-wmv, .bz2 = application/x-bzip, .tbz = application/x-bzip-compressed-tar, .tar.bz2 = application/x-bzip-compressed-tar, = application/octet-stream, )server.port=8081server.use-ipv6 = disable#server.bind = localhost#server.username = lighttpd#server.groupname = lighttpd#server.core-files = disableserver.document-root = server_rootaccesslog.filename = log_root + /access.logserver.tag = oneplatserver.pid-file = state_dir + /lighttpd.pidserver.errorlog = log_root + /error.log#server.errorlog-use-syslog = enable#include conf.d/debug.confserver.event-handler = work-backend = linux-sendfileserver.max-fds = 2048server.stat-cache-engine = simpleserver.max-connections = 1024#server.max-keep-alive-idle = 5#server.max-keep-alive-requests = 16#server.max-request-size = 0#server.max-read-idle = 60#server.max-write-idle = 360#server.kbytes-per-second = 128#connection.kbytes-per-second = 32s += ( index.php, index.html, index.htm, default.htm, default.php)url.access-deny = ( , .inc, .htpasswd )$HTTPurl = .pdf$ server.range-requests = disable#url.rewrite = ( /$ = /server-status )#url.redirect = ( /wishlist/(.+) = /$1 )#$HTTPhost = www.(.*) # url.redirect = ( /(.*) = http:/%1/$1 )#static-file.exclude-extensions = ( .php, .pl, .fcgi, .scgi )#server.error-handler-404 = /error-handler.html#server.error-handler-404 = /error-handler.php#server.errorfile-prefix = /srv/www/htdocs/errors/status-#include conf.d/mime.conf#include conf.d/dirlisting.confserver.follow-symlink = enable#server.force-lowercase-filenames = disableserver.upload-dirs = ( /var/tmp )# ssl.engine = enable# ssl.pemfile = /path/to/server.pem# The HTTPS protocol does not allow you to use name-based virtual# hosting with SSL. If you want to run multiple SSL servers with# one lighttpd instance you must use IP-based virtual hosting: :# $SERVERsocket = :443 # ssl.engine = enable# ssl.pemfile = /etc/ssl/private/.pem# = # server.document-root = /srv/www/vhosts//www/# # $ cat /etc/ssl/private/lighttpd.key /etc/ssl/certs/lighttpd.crt # /etc/ssl/private/lighttpd.pem#ssl.pemfile = /etc/ssl/private/lighttpd.pem# optionally pass the CA certificate here.#ssl.ca-file = fastcgi.server = ( .php = ( localhost = ( socket = /var/run/lighttpd/php-fastcgi.socket, bin-path = /usr/local/php/bin/php-cgi ) )注意:暂时不用测试web服务器,将php安装完再测试。4、php的安装和配置#wget /get/php-5.3.5.tar.bz2/from/this/mirror#tar jxfv php-5.3.5.tar.bz2#cd php-5.3.5#./configure -prefix=/usr/local/php -with-config-file-path=/etc/php -with-openssl -with-pcre-regex -with-zlib -with-bz2 -with-jpeg-dir -with-png-dir -with-freetype-dir -enable-sqlite-utf8 -with-libxml-dir -enable-zend-multibyte -with-gettext#make#make install#mkdir p /etc/php#mkdir p /etc/inc#cp php.ini-production /etc/php/php.ini#vi /etc/php/php.ini增加include_path=.:/etc/inc:/usr/local/www;#/etc/init.d/ipshotweb start测试成功与否:#cd /usr/local/www#vi test.php5、安装ZFS系统5.1 安装支持包5.2 安装ZFS文件系统1)SPL包32位安装:#wget -no-check-certificate /downloads/behlendorf/spl/spl-0.5.2.tar.gz#tar zxfv spl-0.5.2.tar.gz#cd spl-0.5.2# ./configure -prefix=/usr -libdir=/usr/lib#make#make install64位安装:export BUILD64=-m64export CLFS_HOST=x86_64-redhat-linux-gnuexport CLFS_TARGET=x86_64-redhat-linux-gnuCC=gcc $BUILD64 ./configure -prefix=/usr -build=$CLFS_HOST -host=$CLFS_TARGET -target=$CLFS_TARGET -libdir=/usr/lib64 ena
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025年室内设计师高级面试实战模拟题集详解
- 2025年面试食堂管理常见问题及答案
- 2025年安全生产安全培训手册题及答案
- 2025年机械工程初级面试题
- 2025年小学安全意识测试题及答案
- 2025年安全管理法规考试题集
- 机电运输知识培训内容课件
- 2025年金融市场分析师资格认证考试试题及答案解析
- 2025年学生防拐骗安全知识问卷及答案
- 2025年化妆品生产与营销管理岗位技能考核试卷及答案解析
- T∕CITS 146-2024 尿液有形成分名称与结果报告规范化指南
- 主要粮食作物机收减损技术-农业农机技术培训课件
- 心衰病患者护理查房课件
- JJF1101-2019环境试验设备温度、湿度校准规范-(高清现行)
- TSG11-2020 锅炉安全技术规程
- 水泥化学分析方法培训精品课件
- 四年级上册可爱的榆林全册教案
- 金属封闭母线
- 道路工程质量保证措施
- 贵州省评标专家库
- 吨焊接滚轮架主动滚轮架设计机械CAD图纸
评论
0/150
提交评论