LNMP源码安装禅道

编译安装mysql
下载:wget ‘https://cdn.mysql.com//Downloads/MySQL-5.6/mysql-5.6.39.tar.gz
安装依赖
yum install -y wget lrzsz unzip gcc gcc-c++ make tar openssl openssl-devel cmake ncurses ncurses-devel
编译:
cmake -DCMAKE_INSTALL_PREFIX=/usr/local/mysql -DMYSQL_DATADIR=/data/mysql -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_EXTRA_CHARSETS:STRING=all -DWITH_DEBUG=0 -DWITH_SSL=yes -DWITH_READLINE=1 -DENABLED_LOCAL_INFILE=1 &&make &&make install
初始化msyql
yum -y install perl-Module-Install
scripts/mysql_install_db --basedir=/usr/local/mysql --user=mysql --datadir=/data/mysql/
登陆:
msyql -uroot -h127.0.0.1
编译安装php:
下载: wget ‘http://php.net/get/php-5.6.38.tar.gz/from/a/mirror
安装依赖我这里安装的比较多:
yum -y install tar gcc gcc-c++ make pcre pcre-devel zlib zlib-devel openssl openssl-devel libxml2 libxml2-devel libcurl libcurl-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel openldap openldap-devel libmcrypt libmcrypt-devel
编译:
./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/etc --enable-ctype --with-pdo-mysql=/usr/local/mysql --with-mysql=mysqlnd --with-mysqli=mysqlnd --enable-pdo --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap-sasl --with-xmlrpc &&make &&make instll
如果编译报错:
home/oldboy/tools/php-5.3.27/sapi/cli/php: error while loading shared libraries: libmysqlclient.so.18: cannot open shared object file: No such file or directory
解决:
find / -name "libmysqlclient.so.18"
echo "/application/mysql-5.5.32/lib" >>/etc/ld.so.conf
ldconfig
安装nginx
下载:wget ‘http://nginx.org/download/nginx-1.12.2.tar.gz
安装依赖
yum install -y gcc gcc-c++ make pcre pcre-devel zlib zlib-devel openssl openssl-devel
编译:
./configure --prefix=$DIR/nginx --with-http_ssl_module --with-stream --with-stream_ssl_module --with-http_stub_status_module && make && make install
nginx/.conf配置:
location / {
root html;
index index.html index.htm index.php;
}
location ~ .php$ {
root html;
fastcgi_pass 127.0.0.1:9000;
fastcgi_index index.php;
#fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;

include fastcgi_params;

         include    fastcgi.conf;
    }

禅道安装:
下载:wget http://dl.cnezsoft.com/zentao/10.6/ZenTaoPMS.10.6.stable.zip
unzip解压到nginx的html目录
访问ip/zentaopms/www/
在线安装

原文地址:http://blog.51cto.com/14036860/2329109

时间: 2024-07-29 14:19:16

LNMP源码安装禅道的相关文章

lnmp源码安装-脚本执行

lnmp 源码安装- 脚本执行 源码包版本: nginx1.9 mysql5.6.4 php5.6 使用: 将lnmp.tar.gz 解压至 根目录下,进入/lnmp/install/目录下,执行install.sh脚本即可.选择性安装! 安装过程中会有些警告信息显示,不影响. 整合包地址:http://pan.baidu.com/s/1dFp7gqP =======================代码============================= #!/bin/bash #####

LNMP 源码安装 超详细笔记记录 PHP7 MariaDB 10.1.12

LNMP 源码安装 超详细笔记记录 php 7.04 版本 mariaDB  10.1.12 版本 首先安装nginx 一般编译nginx时,都要先安装pcre.zlib等外部支持程序,然后编译安装nginx时指定这些外部支持程序的位置,这样nginx在每次启动的时候,就会去动态加载这些东西了. 下面介绍的是另一种方式,即将这些程序编译到nginx里面去,这样nginx启动时就不会采用动态加载的方式去load.从古谱中可获知,这种方式会比动态加载有更高的效率. 首先 安装 yum install

Lnmp源码安装全过程

第一步在使用源码包安装服务程序之前,首先要让安装主机具备编译程序源码的环境,他需要具备C语言.C++语言.Perl语言的编译器,以及各种常见的编译支持函数库程序.因此请先配置妥当Yum软件仓库,然后吧下面列出的软件包都统统安装上: yum install -y apr autoconf automake bison bzip2 bzip2 compat cpp curl curl-devel fontconfig fontconfig-devel freetype freetype freety

超详细LNMP源码安装(适合中大型网站)

一.简介 Nginx是俄罗斯人编写的十分轻量级的HTTP服务器,Nginx,它的发音为 “engine X”, 是一个高性能的HTTP和反向代理服务器,同时也是一个IMAP/POP3/SMTP 代理服务器.Nginx是由俄罗斯人 Igor Sysoev为俄罗斯访问量第二的 Rambler.ru站点开发的,它已经在该站点运行超过三年了.Igor Sysoev在建立的项目时,使用基于BSD许可. 在高并发连接的情况下,Nginx是Apache服务器不错的替代品.Nginx同时也可以作为7层负载均衡服

LNMP源码安装

1. mysql安装 # Preconfiguration setup shell > groupadd mysql shell > useradd -r -g mysql -s /bin/false mysql # Beginning of source-build specific instructions shell > tar zxvf mysql-5.7.9.tar.gz shell > cd mysql-5.7.9 shell > cmake . -DCMAKE_

LANP源码安装

今日学习记录:LNMP源码安装 安装编译工具及库文件yum install -y apr autoconf automake bison bzip2 bzip2 compat cpp curl curl-devel fontconfig fontconfig-devel freetype freetype freetype-devel gcc gcc-c++ gd gettext gettext-devel glibc kernel kernel-headers keyutils keyutil

[原创]在Centos7.2上源码安装PHP、Nginx、Zentao禅道

版本 操作系统:CentOS Linux release 7.2.1511 (Core) PHP:5.6.33 Nginx:1.12.2 MySQL:5.6.38(192.168.1.103的Windows) Zentao禅道:9.7.stable 安装路径 源码路径:/usr/local/src PHP:/usr/local/php Nginx:/usr/local/nginx Zentao禅道:/opt/zentao 安装PHP 安装php依赖 yum install gcc libxml2

源码安装zabbix(lnmp+zabbix)

源码安装zabbix 实验环境: [[email protected] ~]# cat /etc/issue CentOS release 6.5 (Final) Kernel \r on an \m 环境要求: 需要准备好实验环境,配置好主机名称 , 网络源(这里我使用的是163网络源),查看并调整好自己的时区以及时间,关闭防火墙iptables   selinux. 安装nginx 需要软件有: nginx-1.8.0.tar.gz  pcre-8.34.tar.gz 安装步骤: 首选安装:

Centos 7.0 编译安装LNMP(Linxu+nginx+mysql+php)之源码安装nginx (一)

nginx简介:       Nginx (engine x) 是一个高性能的HTTP和反向代理服务器,也是一个IMAP/POP3/SMTP服务器.Nginx是由伊戈尔·赛索耶夫为俄罗斯访问量第二的Rambler.ru站点(俄文:Рамблер)开发的,第一个公开版本0.1.0发布于2004年10月4日. 其将源代码以类BSD许可证的形式发布,因它的稳定性.丰富的功能集.示例配置文件和低系统资源的消耗而闻名.2011年6月1日,nginx 1.0.4发布. Nginx是一款轻量级的Web 服务器