LAMP编译安装部分
# yum install -y apr-devel apr-util-devel pcre-devel # wget http://mirror.bit.edu.cn/apache/httpd/httpd-2.4.29.tar.gz # tar zxvf httpd-2.4..tar.gz -C /usr/src/ # cd /usr/src/httpd-2.4. # ./configure --prefix=/usr/local/http --enable-so --enable-rewrite # make # make install ln -s /usr/local/http/bin/httpd /usr/local/sbin cp /usr/local/http/bin/apachectl /etc/init.d/httpd chmod +x /etc/init.d/httpd
【Mysql】
# yum install -y cmake bison-devel ncurses-devel perl-devel [root@zabbix-server ~]# yum install -y cmake ncurses-devel [root@zabbix-server ~]# wget http://downloads.mysql.com/archives/mysql-5.6/mysql-5.6.20.tar.gz [root@zabbix-server ~]# tar zxvf mysql-5.6..tar.gz -C /usr/src/ [root@zabbix-server ~]# cd /usr/src/mysql-5.6./
[root@zabbix-server mysql-5.6.]# cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DSYSCONFDIR=/etc/ -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS=all [root@zabbix-server mysql-5.6.]# make [root@zabbix-server mysql-5.6.]# make install [root@zabbix-server mysql-5.6.]# cp support-files/my-default.cnf /etc/my.cnf [root@zabbix-server mysql-5.6.]# chown -R mysql:mysql /usr/local/mysql/ [root@zabbix-server mysql-5.6.]# /usr/local/mysql/scripts/mysql_install_db --user=mysql --basedir=/usr/local/mysql/ --datadir=/usr/local/mysql/data/ [root@zabbix-server mysql-5.6.]# echo "PATH=$PATH:/usr/local/mysql/bin" >> /etc/profile
[root@zabbix-server mysql-5.6.]# source /etc/profile
[root@zabbix-server mysql-5.6.]# cp support-files/mysql.server /etc/init.d/mysqld
[root@zabbix-server mysql-5.6.]# chmod +x /etc/init.d/mysqld
[root@zabbix-server mysql-5.6.]# chkconfig --add mysqld [root@zabbix-server mysql-5.6.]# systemctl start mysqld [root@zabbix-server mysql-5.6.]# ps -ef | grep mysqld
root : ? :: /bin/sh /usr/local/mysql/bin/mysqld_safe --datadir=/usr/local/mysql/data --pid-file=/usr/local/mysql/data/zabbix-server.pid
mysql : ? :: /usr/local/mysql/bin/mysqld --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data --plugin-dir=/usr/local/mysql/lib/plugin --user=mysql --log-error=/usr/local/mysql/data/zabbix-server.err --pid-file=/usr/local/mysql/data/zabbix-server.pid
root : pts/ :: grep --color=auto mysqld
【PHP】
[root@zabbix-server ~]# yum install -y zlib-devel libxml2-devel libmcrype [root@zabbix-server ~]# tar jxf php-5.4..tar.bz2 -C /usr/src/
[root@zabbix-server ~]# cd /usr/src/php-5.4./ [root@zabbix-server php-5.4.]# ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/http/bin/apxs --with-mysql=/usr/local/mysql/ --with-config-file-path=/usr/local/php --enable-mbstring [root@zabbix-server php-5.4.]# make [root@zabbix-server php-5.4.]# make install [root@zabbix-server php-5.4.]# cp php.ini-development /usr/local/php/php/php.ini
【拓展】
# mysqld_safe --skip-grant-tables &
mysql> update user set password=PASSWORD("123.com")where user="root";
Query OK, 3 rows affected (0.00 sec)
LAMP编译安装部分的更多相关文章
- LAMP编译安装遇到的问题
apache安装 1, no SSL-C headers found configure: error: ...No recognized SSL/TLS toolkit detected 解决办法: ...
- Centos6.8下编译安装LAMP的操作记录梳理
之前用的最多的web框架是LNMP,偶尔也会用到LAMP.接下来简单说下LAMP环境的部署记录,这里选择源码安装的方式: LAMP相关安装包下载地址:https://pan.baidu.com/s/1 ...
- ubuntu10.04编译安装LAMP
ubuntu10.04编译安装LAMP以及简单wordpress的使用 : http://linuxme.blog.51cto.com/1850814/971631 一.源码安装LAMP 网上有一堆关 ...
- CentOS 6编译安装lamp,并分别安装event模块方式和FPM方式的PHP
任务目标: 编译安装LAMP 要求(1) 安装一个模块化的PHP 要求(2) 安装一个FPM的PHP 注意PHP需要最后一个安装,因为需要前两者的支持. 所以这里的安装次序为 1.httpd 2.Ma ...
- CentOS6.3 编译安装LAMP(1):准备工作
卸载yum或rpm安装的amp软件 #在编译安装lamp之前,首先先卸载已存在的rpm包. rpm -e httpd rpm -e mysql rpm -e php yum -y remove htt ...
- CentOS6.3 编译安装LAMP(2):编译安装 Apache2.2.25
所需源码包: /usr/local/src/Apache-2.2.25/httpd-2.2.25.tar.gz 编译安装 Apache2.2.25 #切换到源码目录 cd /usr/local/src ...
- CentOS6.3 编译安装LAMP(2):编译安装 Apache2.4.6
Apache官方说: 与Apache 2.2.x相比,Apache 2.4.x提供了很多性能方面的提升,包括支持更大流量.更好地支持云计算.利用更少的内存处理更多的并发等.除此之外,还包括性能提升.内 ...
- CentOS6.3 编译安装LAMP(3):编译安装 MySQL5.5.25
所需源码包: /usr/local/src/MySQL-5.5.25/cmake-2.8.8.tar.gz /usr/local/src/MySQL-5.5.25/mysql-5.5.25.tar.g ...
- CentOS6.3 编译安装LAMP(4):编译安装 PHP5.2.17
所需源码包: /usr/local/src/PHP-5.2.17/libmcrypt-2.5.8.tar.gz /usr/local/src/PHP-5.2.17/mhash-0.9.9.9.tar. ...
随机推荐
- iperf 2.05版本升级到2.0.9
将openwrt trunk 分支上iperf 2.0.9移植到 bb版本上时,编译遇到如下问题: make[6]: Entering directory '/home/hbg/bb/build_d ...
- ansible配合shell脚本批量编译安装python3.6.6
[root@node1:/etc]# tree /etc/ansible/ /etc/ansible/ ├── ansible.cfg ├── hosts ├── python.yml └── rol ...
- 通过zabbix自带api进行主机的批量添加操作
通过zabbix自带api进行批量添加主机 我们需要监控一台服务器的时候,当客户端装好zabbix-agent端并正确配置以后,需要在zabbix-server的web gui界面进行添加zabbix ...
- springcloud-3:required a bean of type 'com.netflix.discovery.DiscoveryClient' that could not be found.
在写客户端程序的时候,总是报'com.netflix.discovery.DiscoveryClient' that could not be found. 原因在于导入了错误的类:com.netfl ...
- ASP.NET Core之NLog使用
1.新建ASP.NET Core项目 1.1选择项目 1.2选择.Net版本 2. 添加NLog插件 2.1 通过Nuget安装 2.2下载相关的插件 3.修改NLog配置文件 3.1添加NLog配置 ...
- POJ 3723
最大生成树 #include<iostream> #include<cstdio> #include<cstring> #include<set> #i ...
- Windows中查看端口占用及关闭对应进程
开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID,之后在任务管理器(右键电脑屏幕的状态栏即可找到)中找到这个PID所对应的程序.如果任务管理器中没有PID ...
- linux杀死僵尸进程
用下面的命令找出僵死进程 ps -A -o stat,ppid,pid,cmd | grep -e '^[Zz]' 命令注解: -A 参数列出所有进程 -o 自定义输出字段 我们设定显示字段为 sta ...
- js实现两种排序算法——冒泡、快速排序
* 一:冒牌排序1思想:冒泡排序思想:每一次对比相邻两个数据的大小,小的排在前面,如果前面的数据比后面的大就交换这两个数的位置要实现上述规则需要用到两层for循环,外层从第一个数到倒数第二个数,内层从 ...
- 自定义Dialog的详细步骤(实现自定义样式一般原理)
现在很多App的提示对话框都非常有个性,然而你还用系统的对话框样式,是不是觉得很落后呢,今天我就给大家讲讲怎样自定义自己的Dialog,学会了之后,你就会根据自家app的主题,设计出相应的Dialog ...