array(2) { ["docs"]=> array(10) { [0]=> array(10) { ["id"]=> string(3) "428" ["text"]=> string(77) "Visual Studio 2017 单独启动MSDN帮助(Microsoft Help Viewer)的方法" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(8) "DonetRen" ["tagsname"]=> string(55) "Visual Studio 2017|MSDN帮助|C#程序|.NET|Help Viewer" ["tagsid"]=> string(23) "[401,402,403,"300",404]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511400964" ["_id"]=> string(3) "428" } [1]=> array(10) { ["id"]=> string(3) "427" ["text"]=> string(42) "npm -v;报错 cannot find module "wrapp"" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(4) "zzty" ["tagsname"]=> string(50) "node.js|npm|cannot find module "wrapp“|node" ["tagsid"]=> string(19) "[398,"239",399,400]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511400760" ["_id"]=> string(3) "427" } [2]=> array(10) { ["id"]=> string(3) "426" ["text"]=> string(54) "说说css中pt、px、em、rem都扮演了什么角色" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(12) "zhengqiaoyin" ["tagsname"]=> string(0) "" ["tagsid"]=> string(2) "[]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511400640" ["_id"]=> string(3) "426" } [3]=> array(10) { ["id"]=> string(3) "425" ["text"]=> string(83) "深入学习JS执行--创建执行上下文(变量对象,作用域链,this)" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(7) "Ry-yuan" ["tagsname"]=> string(33) "Javascript|Javascript执行过程" ["tagsid"]=> string(13) "["169","191"]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511399901" ["_id"]=> string(3) "425" } [4]=> array(10) { ["id"]=> string(3) "424" ["text"]=> string(30) "C# 排序技术研究与对比" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(9) "vveiliang" ["tagsname"]=> string(0) "" ["tagsid"]=> string(2) "[]" ["catesname"]=> string(8) ".Net Dev" ["catesid"]=> string(5) "[199]" ["createtime"]=> string(10) "1511399150" ["_id"]=> string(3) "424" } [5]=> array(10) { ["id"]=> string(3) "423" ["text"]=> string(72) "【算法】小白的算法笔记:快速排序算法的编码和优化" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(9) "penghuwan" ["tagsname"]=> string(6) "算法" ["tagsid"]=> string(7) "["344"]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511398109" ["_id"]=> string(3) "423" } [6]=> array(10) { ["id"]=> string(3) "422" ["text"]=> string(64) "JavaScript数据可视化编程学习(二)Flotr2,雷达图" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(7) "chengxs" ["tagsname"]=> string(28) "数据可视化|前端学习" ["tagsid"]=> string(9) "[396,397]" ["catesname"]=> string(18) "前端基本知识" ["catesid"]=> string(5) "[198]" ["createtime"]=> string(10) "1511397800" ["_id"]=> string(3) "422" } [7]=> array(10) { ["id"]=> string(3) "421" ["text"]=> string(36) "C#表达式目录树(Expression)" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(4) "wwym" ["tagsname"]=> string(0) "" ["tagsid"]=> string(2) "[]" ["catesname"]=> string(4) ".NET" ["catesid"]=> string(7) "["119"]" ["createtime"]=> string(10) "1511397474" ["_id"]=> string(3) "421" } [8]=> array(10) { ["id"]=> string(3) "420" ["text"]=> string(47) "数据结构 队列_队列实例:事件处理" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(7) "idreamo" ["tagsname"]=> string(40) "C语言|数据结构|队列|事件处理" ["tagsid"]=> string(23) "["246","247","248",395]" ["catesname"]=> string(12) "数据结构" ["catesid"]=> string(7) "["133"]" ["createtime"]=> string(10) "1511397279" ["_id"]=> string(3) "420" } [9]=> array(10) { ["id"]=> string(3) "419" ["text"]=> string(47) "久等了,博客园官方Android客户端发布" ["intro"]=> string(288) "目录 ECharts 异步加载 ECharts 数据可视化在过去几年中取得了巨大进展。开发人员对可视化产品的期望不再是简单的图表创建工具,而是在交互、性能、数据处理等方面有更高的要求。 chart.setOption({ color: [ " ["username"]=> string(3) "cmt" ["tagsname"]=> string(0) "" ["tagsid"]=> string(2) "[]" ["catesname"]=> string(0) "" ["catesid"]=> string(2) "[]" ["createtime"]=> string(10) "1511396549" ["_id"]=> string(3) "419" } } ["count"]=> int(200) } 222 LAMP平台部署及应用 - 爱码网

1、LAMP平台作用和组成
1)LAMP的作用
针对前端网站使用php语言后端数据存储使用mysql
一般动态网站或者软件项目都可以部署在LAMP平台上进行发布
2)LAMP的组成
L:Linux系统
A:apache用于发布网站使用
M:mysql数据库存储网站的数据
P:开发LAMP项目使用的语言支持php、perl、python、html
3)LAMP平台的优势
成本低:所有工具全部开源
可定制:源代码安装可以根据需要定制环境
易于开发:php或者html网页标记语言简单
方便易用:使用简单
安全性强:更新速度快
2、安装apache
1)配置apache
[[email protected] hppt-2.2.17]# ./configure --prefix=/usr/local/httpd --enable-so–enable-chrset-lite --enable-rewrite --enable-cgi
2)编译安装apache
[[email protected] hppt-2.2.17]#make && make install
3)生成服务控制
[[email protected] httpd-2.2.17]# cp /usr/local/httpd/bin/apachectl /etc/init.d/httpd
[[email protected] httpd-2.2.17]# chmod +x /etc/init.d/httpd
[[email protected] httpd-2.2.17]# vim /etc/init.d/httpd
4)添加系统服务设置开机自动启动
[[email protected] ~]# chkconfig --add httpd
[[email protected] ~]# chkconfig --level 35 httpd on
5)优化apache命令
[[email protected] hppt-2.2.17]#ln -s /usr/local/httpd/binapachectl /usr/local/bin/
6)启动apache服务
[[email protected] ~]# systemctl start httpd
3、安装mysql
1)安装依赖程序
[[email protected] ~]# yum -y install cmake ncurses-devel
2)创建管理组和用户
[[email protected] ~]# groupadd mysql
[[email protected] ~]# useradd -M -s /sbin/nologin -g mysql mysql
3)配置mysql
[[email protected] ~]# tar zxvf /iso/mysql-5.5.22.tar.gz -C /usr/src/
[[email protected] mysql-5.5.22]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all -DSYSCONFDIR=/etc
4)编译安装mysql
[[email protected] ~]# make && make install
5)生成主配置文件
[[email protected] mysql-5.5.22]# cp support-files/my-medium.cnf /etc/my.cnf
cp:是否覆盖"/etc/my.cnf"? y
6)添加服务控制文件
[[email protected] mysql-5.5.22]# cp support-files/mysql.server /etc/init.d/mysqld
[[email protected] mysql-5.5.22]# chmod +x /etc/init.d/mysqld
7)优化mysql命令
[[email protected] ~]# vim /etc/profile
/etc/profile
PATH=$PATH:/usr/local/mysql/bin/
[[email protected] ~]# source /etc/profile
[[email protected] ~]# chown -R mysql:mysql /usr/local/mysql/
8)添加系统服务设置开启自动启动
[[email protected] ~]# chkconfig --add mysqld
[[email protected] ~]# chkconfig --level 35 mysqld on
9)初始化mysql
[[email protected] ~]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data
10)启动mysql服务设置密码
[[email protected] ~]# systemctl start mysqld
[[email protected] ~]# mysqladmin -uroot password
二、配置LAMP
1、安装php依赖工具
1)安装libmcrypt
[[email protected] libmcrypt-2.5.8]# ./configure && make && make install
[[email protected] libmcrypt-2.5.8]# ln -s /usr/local/lib/libmcrypt* /usr/lib/
LAMP平台部署及应用
2)安装mhash
[[email protected] mhash-0.9.9.9]# ./configure && make && make install
[[email protected] mhash-0.9.9.9]# ln -s /usr/local/lib/libmhash* /usr/lib
LAMP平台部署及应用
3)安装mcrypt
[[email protected] mcrypt-2.6.8]# export LD_LIBRARY_PATH=/usr/local/lib
[[email protected] mcrypt-2.6.8]# ./configure
[[email protected] mcrypt-2.6.8]# make && make install
LAMP平台部署及应用
2、安装配置php
1)安装依赖程序
[[email protected] ~]# yum -y install libxml2-devel
LAMP平台部署及应用

2)配置php
[[email protected] php-5.3.28]# ./configure --prefix=/usr/local/php --with-mcrypt --with-apxs2=/usr/local/httpd/bin/apxs --with-mysql=/usr/local/mysql/ --with-mysqli=/usr/local/mysql/bin/mysql_config --with-config-file-path=/usr/local/php --enable-mbstring
LAMP平台部署及应用
3)编译安装php
[[email protected] php-5.3.28]# make && make install
LAMP平台部署及应用
LAMP平台部署及应用
4)生成php主配置文件
[[email protected] php-5.3.28]# cp php.ini-production /usr/local/php/php.ini
LAMP平台部署及应用
5)修改php主配置文件
[[email protected] ~]# vim /usr/local/php/php.ini
785 default_charset = “utf-8”
LAMP平台部署及应用
LAMP平台部署及应用
6)修改zend位置
[[email protected] ~]# cd /usr/src/ZendGuardLoader-php-5.3-linux-glibc23-i386/
[[email protected] ZendGuardLoader-php-5.3-linux-glibc23-i386]# cd php-5.3.x/
[[email protected] php-5.3.x]# cp ZendGuardLoader.so /usr/local/php/lib/php/
LAMP平台部署及应用
LAMP平台部署及应用
7)修改hph主配置文件加载zend
[[email protected] ~]# vim /usr/local/php/php.ini
[PHP]
zend_extension=/usr/local/php/lib/php/ZendGuardLoader.so
zend_loader.enable=1
LAMP平台部署及应用
LAMP平台部署及应用
3、修改apche支持php
1)修改apache主配置文件
[[email protected] ~]# cp /usr/local/httpd/conf/httpd.conf /usr/local/httpd/conf/httpd.conf.bak
cp:是否覆盖"/usr/local/httpd/conf/httpd.conf.bak"? y
[[email protected] ~]# vim /usr/local/httpd/conf/httpd.conf
167 DirectoryIndex index.html index.php
310 AddType application/x-httpd-php .php
LAMP平台部署及应用
LAMP平台部署及应用
LAMP平台部署及应用
2)重新启动apache
[[email protected] ~]# systemctl restart httpd
LAMP平台部署及应用
3)编辑php测试文件
[[email protected] ~]# vim /usr/local/httpd/htdocs/index.php

<?php phpinfo(); ?>

LAMP平台部署及应用
LAMP平台部署及应用
验证
LAMP平台部署及应用
挂在LAMP光盘
LAMP平台部署及应用
4、部署phpMyadmin项目
1)移动项目到网站的根目录
[[email protected] src]# mv phpMyAdmin-3.3.10-all-languages/ /usr/local/httpd/htdocs/phpMyadmin
LAMP平台部署及应用
2)生成phpMyadmin配置文件
[[email protected] ~]# cd /usr/local/httpd/htdocs/phpMyadmin/
[[email protected] phpMyadmin]# cp config.sample.inc.php config.inc.php
LAMP平台部署及应用
访问phpMyadmin项目
LAMP平台部署及应用
3)访问phpMyadmin项目
http://192.168.100.10/phpMyadmin

LAMP平台部署及应用
修改名字
LAMP平台部署及应用
LAMP平台部署及应用
域名解析
LAMP平台部署及应用
LAMP平台部署及应用
LAMP平台部署及应用
LAMP平台部署及应用

相关文章: