Linux学习笔记:LAMP 1 环境配置
先连网,修改网络连接模式为NAT:cat etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE="eth0"BOOTPROTO="dhcp"HWADDR="08:00:27:60:D9:48"NM_CONTROLLED="yes"ONBOOT="yes"TYPE="Ethernet"UUID="522cfc61-3d3a-4e14-b8ea-82c39ebec2ca"
1.下载好AMPM:http://sq.onlinedown.net/down/mysql-5.6.4-m7.tar.zipA:http://apache.dataguru.cn/httpd/httpd-2.2.24.tar.gzP:http://cn2.php.net/distributions/php-5.3.24.tar.gz
2.安装顺序:MAP
3.查看是否有安装,查询发现都有安装# rpm -qa |grep mysqlmysql-libs-5.1.61-4.el6.x86_64mysql-server-5.1.61-4.el6.x86_64mysql-5.1.61-4.el6.x86_64mysql-connector-odbc-5.1.5r1144-7.el6.x86_64# rpm -qa |grep httpdhttpd-2.2.15-15.el6.centos.1.x86_64httpd-manual-2.2.15-15.el6.centos.1.noarchhttpd-tools-2.2.15-15.el6.centos.1.x86_64# rpm -qa |grep phpphp-pear-1.9.4-4.el6.noarchphp-xml-5.3.3-3.el6_2.8.x86_64php-cli-5.3.3-3.el6_2.8.x86_64php-5.3.3-3.el6_2.8.x86_64php-gd-5.3.3-3.el6_2.8.x86_64php-pdo-5.3.3-3.el6_2.8.x86_64php-common-5.3.3-3.el6_2.8.x86_64
4.开始卸载# rpm -e mysqlerror: Failed dependencies:mysql = 5.1.61-4.el6 is needed by (installed) mysql-server-5.1.61-4.el6.x86_64# rpm -e mysql --nodeps# rpm -e httpderror: Failed dependencies:httpd-mmn = 20051115 is needed by (installed) php-5.3.3-3.el6_2.8.x86_64httpd-mmn = 20051115 is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64httpd-mmn = 20051115 is needed by (installed) mod_perl-2.0.4-10.el6.x86_64httpd-mmn = 20051115 is needed by (installed) mod_wsgi-3.2-1.el6.x86_64httpd >= 2.2.0 is needed by (installed) gnome-user-share-2.28.2-3.el6.x86_64httpd is needed by (installed) webalizer-2.21_02-3.3.el6.x86_64httpd is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64httpd = 0:2.2.15-15.el6.centos.1 is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64httpd = 2.2.15-15.el6.centos.1 is needed by (installed) httpd-manual-2.2.15-15.el6.centos.1.noarch# rpm -e httpd -nodeps-nodeps: 未知的选项# rpm -e httpd --nodeps# rpm -e php#
5.卸载完成,开始安装Mysql 版权声明:本文为博主原创文章,未经博主允许不得转载。
页:
[1]