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.下载好AMP
M:http://sq.onlinedown.net/down/mysql-5.6.4-m7.tar.zip
A:http://apache.dataguru.cn/httpd/httpd-2.2.24.tar.gz
P:http://cn2.php.net/distributions/php-5.3.24.tar.gz

2.安装顺序:MAP

3.查看是否有安装,查询发现都有安装
[root@fx /]# rpm -qa |grep mysql
mysql-libs-5.1.61-4.el6.x86_64
mysql-server-5.1.61-4.el6.x86_64
mysql-5.1.61-4.el6.x86_64
mysql-connector-odbc-5.1.5r1144-7.el6.x86_64
[root@fx /]# rpm -qa |grep httpd
httpd-2.2.15-15.el6.centos.1.x86_64
httpd-manual-2.2.15-15.el6.centos.1.noarch
httpd-tools-2.2.15-15.el6.centos.1.x86_64
[root@fx /]# rpm -qa |grep php
php-pear-1.9.4-4.el6.noarch
php-xml-5.3.3-3.el6_2.8.x86_64
php-cli-5.3.3-3.el6_2.8.x86_64
php-5.3.3-3.el6_2.8.x86_64
php-gd-5.3.3-3.el6_2.8.x86_64
php-pdo-5.3.3-3.el6_2.8.x86_64
php-common-5.3.3-3.el6_2.8.x86_64

4.开始卸载
[root@fx /]# rpm -e mysql
error: Failed dependencies:
mysql = 5.1.61-4.el6 is needed by (installed) mysql-server-5.1.61-4.el6.x86_64
[root@fx /]# rpm -e mysql --nodeps
[root@fx /]# rpm -e httpd
error: Failed dependencies:
httpd-mmn = 20051115 is needed by (installed) php-5.3.3-3.el6_2.8.x86_64
httpd-mmn = 20051115 is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64
httpd-mmn = 20051115 is needed by (installed) mod_perl-2.0.4-10.el6.x86_64
httpd-mmn = 20051115 is needed by (installed) mod_wsgi-3.2-1.el6.x86_64
httpd >= 2.2.0 is needed by (installed) gnome-user-share-2.28.2-3.el6.x86_64
httpd is needed by (installed) webalizer-2.21_02-3.3.el6.x86_64
httpd is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64
httpd = 0:2.2.15-15.el6.centos.1 is needed by (installed) mod_ssl-1:2.2.15-15.el6.centos.1.x86_64
httpd = 2.2.15-15.el6.centos.1 is needed by (installed) httpd-manual-2.2.15-15.el6.centos.1.noarch
[root@fx /]# rpm -e httpd -nodeps
-nodeps: 未知的选项
[root@fx /]# rpm -e httpd --nodeps
[root@fx /]# rpm -e php
[root@fx /]# 

5.卸载完成,开始安装Mysql

你可能感兴趣的:(Linux)