项目部署之 OElove 婚恋交友网站系统平台搭建(含php源码)
OElove 婚恋交友网站系统平台搭建
最近相亲的网站也是不少,小编在这里从网上购买了一套源码,进行部署,有喜欢的可以尝试以下部署,老规矩,搭建这个平台只是为了学习和研究,如果侵犯到了你的权益,请联系小编马上删除
先看效果图
系统环境
系统 | 系统版本 | 内存 | ip | 网络模式 |
---|---|---|---|---|
Linux | centos7.5 | 2G | 192.168.100.155 | NAT(也就是可以上网) |
废话不说,开始操作
lnmp环境搭建部署
- 参照小编的另一个文章
lnmp架构搭建-基于linux系统centos7.5
拉取源码,并放置网站目录
链接:https://pan.baidu.com/s/1Uod6KP1U8RpwuNqtKnDpiw
提取码:5a4a
复制这段内容后打开百度网盘手机App,操作更方便哦
[root@lnmp html]# ss -antup | grep 80 #查看nginx服务是否正常开启
tcp LISTEN 0 80 *:3306 *:* users:(("mysqld",pid=1794,fd=10))
tcp LISTEN 0 128 *:80 *:* users:(("nginx",pid=1482,fd=6),("nginx",pid=1481,fd=6))
tcp LAST-ACK 1 1 192.168.100.155:35322 147.75.83.237:80
[root@lnmp html]# ss -antup | grep 9000 ##查看php服务是不是正常开启
tcp LISTEN 0 128 127.0.0.1:9000 *:* users:(("php-fpm",pid=1486,fd=0),("php-fpm",pid=1485,fd=0),("php-fpm",pid=1484,fd=7))
[root@lnmp html]# ss -antup | grep 3306 #查看mysql服务是不是正常开启
tcp LISTEN 0 80 *:3306 *:* users:(("mysqld",pid=1794,fd=10))[root@lnmp ~]# cd /usr/local/nginx/html/ #网页根目录
[root@lnmp html]# ls #查看源码
oelove.zip[root@lnmp html]# yum -y install unzip #安装解压工具[root@lnmp html]# unzip oelove.zip #解压源码[root@lnmp html]# ls
admincp.php api data index.php install notify oelove.zip source tpl wap.php weixin.php
进行安装
在浏览器中输入服务器ip。例如我的是192.168.100.155,就可以进入到安装界面
php降版本到php5.3
[root@lnmp html]# php --version #查看当前php版本为5.6
PHP 5.6.40 (cli) (built: Feb 28 2021 12:43:44)
Copyright (c) 1997-2016 The PHP Group
Zend Engine v2.6.0, Copyright (c) 1998-2016 Zend Technologies
[root@lnmp html] systemctl stop php-fpm
[root@lnmp html]# mv /usr/local/php /usr/local/php.bak[root@lnmp html]# useradd -s /sbin/nologin -M www #为了安全起见,创建一个程序用户www
root@lnmp html]# yum -y install zlib-devel libxml2-devel libjpeg-devel libjpeg-turbo-devel libiconv-devel #安装php5.3所需要的依赖包
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.bfsu.edu.cn* epel: mirrors.bfsu.edu.cn* extras: mirrors.bfsu.edu.cn* updates: mirrors.bfsu.edu.cn
软件包 zlib-devel-1.2.7-19.el7_9.x86_64 已安装并且是最新版本
软件包 libxml2-devel-2.9.1-6.el7.5.x86_64 已安装并且是最新版本
软件包 libjpeg-turbo-devel-1.2.90-8.el7.x86_64 已安装并且是最新版本
软件包 libjpeg-turbo-devel-1.2.90-8.el7.x86_64 已安装并且是最新版本
没有可用软件包 libiconv-devel。 ###可以发现这里有哥libiconv包没法安装,不要紧的一会我们进行编译安装
无须任何处理[root@lnmp html]# yum -y install freetype-devel libpng-devel gd libcurl-devel libxslt-devel #安装依赖包
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* epel: mirrors.bfsu.edu.cn* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
软件包 freetype-devel-2.8-14.el7_9.1.x86_64 已安装并且是最新版本
软件包 2:libpng-devel-1.5.13-8.el7.x86_64 已安装并且是最新版本
软件包 libcurl-devel-7.29.0-59.el7_9.1.x86_64 已安装并且是最新版本
正在解决依赖关系
--> 正在检查事务
---> 软件包 gd.x86_64.0.2.0.35-27.el7_9 将被 安装
--> 正在处理依赖关系 libfontconfig.so.1()(64bit),它被软件包 gd-2.0.35-27.el7_9.x86_64 需要
--> 正在处理依赖关系 libXpm.so.4()(64bit),它被软件包 gd-2.0.35-27.el7_9.x86_64 需要
****************
省略
**************
已安装:gd.x86_64 0:2.0.35-27.el7_9 libxslt-devel.x86_64 0:1.1.28-6.el7 作为依赖被安装:dejavu-fonts-common.noarch 0:2.33-6.el7 dejavu-sans-fonts.noarch 0:2.33-6.el7 fontconfig.x86_64 0:2.13.0-4.3.el7 fontpackages-filesystem.noarch 0:1.44-8.el7 libX11.x86_64 0:1.6.7-3.el7_9 libX11-common.noarch 0:1.6.7-3.el7_9 libXau.x86_64 0:1.0.8-2.1.el7 libXpm.x86_64 0:3.5.12-1.el7 libgcrypt-devel.x86_64 0:1.5.3-14.el7 libgpg-error-devel.x86_64 0:1.12-3.el7 libxcb.x86_64 0:1.13-1.el7 作为依赖被升级:libxslt.x86_64 0:1.1.28-6.el7 完毕![root@lnmp ~]# wget http://ftp.gnu.org/pub/gnu/libiconv/libiconv-1.14.tar.gz ##/libiconv-1.14.tar.gz进行源码安装[root@lnmp ~]# ls
anaconda-ks.cfg libiconv-1.14.tar.gz mirror mysql-5.6.39.tar.gz nginx-1.16.1.tar.gz php-5.6.40.tar.gz wget-log
[root@lnmp ~]# tar xf libiconv-1.14.tar.gz -C /usr/src/
[root@lnmp ~]# cd /usr/src/libiconv-1.14/
[root@lnmp libiconv-1.14]# ./configure --prefix=/usr/local/libiconv && make && make install[root@lnmp ~]# yum -y install libmcrypt-devel #安装ibmcrypt-devel
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.aliyun.com* epel: mirrors.bfsu.edu.cn* extras: mirrors.aliyun.com* updates: mirrors.aliyun.com
软件包 libmcrypt-devel-2.5.8-13.el7.x86_64 已安装并且是最新版本
无须任何处理
[root@lnmp ~]# yum -y install mhash #安装mhash
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.ustc.edu.cn* epel: mirrors.bfsu.edu.cn* extras: mirrors.ustc.edu.cn* updates: mirrors.ustc.edu.cn
正在解决依赖关系
--> 正在检查事务
---> 软件包 mhash.x86_64.0.0.9.9.9-10.el7 将被 安装
--> 解决依赖关系完成依赖关系解决=================================================================================================================================================Package 架构 版本 源 大小
=================================================================================================================================================
正在安装:mhash x86_64 0.9.9.9-10.el7 epel 106 k事务概要
=================================================================================================================================================
安装 1 软件包总下载量:106 k
安装大小:210 k
Downloading packages:
mhash-0.9.9.9-10.el7.x86_64.rpm | 106 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装 : mhash-0.9.9.9-10.el7.x86_64 1/1 验证中 : mhash-0.9.9.9-10.el7.x86_64 1/1 已安装:mhash.x86_64 0:0.9.9.9-10.el7 完毕!
[root@lnmp ~]# yum -y install mcrypt #安装mcrypt
已加载插件:fastestmirror
Loading mirror speeds from cached hostfile* base: mirrors.163.com* epel: mirrors.bfsu.edu.cn* extras: mirrors.163.com* updates: mirrors.huaweicloud.com
正在解决依赖关系
--> 正在检查事务
---> 软件包 mcrypt.x86_64.0.2.6.8-11.el7 将被 安装
--> 解决依赖关系完成依赖关系解决=================================================================================================================================================Package 架构 版本 源 大小
=================================================================================================================================================
正在安装:mcrypt x86_64 2.6.8-11.el7 epel 85 k事务概要
=================================================================================================================================================
安装 1 软件包总下载量:85 k
安装大小:223 k
Downloading packages:
mcrypt-2.6.8-11.el7.x86_64.rpm | 85 kB 00:00:00
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction正在安装 : mcrypt-2.6.8-11.el7.x86_64 1/1 验证中 : mcrypt-2.6.8-11.el7.x86_64 1/1 已安装:mcrypt.x86_64 0:2.6.8-11.el7 完毕!#这里需要注意的是我们的wget下php-5.3.28的包,由于网速太慢了,这里还没有找到一个好的位置供大家下载,大家可以百度找下这个包。[root@lnmp ~]# ls
anaconda-ks.cfg mirror nginx-1.16.1.tar.gz
libiconv-1.14.tar.gz mysql-5.6.39.tar.gz php-5.3.28.tar.gz php-5.6.40.tar.gz wget-log[root@lnmp ~]# tar xvf php-5.3.28.tar.gz -C /usr/src/[root@lnmp ~]# cd /usr/src/php-5.3.28/##编译安装php
root@lnmp php-5.3.28]# ./configure --prefix=/usr/local/php5.3.28 --with-mysql=/usr/local/mysql --with-iconv-dir=/usr/local/libiconv --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir=/usr --enable-xml --disable-rpath --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-fpm --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-xmlrpc --enable-zip --enable-soap --enable-short-tags --enable-zend-multibyte --enable-static --with-xsl --with-fpm-user=www --with-fpm-group=www --enable-ftpcreating scripts/man1/php-config.1
creating sapi/cli/php.1
creating sapi/fpm/php-fpm.conf
creating sapi/fpm/init.d.php-fpm
creating sapi/fpm/php-fpm.service
creating sapi/fpm/php-fpm.8
creating sapi/fpm/status.html
creating main/php_config.h
creating main/internal_functions.c
creating main/internal_functions_cli.c
+--------------------------------------------------------------------+
| License: |
| This software is subject to the PHP License, available in this |
| distribution in the file LICENSE. By continuing this installation |
| process, you are bound by the terms of this license agreement. |
| If you do not agree with the terms of this license, you must abort |
| the installation process at this point. |
+--------------------------------------------------------------------+Thank you for using PHP.[root@lnmp php-5.3.28]# ln -s /usr/local/mysql/lib/libmysqlclient.so.18 /usr/lib64/
[root@lnmp php-5.3.28]# touch ext/phar/phar.phar
[root@lnmp php-5.3.28]# make[root@lnmp php-5.3.28]# make install[root@lnmp php-5.3.28]# cp php.ini-production /usr/local/php/lib/php.ini[root@lnmp php-5.3.28]# cd /usr/local/php/etc/
[root@lnmp etc]# cp php-fpm.conf.default php-fpm.conf
[root@lnmp etc]# /usr/local/php/sbin/php-fpm
[root@lnmp etc]# ss -antup | grep 9000
tcp LISTEN 0 128 127.0.0.1:9000 *:* users:(("php-fpm",pid=126228,fd=0),("php-fpm",pid=126227,fd=0),("php-fpm",pid=126226,fd=7))
修改部分目录文件权限
[root@lnmp etc]# cd /usr/local/nginx/html/[root@lnmp html]# mkdir tpl/_compiled/ tpl/_caches/ #这两个目录在源码中是没有的,没有怎么办,那就创造她
[root@lnmp html]# chmod 777 -R data/ source/conf/ source/plugin/ tpl/ install/data/ #只给写权限就行了,小编偷懒了
完善数据库
[root@lnmp html]# systemctl restart mysqld[root@lnmp html]# mysql -uroot -p -h192.168.100.155
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 2
Server version: 5.6.39 Source distributionCopyright (c) 2000, 2018, Oracle and/or its affiliates. All rights reserved.Oracle is a registered trademark of Oracle Corporation and/or its
affiliates. Other names may be trademarks of their respective
owners.Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| mysql |
| performance_schema |
| test |
+--------------------+
4 rows in set (0.00 sec)mysql> create database love;
Query OK, 1 row affected (0.00 sec)mysql> show databases;
+--------------------+
| Database |
+--------------------+
| information_schema |
| love |
| mysql |
| performance_schema |
| test |
+--------------------+
5 rows in set (0.00 sec)mysql> mysql> exit
Bye
接下来就可以体验吧,夜深了,小编也该睡了
项目部署之 OElove 婚恋交友网站系统平台搭建(含php源码)相关推荐
- 日常练习部署之帝国CMS+帝国下载系统平台(内含php源码/亲测)
日常练习部署之帝国CMS+帝国下载系统平台(内含php源码/亲测) 这个是自己日常部署促进大家进行练习的部署,尽用来学习交流 效果图展示 需要部署lnmp环境 这套源码是给予lnmp架构来进行部署的, ...
- 房产系统 php 源码,易居cms房产网站系统 v1.1 bulid20191029_php免费源码
请注意:该源码来源网友分享,搜库资源网不提供技术支持,没有技术能力的小白勿拍.(如需安装服务费用另算) 易居cms房产网站系统主要针对房地产行业开发的房产网站系统,以thinkphp5.0为内核开发, ...
- 基于SpringBoot+Vue的校园交友网站的设计与实现【源码+论文+演示视频+包运行成功】
博主介绍:专注于Java技术领域和毕业项目实战
- 【OFDM通信】基于matlab深度学习OFDM系统信号检测【含Matlab源码 2023期】
⛄一.深度学习OFDM系统信号检测简介 1 OFDM系统模型 OFDM系统是一种常用的多载波调制方式, 因为其具有能够在带宽较窄的情况下传输大量数据.能够对抗频率选择性衰落.传输速率高.实现简单.信道 ...
- 基于JAVA英语学习网站设计与实现计算机毕业设计源码+数据库+lw文档+系统+部署
基于JAVA英语学习网站设计与实现计算机毕业设计源码+数据库+lw文档+系统+部署 基于JAVA英语学习网站设计与实现计算机毕业设计源码+数据库+lw文档+系统+部署 本源码技术栈: 项目架构:B/S ...
- java计算机毕业设计web智慧医疗平台设计与实现源码+mysql数据库+系统+lw文档+部署
java计算机毕业设计web智慧医疗平台设计与实现源码+mysql数据库+系统+lw文档+部署 java计算机毕业设计web智慧医疗平台设计与实现源码+mysql数据库+系统+lw文档+部署 本源码技 ...
- java计算机毕业设计Vue垃圾分类指南平台设计与实现源码+mysql数据库+系统+lw文档+部署
java计算机毕业设计Vue垃圾分类指南平台设计与实现源码+mysql数据库+系统+lw文档+部署 java计算机毕业设计Vue垃圾分类指南平台设计与实现源码+mysql数据库+系统+lw文档+部署 ...
- java计算机毕业设计医疗健康管理平台会员管理子系统源码+数据库+系统+lw文档+部署
java计算机毕业设计医疗健康管理平台会员管理子系统源码+数据库+系统+lw文档+部署 java计算机毕业设计医疗健康管理平台会员管理子系统源码+数据库+系统+lw文档+部署 本源码技术栈: 项目架构 ...
- java计算机毕业设计校园社团管理平台演示录像2021源码+mysql数据库+lw文档+系统+调试部署
java计算机毕业设计校园社团管理平台演示录像2021源码+mysql数据库+lw文档+系统+调试部署 java计算机毕业设计校园社团管理平台演示录像2021源码+mysql数据库+lw文档+系统+调 ...
最新文章
- python3各个版本是通用的吗-python3各版本
- Spring+EhCache缓存实例(详细讲解+源码下载)
- 前端学习(2233):react的子传父数据传递
- mysql not like 没用_PHP - 使用NOT LIKE时,mysql查询不起作用
- shell脚本七十问
- 国内网络安全风险评估市场与技术操作
- VS2005制作安装包
- Elasticsearch顶尖高手系列:高手进阶篇(一)
- 国务院发展研究中心发布《中国云计算产业发展与应用白皮书》| 附下载
- 使用Lua GD库动态生成验证码图片(2)
- MODTRAN辐射传输模型使用笔记
- ci定位 lac,基站定位LAC,CID转经纬度
- Windows下Qt程序初步打包
- 天津计算机专业专科大学排名,天津的计算机专业大学排名
- matlab 矩阵元素求和、求均值(期望)和均方差
- javascript创建对象方法总结
- 计算机上的字体太小怎么办,Win7电脑网页字体变小了怎么办?
- 在chrome下-webkit-box布局的一个bug
- 【ROS-Navigation】—— Astar路径规划算法解析
- 12月17日云栖精选夜读 | 用PrettyPrinter,让Python输出更漂亮,你值得拥有
热门文章
- FFmpeg[4] - 将视频文件转码成FLV格式(FFmpeg转封装1)
- vue_cli安装解决
- 解决mac启动vue项目报错
- 网络安全攻防五件套,OCSP、CISP-PTE、CISP-PTS、CISP-IRE、CISP-IRS
- 基于MFC的陨石撞飞机游戏设计与实现
- 怎么迁移操作系统到其它硬盘
- 入坑网易的airtest-airtest.core.error.AirtestError: 'package not found, output:[]' ADB指令执行失败,可能需要修改部分手机设置
- BBI指标讲解及应用
- Unity3D —— 实时PVP小地图实现
- Nyzo验证者搭建教程(可能是最适合程序员参与的区块链)