本次实验基于Linux+Nginx+MySQL+Php搭建,除此以外需要搭建DNS服务器以及Redis服务器,除此以外服务器系统版本为rocky8.5版本。

拓扑图:

1.配置DNS-Server

#注意我设置的域名为www.jason.org[root@dns-server ~]#yum -y install bind bind-utis
[root@dns-server ~]#vim /etc/named.conf
options {listen-on port 53 { localhost; }; #修改此内容allow-query     { any; };    #修改此内容
[root@dns-server ~]#vim /etc/named.rfc1912.zones     #添加以下内容
zone "jason.org" IN {type master;file  "jason.org.zone";
};
[root@dns-server ~]#vim /var/named/jason.org.zone   #添加以下内容$TTL 1D
@       IN SOA  master admin (1       ; serial1D      ; refresh1H      ; retry1W      ; expire3H )    ; minimumNS       master
master      A    10.0.0.7
www             A    10.0.0.8
[root@dns-server ~]#systemctl enable --now named  #启动DNS服务
[root@dns-server ~]#ss -ntl   #出现53端口就ok
State       Recv-Q Send-Q  Local Address:Port                 Peer Address:Port
LISTEN      0      10           10.0.0.7:53                              *:*
LISTEN      0      10          127.0.0.1:53                              *:*
LISTEN      0      128                 *:22                              *:*
LISTEN      0      128         127.0.0.1:953                             *:*
LISTEN      0      100         127.0.0.1:25                              *:*
LISTEN      0      128                 *:111                             *:*
LISTEN      0      10              [::1]:53                           [::]:*
LISTEN      0      128              [::]:22                           [::]:*
LISTEN      0      128             [::1]:953                          [::]:*
LISTEN      0      100             [::1]:25                           [::]:*
LISTEN      0      128              [::]:111                          [::]:*

2.配置LNP

#nginx可以yum安装或者编译安装,编译安装可以参考我之前写的关于nginx编译安装的教程[root@LNP-Server ~]#yum -y install php php-mysqlnd php-json php-xml php-gd php-mbstring
[root@LNP-Server ~]#vim /apps/nginx/conf/nginx.conf#    location / {#        root   html;#        index  index.html index.htm;#    }#}
include /apps/nginx/conf/conf.d/*.conf; #在最后一行添加以西内容
}
[root@LNP-Server ~]#mkdir /apps/nginx/conf/conf.d
[root@LNP-Server ~]#ln -s /apps/nginx/sbin/nginx /usr/bin/
[root@LNP-Server ~]#cd /apps/nginx/conf/conf.d/
[root@LNP-Server conf.d]#vim pc.conf
[root@LNP-Server conf.d]#vim pc.confserver {server_name www.jason.org;root /apps/nginx/html/;index index.html;}
[root@LNP-Server ~]#cd /apps/nginx/html
[root@LNP-Server html]#vim index.html<p> this is my websit </p>
[root@LNP-Server html]#nginx -t
nginx: the configuration file /apps/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /apps/nginx/conf/nginx.conf test is successful
[root@LNP-Server html]#nginx -s reload
[root@LNP-Server html]#mkdir -p /data/php
[root@LNP-Server ~]#vim /apps/nginx/conf/conf.d/pc.confserver {listen 80;server_name www.jason.org;root /data/php/;client_max_body_size 200M;location / {index index.php index.html;}location ~ \.php$ {fastcgi_pass   127.0.0.1:9000;fastcgi_index index.php;fastcgi_param SCRIPT_FILENAME  $document_root$fastcgi_script_name;include       fastcgi_params;}location ~ ^/(ping|pm_status)$ {fastcgi_pass 127.0.0.1:9000;fastcgi_param PATH_TRANSLATED $document_root$fastcgi_script_name;include fastcgi_params;
}
}[root@LNP-Server conf.d]#nginx -t
nginx: the configuration file /apps/nginx/conf/nginx.conf syntax is ok
nginx: configuration file /apps/nginx/conf/nginx.conf test is successful
[root@LNP-Server conf.d]#nginx -s reload

3.配置MySQL

[root@MySQL-Server ~]#yum -y install mysql-server
[root@MySQL-Server ~]#systemctl enable --now mysql-server
[root@MySQL-Server ~]#ss -ntl
State    Recv-Q    Send-Q       Local Address:Port        Peer Address:Port   Process
LISTEN   0         128                0.0.0.0:22               0.0.0.0:*
LISTEN   0         70                       *:33060                  *:*
LISTEN   0         128                      *:3306                   *:*
LISTEN   0         128                   [::]:22                  [::]:*
[root@MySQL-Server ~]#mysql
mysql> create database kodbox;
Query OK, 1 row affected (0.00 sec)mysql> create user kodbox@'10.0.0.%' identified by '123456';
Query OK, 0 rows affected (0.01 sec)mysql> grant all on kodbox.* to kodbox@'10.0.0.%';
Query OK, 0 rows affected (0.01 sec)

4.配置redis

[root@Redis-Server ~]#yum -y install redis
[root@Redis-Server ~]#systemctl enable --now redis
[root@Redis-Server ~]#ss -ntl
State     Recv-Q    Send-Q         Local Address:Port         Peer Address:Port    Process
LISTEN    0         128                127.0.0.1:6379              0.0.0.0:*
LISTEN    0         128                  0.0.0.0:22                0.0.0.0:*
LISTEN    0         128                     [::]:22                   [::]:*
[root@Redis-Server ~]#vim /etc/redis.conf
#bind 127.0.0.1 #修改为 bind 0.0.0.0
[root@Redis-Server ~]#systemctl restart redis

5.配置php

[root@LNP-Server ~]#vim /etc/php.ini
upload_max_filesize = 200M#修改以下内容

[root@LNP-Server ~]#systemctl restart php-fpm.service

[root@LNP-Server ~]#vim /etc/php-fpm.d/www.conf #修改文件
user = nginx
group = nginx
listen = 127.0.0.1:9000
pm.status_path = /fpm_status
ping.path = /pong
#安装模块包
[root@LNP-Server ~]#wget https://pecl.php.net/get/redis-5.3.7.tgz
[root@LNP-Server ~]#tar xf redis-5.3.7.tgz
[root@LNP-Server ~]#cd redis-5.3.7/
[root@LNP-Server redis-5.3.7]#yum -y install  php-cli php-devel
[root@LNP-Server redis-5.3.7]#phpize
Configuring for:
PHP Api Version:         20170718
Zend Module Api No:      20170718
Zend Extension Api No:   320170718
[root@LNP-Server redis-5.3.7]#./configure
[root@LNP-Server redis-5.3.7]#make -j 2 && make install
.............................
See any operating system documentation about shared libraries for## more information, such as the ld(1) and ld.so(8) manual pages.Build complete.
Don't forget to run 'make test'.Installing shared extensions:     /usr/lib64/php/modules/
[root@LNP-Server redis-5.3.7]#ll /usr/lib64/php/modules/
[root@LNP-Server redis-5.3.7]#vim /etc/php.d/31-redis.ini
;listen = /run/php-fpm/www.sockextension=redis
[root@LNP-Server redis-5.3.7]#systemctl enable --now php-fpm[root@LNP-Server redis-5.3.7]#ss -ntl
State      Recv-Q     Send-Q           Local Address:Port           Peer Address:Port     Process
LISTEN     0          128                  127.0.0.1:9000                0.0.0.0:*
LISTEN     0          128                    0.0.0.0:111                 0.0.0.0:*
LISTEN     0          128                    0.0.0.0:80                  0.0.0.0:*
LISTEN     0          128                    0.0.0.0:22                  0.0.0.0:*
LISTEN     0          128                       [::]:111                    [::]:*
LISTEN     0          128                       [::]:22                     [::]:*
#下载可到云
[root@rocky8 ~]#wget https://static.kodcloud.com/update/download/kodbox.1.27.zip
[root@rocky8 ~]#mv kodbox.1.27.zip /data/php/
[root@rocky8 ~]#cd /data/php/
[root@rocky8 php]#unzip kodbox.1.27.zip
[root@rocky8 ~]#chown -R nginx.nginx /data/php

打开浏览器输入www.jason.org

 填写信息

 设置密码

LNMP搭建kodcloud个人私有网盘相关推荐

  1. 使用 Zpan 搭建低成本个人私有网盘,还不限速

    摘要:本文就介绍一个不限速的低成本个人网盘--ZPan,相较于老牌的私有网盘 OwnCloud 等,Zpan 有一个独有的优势:不限速. 本文分享自华为云社区<使用 Zpan 搭建低成本个人私有 ...

  2. 一分钟搭建自己的私有网盘!还用什么百度网盘!

    今天我们就来谈谈,如何搭建一个属于自己的网盘! 开源云盘选择 搭建前我仔细看了一下各个开源私有云盘的实现,有以下几种: owncloud sealife nextcloud 对这几家比较了以下,考虑了 ...

  3. 华为云服务器如何搭建秒赞网,使用华为云服务器一键搭建 nextcloud 私有网盘

    众所周知,公共网盘产品现在变得越来越难用了,百度网盘不开会员基本等于没速度,而且对于这些公共网盘上数据的备份迁移以及安全性等问题都需要额外的考虑. 当我们拥有了自己的 ECS 云服务器,那么可以基于 ...

  4. 斐讯N1盒子安装lnmp搭建可道云kodexplorer私有网盘教程

    本教程采用lnmp方案安装web环境搭建可道云kodexplorer私有网盘,操作简单,容易上手 基础知识:第一炮 为小钢炮装上entware运行库 简单说明:data为我挂载的磁盘 话不多说直接进入 ...

  5. 还在忍受限速网盘?来搭建一套自己的私有网盘!

    点击上方蓝色"程序猿DD",选择"设为星标" 回复"资源"获取独家整理的学习资料! 作者 | zhaoolee 来源 | https://w ...

  6. 基于nas的filerun私有网盘搭建(拒绝可道云)

    现有的云存储服务中,无论是百度网盘还是微云,不限速这个词只跟会员有关,对于不常下载的用户来说,充会员反倒有点奢靡,廉洁之风的同学可以买个共享号临时用一下. 但如果你对"白嫖"这个词 ...

  7. 如何通过容器搭建稳定可靠的私有网盘(NextCloud)

    本文使用「署名 4.0 国际 (CC BY 4.0)」许可协议,欢迎转载.或重新修改使用,但需要注明来源. 署名 4.0 国际 (CC BY 4.0) 本文作者: 苏洋 创建时间: 2020年08月0 ...

  8. Docker搭建企业内部私有云盘/开源网盘系统

    转载来源:https://manual-cn.seafile.com/deploy/deploy_with_docker.html Docker搭建企业内部私有云盘/网盘系统 快速搭建 # 执行下面, ...

  9. 在Ubuntu18.04上搭建私有网盘 —— ownCloud

    欢迎访问我的个人博客: luomuxiaoxiao.com 您可能还会对这篇文章感兴趣:如何下载网站的在线视频 一 安装ownCloud 二 设置默认目录 三 为ownCloud建立数据库 四 配置o ...

  10. docker 搭建私有网盘owncloud

    最近看到一个私有网盘owncloud搭建起来非常简单,就试了一下,尤其是使用docker搭建,简单快捷,搭建完成之后,用了一下,很简洁,打算后续把自己家里的电脑插个硬盘,装个docker,搭建ownc ...

最新文章

  1. MyBatis和SpringMVC集成事务在Junit测试下有效但是在实际项目无效的问题
  2. 《Eve: Valkyrie Warzone》发布,非VR玩家也能公平开战
  3. Understanding HBase and BigTable 译文
  4. 《MySQL必知必会》[01] 基本查询
  5. CF993E Nikita and Order Statistics
  6. 使用Maven进行硒测试自动化
  7. django chart mysql,docker Django+mysql+ECharts+AngularJS简单搭建数据可视化
  8. u盘锁电脑_如何给u盘设置密码 给u盘设置密码方法【步骤详解】
  9. fastDFS引入jar包后日志冲突
  10. matlab的f检验和t检验,统计学在数学建模中的T检验和F检验
  11. 启动kafka报错ERROR Fatal error during KafkaServer startup. Prepare to shutdown ,找到原因就要可以解决
  12. vue 读取地址栏参数
  13. 什么是时间复杂度和空间复杂度
  14. PAT 1124 Raffle for Weibo Followers python解法
  15. 渗透学习心得-暴力破解
  16. Jieba分词并去停用词
  17. 【纯净安装、免U盘】无视win11硬件要求,直接setup.exe安装win11
  18. nginx降权及匹配php
  19. 关联规则挖掘基本概念与Aprior算法
  20. 图片去水印哪个软件好用?

热门文章

  1. 算法系列之二十一:实验数据与曲线拟合
  2. linux如何打开22端口?如何开启ssh远程链接
  3. python实现LU分解与LUP分解
  4. android /data/system/dropbox,Android dropbox日志浅谈
  5. 【文章整理】一文看懂Cola架构和DDD
  6. LM3886TF功放制作进展
  7. 使用Photoshop制作证件照
  8. ArcGIS导入excel文件
  9. Debian11 安装Chromium浏览器
  10. 第三届智能科学国际会议ICIS2018征稿北京大学11月2日-5日召开。附史忠植院士简历(公号发“智能科学国际会议”下载PDF)