欢迎来到天天文库
浏览记录
ID:41851661
大小:226.64 KB
页数:9页
时间:2019-09-03
《CentOS65编译安装LAMP_计算机软件及应用_IT计算机_专业资料》由会员上传分享,免费在线阅读,更多相关内容在工程资料-天天文库。
1、CentOS6.5下搭建LAMP环境详细步骤(编译)注:所以yum—键安装的命令是需要网络的,所以要检查虚拟机和本机之间网络连接是否是NAT模式(N):用于共享主机的IP地址,只有这样虚拟主机里面的系统才能够连接外部网络1、确认搭建LAMP所需的环境是否已经安装:[root@localhost~]#rpm-qmakegccgcc・c++zlib-devellibtoollibtool-ltdllibtool-ltdl-develbisonncurses・devel[root@localhostrpm-qmakegccg
2、cc-c++zlib-devellibtoollibtool・ltdllibtool-ltddevelbisonncurses・develmake-3.81-20.el6.x8664packagegccisnotpackagegcc-c++ispackagezlib-develpackagelibtoolisinstallednotinstalledisnotinstallednotinstalledlibtool-ltdl-2.2.6-15.5.el6.x86_64packagelibtool・ltdl-develi
3、snotinstailedpackagebisonisnotinstalledpackagencurses-develisnotinstalled备注:安装libpng时需要zlib-devel安装php时需要libtooLlibtool-ltdLlibtool-ltdl-devel安装mysql时需要bison、ncurses-devel2、如果没安装则yum安装:[root@localhost~]#yum-yinstallmakegccgcc-c++zlib-devellibtoollibtool-ltdllibt
4、ool-ltdl-develbisonncurses-devel安装完之后在用步骤]查看环境是否安装root@localhost:~-□x文件(F)编辑(E)査看(V)捜索(S)终端(T)帮助(H)EUpdated:
5、
6、make.X86.641:3.81-23.el6DependencyUpdated:libgcc.x86_640:4.4.7-17.el6libgomp.X86.640:4.4.7-17.el6libstdc++.x86_640:4.4.7-17.eI6ncurses-base.x86_640:5.7-
7、4.20090207.el6ncurses-libs.X86.640:5.7-4.20090207.el6Complete![rootglocalhostrpm-qmakegccgcc-c++zlib-devellibtoollibtool-ltdllibtool-ltdl-develbisonncurses・develmake-3.81-23.el6.x86_64gcc-4.4.7-17.el6.X86.64gcc-c++-4.4.7-17.el6.x86_64zlib-devel-1.2.3-29.el6.x86_
8、64libtool-2.2.6-15.5.el6.x86_64libtooI-ItdI-2.2.6-15.5.e!6.x86_64libtool-ltdl-devel-2.2.6-15.5.el6.x86_64bison-2.4.1-5.el6.x86_64厂ncurses-devel-5.7-4.20090207.el6.x86_64-[「oo也localhost"3.由于要使用编译安装,所以查看httpd.mysqLphp是否安装[root@localhost〜]#rpm-qhttpdmysqlphphttpd-2
9、.2.15-29.el6.centos.x86_64packagemysqlisnotinstalledpackagephpisnotinstalled如果安装则卸载:[root@localhost~]#rpm-ehttpd-nodeps[root@localhost〜]#rpm-emysql一nodeps[root@localhost~]#rpm-ephpdeps之后再用上面命令查看是否安装[root@localhost〜]#rpm-qhttpdmysqlphppackagehttpdisnotinstalledpa
10、ckagemysqlisnotinstalledpackagephpisnotinstalled[root@localhost〜]#[root@localhostrpm-qhttpdmysqlphphttpd-2.2.15-29.el6.centos.x86_64packagemysqlisnotinstalledpackagep
此文档下载收益归作者所有