资源预览内容
第1页 / 共9页
第2页 / 共9页
第3页 / 共9页
第4页 / 共9页
第5页 / 共9页
第6页 / 共9页
第7页 / 共9页
第8页 / 共9页
第9页 / 共9页
亲,该文档总共9页全部预览完了,如果喜欢就下载吧!
资源描述
文档供参考,可复制、编制,期待您的好评与关注! 源码安装apache+mysql+php+phpMyAdmin 本文讲了从源码简单的安装apache+mysql+php+phpMyAdmin 安装步骤我们基本安装源码本身提供的安装文档来。安装过程中 出现缺少其他软件包的情况 我们将使用yum安装 如果你的RHEL未付费无法使用yum 请配置CentOS的yum源 或者下载rpm包安装安装之前 防火墙与selinux均设置无效。本文测试环境RHEL5.5 同样适合于CentOS5.5。本文适合新手学习安装 不适合生产环境。1.下载软件c-sharp view plaincopy1. rootRHELsrc#cd/usr/local/src/2. rootRHELsrc#wgethttp:/dev.mysql.com/get/Downloads/MySQL-5.1/mysql-5.1.50.tar.gz/from/http:/ftp.iij.ad.jp/pub/db/mysql/3. rootRHELsrc#wgethttp:/jp.php.net/get/php-5.2.14.tar.bz2/from/this/mirror4. rootRHELsrc#wgethttp:/ftp.riken.jp/net/apache/httpd/httpd-2.2.16.tar.gz5. rootRHELsrc#wgethttp:/downloads.sourceforge.net/project/phpmyadmin/phpMyAdmin/3.3.7/phpMyAdmin-3.3.7-all-languages.tar.bz22.安装配置mysqlc-sharp view plaincopy1. 2.1.编译安装2. rootRHELsrc#tar-xzvfmysql-5.1.50.tar.gz3. rootRHELsrc#cdmysql-5.1.504. rootRHELmysql-5.1.50#moreINSTALL-SOURCE5. 2.3.1.SourceInstallationOverview6. ThebasiccommandsthatyoumustexecutetoinstallaMySQLsource7. distributionare:8. shellgroupaddmysql9. shelluseradd-gmysqlmysql(一会我们修改一下不让mysql用户能登录系统)10. shellgunzipcdmysql-VERSION(我们已经进入解压目录了)12. shell./configure-prefix=/usr/local/mysql13. shellmake14. shellmakeinstall15. shellcpsupport-files/my-medium.cnf/etc/my.cnf16. shellcd/usr/local/mysql17. shellchown-Rmysql.18. shellchgrp-Rmysql.19. shellbin/mysql_install_db-user=mysql20. shellchown-Rroot.21. shellchown-Rmysqlvar22. shellbin/mysqld_safe-user=mysql&23. rootRHELmysql-5.1.50#groupaddmysql24. rootRHELmysql-5.1.50#useradd-gmysql-s/bin/falsemysql25. rootRHELmysql-5.1.50#./configure-prefix=/usr/local/mysql26. .27. checkingfortermcapfunctionslibrary.configure:error:Nocurses/termcaplibraryfound28. .29. OOPS!出错了!30. rootRHELmysql-5.1.50#yum-yinstallncurses-devel31. (rpm下载地址http:/ftp.sjtu.edu.cn/centos/5.5/os/i386/CentOS/ncurses-devel-5.5-24.20060715.i386.rpm)32. rootRHELmysql-5.1.50#./configure-prefix=/usr/local/mysql33. rootRHELmysql-5.1.50#make34. rootRHELmysql-5.1.50#makeinstall35. rootRHELmysql-5.1.50#cd/usr/local/mysql36. rootRHELmysql#chown-Rmysql.37. rootRHELmysql#chgrp-Rmysql.38. rootRHELmysql#bin/mysql_install_db-user=mysql39. rootRHELmysql#chown-Rroot.40. rootRHELmysql#chown-Rmysqlvar41. rootRHELmysql#bin/mysqld_safe-user=mysql&42. 2.2.确认mysql状态并修改密码43. rootRHELmysql#ps-ef|grepmysql44. rootRHELmysql#/usr/local/mysql/bin/mysqladmin-urootpasswordmysql45. rootRHELmysql#/usr/local/mysql/bin/mysql-uroot-p46. Enterpassword:47. WelcometotheMySQLmonitor.Commandsendwith;or/g.48. YourMySQLconnectionidis249. Serverversion:5.1.50Sourcedistribution50. Copyright(c)2000,2010,Oracleand/oritsaffiliates.Allrightsreserved.51. ThissoftwarecomeswithABSOLUTELYNOWARRANTY.Thisisfreesoftware,52. andyouarewelcometomodifyandredistributeitundertheGPLv2license53. Typehelp;or/hforhelp.Type/ctoclearthecurrentinputstatement.54. mysql55. 2.3.使用官方提供的启动脚本并添加开机启动56. rootRHELmysql#cpshare/mysql/mysql.server/etc/init.d/mysqld57. rootRHELmysql#/etc/init.d/mysqldstop58. ShuttingdownMySQL10090920:06:48mysqld_safemysqldfrompidfile/usr/local/mysql/var/RHEL.pidended59. 确定60. 1+Donebin/mysqld_safe-user=mysql61. rootRHELmysql#/etc/init.d/mysqldstart62. StartingMySQL.确定63. rootRHELmysql#/sbin/chkconfig-addmysqld64. rootRHELmysql#/sbin/chkconfigmysqldon3.安装apache2.2c-sharp view plaincopy1. 3.1.编译安装2. rootRHELmysql#cd/usr/local/src/3. rootRHELsrc#tar-xzvfhttpd-2.2.16.tar.gz4. rootRHELsrc#cdhttpd-2.2.165. rootRHELhttpd-2.2.16#moreINSTALL6. QuickStart-Unix7. -8. Forcompleteinstallationdocumentation,seehtdocs/manual/install.htmlor9. http:/httpd.apache.org/docs/2.2/install.html10. $./configure-prefix=PREFIX11. $make12. $makeinstall13. $PREFIX/bin/apachectlstart14. NOTES:*ReplacePREFIXwiththefilesystempathunderwhich15. Apacheshouldbeinstalled.Atypicalinstallation16. mightuse/usr/local/a
收藏 下载该资源
网站客服QQ:2055934822
金锄头文库版权所有
经营许可证:蜀ICP备13022795号 | 川公网安备 51140202000112号