全文预览已结束
下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
常用命令rpm -Uvh *.rpm -nodeps -force 不管关联关系,直接强行安装rpmtar czvf usr.tar.gz /home 把home目录下的文件压缩成usr.tar.gzr=4w=2x=1-LAMP一、安装gd21、准备好安装包bzip2-develzlib-devellibjpeg-devellibpng-devellibtiff-develfreetype-developenssl-devellibxml2-devellibgcjgettext-devel2、安装gd2tar zxvf gd-2.0.35.tar.gz./configure -prefix=/soft/gd2makemake install二、安装apache2.0.55./configure -prefix=/soft/apache -enable-ssl -enable-so -enable-rewrite -enable-proxy -enable-modules=so -enable-mods-shared=all -disable-cgid -disable-cgimakemake install将apache设置为系统服务cp /soft/apache/bin/apachectl /etc/rc.d/init.d/httpd(提示覆盖?Y)vi /etc/rc.d/init.d/httpd#!/bin/sh#chkconfig: 2345 10 90#description: Apache is a World Wide Web serverchkconfig -add httpd(如果出现错误,看上面有没有拼写错误)chkconfig httpd onservice httpd start apache启动service httpd stop apache停止service httpd restart apache重新启动输入ip看有没有欢迎界面!三、安装MYSQLForLinuxV5.0.22.tar.gz./configure -prefix=/soft/mysql -without-bench -with-comment=Source -with-server-suffix=-enterprise-gpl -with-mysqld-user=postcn -without-debug -with-big-tables -with-charset=utf8 -with-collation=utf8_general_ci -with-extra-charsets=all -with-pthread -enable-static -enable-thread-safe-client -with-client-ldflags=-all-static -with-mysqld-ldflags=-all-static -enable-assembler -without-innodb -without-ndb-debug -enable-local-infile -with-readline -with-raidgroupadd postcn (userdel -r mysql) 创建postcn新组useradd -g postcn postcn 创建postcn用户,并且设置在postcn组里makemake installcp support-files/f /etc/f 把f(相当于windows下的my.ini)拷贝到etc下面cd mysql/bin./mysql_install_db -user=postcn 创建mysql用户postcnchown -R root /soft/mysql #设定root能访问/soft/mysqlchown -R postcn /soft/mysql/var/mysql #设定postcn 用户能够访问/var/mysqlchgrp -R postcn /soft/mysql #设定postcn 组能访问/soft/mysqlcp mysql.server /etc/rc.d/init.d/mysqld #support-files下的 执行下面的命令复制启动脚本到资源目录chmod +x /etc/rc.d/init.d/mysqld 执行下面的命令增加mysqld服务控制脚本执行权限chkconfig -add mysqld 执行下面的命令将mysqld服务加入到系统服务chkconfig -list mysqld 执行下面的命令检查mysqld服务是否已经生效service mysqld start注:ERROR 2002: Cant connect to local MySQL server through socket /tmp/mysql.sock 解决方法:1、cp support-files/f /etc/f 2、bin/mysql_install_db -user=postcn 3、bin/mysqld_safe -user=postcn &进mysql: cd /bin- ./mysql四、安装php4.4.0 ./configure -prefix=/soft/php -with-apxs2=/soft/apache/bin/apxs -with-mysql=/soft/mysql -with-zlib-dir -with-bz2 -with-libxml-dir -with-gd=/soft/gd2 -enable-gd-native-ttf -enable-gd-jis-conv -with-freetype-dir -with-ttf -enable-mbstring -enable-magic-quotes -enable-track-vars -enable-force-cgi-redirect -with-config-file-path=/soft/php/etc -with-iconv -disable-ipv6 -enable-static -enable-zend-multibyte -enable-inline-optimization -enable-zend-multibyte -enable-sockets -enable-soap -with-openssl -with-gettext -enable-ftpmakemake installcp php.ini-recommended /etc/php.ini五、安装ZendOptimizer-3.0.11、./install.sh2、OK-EXIT-YES-/soft/Zend-php.ini在etc下面-yes-/soft/apache/bin/apachectl(自己设定)-OK-重启httpd-successfully!-OK!六、整合apache 跟php1、修改DocumentRoot /app/web2、增加AddType application/x-httpd-php .php3、增加DirectoryIndex index.php index.html index.html.var4、如果没有LoadModule php4_module modules/libphp4.so这句,那么先find / -name libphp4.so 然后把它拷贝到apache modules下面,然后修改它的权限chmod 7555、如果有LoadModule php4_module modules/libphp4.so这句,那么在下面加上PHPiniDir /soft/Zend/etc/php.ini七、修改Zend1、打开邮政备份文件,打开php.ini进行配置,基本要覆盖2、如果解码不了那么删了Zend文件夹,然后重装httpd.confAddType application/x-httpd-php .doAddType application/x-httpd-php .phpAddType application/x-httpd-php .htm1AddType application/x-httpd-php .phtmlAddType application/x-httpd-php-source .phps八、建立text.php查看LAMP环境是否搭建成功touch test.php九、进入app/web 解压网站目录十、修改mysql数据库用户名密码bin/mysqladmin -u postcn password postcnMysql下面创建一个postcn 用户,密码为postcnMysql,并且只能对cn_gov_postcn数据库进行操作的命令GRANT ALL ON cn_gov_postcn.* TO postcn IDENTIFIED BY postcnMysql;数据导入:直接把Database_data下的cn_gov_postcn文件拷贝到/soft/mysql/var/cn_gov_postcn目录下十一、安装tomcat1、安装jdk2、配置环境变量 vi /etc/profileJAVA_HOME=/usr/java/jdk1.6.0_01CLASSPATH= $JAVA_HOME/lib: $JAVA_HOME/jre/libPATH= $PATH: $JAVA_HO
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 健康养生护理推广计划
- 合伙开采石油协议合同
- 公司年会餐饮合同范本
- 厂房排水外包合同范本
- 合同变更流程补充协议
- 协议控制架构合同模板
- 动物管理协议合同范本
- 区域合作代理协议合同
- 南京提供租车合同范本
- 一级2026年注册建筑师之设计前期与场地设计考试题库300道及参考答案(b卷)
- 2025年成人高考专升本生态学基础真题及答案
- 2025年肿瘤内科正高试题及答案
- 水务大数据分析与应用-洞察及研究
- 十八项电网重大反事故措施第一课培训课件
- 计生科应急预案(3篇)
- 修理扫帚课件
- 治边稳藏课件
- 医院消防安全管理架构及人员职责
- 小小园艺师教学课件
- 2025辽宁出版集团选聘18人笔试题库及答案详解
- 中国科学院杭州医学研究所招聘人员笔试高频难、易错点备考题库及参考答案详解
评论
0/150
提交评论