LAMP环境搭建(自创)

LAMP环境搭建(自创)

ID:37846872

大小:17.84 KB

页数:5页

时间:2019-06-01

LAMP环境搭建(自创)_第1页
LAMP环境搭建(自创)_第2页
LAMP环境搭建(自创)_第3页
LAMP环境搭建(自创)_第4页
LAMP环境搭建(自创)_第5页
资源描述:

《LAMP环境搭建(自创)》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库

1、常用命令rpm-Uvh*.rpm--nodeps--force不管关联关系,直接强行安装rpmtarczvfusr.tar.gz/home把home目录下的文件压缩成usr.tar.gzr==4w==2x==1--------------------------------------------------------------LAMP一、安装gd21、准备好安装包bzip2-develzlib-devellibjpeg-devellibpng-devellibtiff-develfreetype-developenssl

2、-devellibxml2-devellibgcjgettext-devel2、安装gd2tarzxvfgd-2.0.35.tar.gz./configure--prefix=/soft/gd2makemakeinstall二、安装apache2.0.55./configure--prefix=/soft/apache--enable-ssl--enable-so--enable-rewrite--enable-proxy--enable-modules=so--enable-mods-shared=all--disable-

3、cgid--disable-cgimakemakeinstall将apache设置为系统服务cp/soft/apache/bin/apachectl/etc/rc.d/init.d/httpd(提示覆盖?Y)vi/etc/rc.d/init.d/httpd#!/bin/sh#chkconfig:23451090#description:ApacheisaWorldWideWebserverchkconfig--addhttpd(如果出现错误,看上面有没有拼写错误)chkconfighttpdonservicehttpdstar

4、tapache启动servicehttpdstopapache停止servicehttpdrestartapache重新启动输入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

5、--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-

6、infile--with-readline--with-raidgroupaddpostcn(userdel-rmysql)创建postcn新组useradd-gpostcnpostcn创建postcn用户,并且设置在postcn组里makemakeinstallcpsupport-files/my-medium.cnf/etc/my.cnf把my.cnf(相当于windows下的my.ini)拷贝到etc下面cdmysql/bin./mysql_install_db--user=postcn创建mysql用户postcnch

7、own-Rroot/soft/mysql#设定root能访问/soft/mysqlchown-Rpostcn/soft/mysql/var/mysql#设定postcn用户能够访问/var/mysqlchgrp-Rpostcn/soft/mysql#设定postcn组能访问/soft/mysqlcpmysql.server/etc/rc.d/init.d/mysqld#support-files下的执行下面的命令复制启动脚本到资源目录chmod+x/etc/rc.d/init.d/mysqld执行下面的命令增加mysqld服务

8、控制脚本执行权限chkconfig--addmysqld执行下面的命令将mysqld服务加入到系统服务chkconfig--listmysqld执行下面的命令检查mysqld服务是否已经生效servicemysqldstart注:ERROR2002:Can'tconnectt

当前文档最多预览五页,下载文档查看全文

此文档下载收益归作者所有

当前文档最多预览五页,下载文档查看全文
温馨提示:
1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。
2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。
3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。
4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。