kodbox安装向导
创始人
2024-06-02 19:45:45
0

kodbox安装向导

1、环境准备

主机名ip地址用途
kodbox10.0.0.79相当于web
kodbox-mysql10.0.0.80存放网站或者用户信息

2、kodbox-mysql–>部署redis和mysql

2.1 部署redis

2.2.1 安装redis并开启服务

yum install -y redis

2.2.2 修改redis远程访问权限并开启服务

grep -wn bind /etc/redis.conf
61:bind 127.0.0.1 172.16.1.80systemctl enable redis
systemctl start redis

2.2 部署Mysql

2.2.1 安装mysql并启动服务

yum install -y mariadb-server
systemctl enable mariadb && systemctl start mariadb

2.2.2 初始化数据库

$ mysql_secure_installation NOTE: RUNNING ALL PARTS OF THIS SCRIPT IS RECOMMENDED FOR ALL MariaDBSERVERS IN PRODUCTION USE!  PLEASE READ EACH STEP CAREFULLY!In order to log into MariaDB to secure it, we'll need the current
password for the root user.  If you've just installed MariaDB, and
you haven't set the root password yet, the password will be blank,
so you should just press enter here.Enter current password for root (enter for none): 
OK, successfully used password, moving on...Setting the root password ensures that nobody can log into the MariaDB
root user without the proper authorisation.Set root password? [Y/n] y
New password: 
Re-enter new password: 
Password updated successfully!
Reloading privilege tables..... Success!By default, a MariaDB installation has an anonymous user, allowing anyone
to log into MariaDB without having to have a user account created for
them.  This is intended only for testing, and to make the installation
go a bit smoother.  You should remove them before moving into a
production environment.Remove anonymous users? [Y/n] y... Success!Normally, root should only be allowed to connect from 'localhost'.  This
ensures that someone cannot guess at the root password from the network.Disallow root login remotely? [Y/n] y... Success!By default, MariaDB comes with a database named 'test' that anyone can
access.  This is also intended only for testing, and should be removed
before moving into a production environment.Remove test database and access to it? [Y/n] y- Dropping test database...... Success!- Removing privileges on test database...... Success!Reloading the privilege tables will ensure that all changes made so far
will take effect immediately.Reload privilege tables now? [Y/n] y... Success!Cleaning up...All done!  If you've completed all of the above steps, your MariaDB
installation should now be secure.Thanks for using MariaDB!

2.2.3 创建kodbox数据库及用户,并进行授权

1.进入数据库
mysql -uroot -p1232.创建kodbox使用的数据库
CREATE DATABASE IF NOT EXISTS kodbox CHARACTER SET utf8mb4 COLLATE utf8mb4_general_ci;3.创建用户并进行远程授权
grant all on kodbox.* to 'admin'@'localhost' identified by '123456';
grant all on kodbox.* to 'admin'@'172.16.1.%' identified by '123456';4.刷新权限
FLUSH PRIVILEGES;

3、kodbox–>部署nginx/php/kodbox

3.1 部署nginx

3.1.1 配置nginx的yum源,安装nginx

$cat /etc/yum.repos.d/nginx.reponame=nginx stable repo
baseurl=http://nginx.org/packages/centos/$releasever/$basearch/
gpgcheck=1
enabled=1
gpgkey=https://nginx.org/keys/nginx_signing.key
module_hotfixes=trueyum install -y nginx
systemctl enable nginx

3.1.2 配置nginx中的kodx.conf文件

server {listen 80;server_name lwx.kodx.cn;root /app/code/kodbox;location / {index index.php;}location ~ [^/]\.php(/|$) {try_files $uri =404;fastcgi_pass unix:/var/run/php-fpm.sock;fastcgi_index index.php;set $path_info $fastcgi_path_info;set $real_script_name $fastcgi_script_name;if ($fastcgi_script_name ~ "^(.+?\.php)(/.+)$") {set $real_script_name $1;set $path_info $2;}fastcgi_param SCRIPT_FILENAME $document_root$real_script_name;fastcgi_param SCRIPT_NAME $real_script_name;fastcgi_param PATH_INFO $path_info;include fastcgi_params;}
}nginx -t   #检查语法

3.2 安装php-fpm

3.2.1 上传php压缩包,安装php

tar -xvf php72w-all.tar.gz
yum localinstall -y *.rpmchown -R root:nginx /var/lib/php
systemctl enable php-fpm && systemctl start php-fpm

3.2.2 配置参数文件

PHP_INI=/etc/php.ini
PHP_FPM=/etc/php-fpm.d/www.confsed -i \-e "s/max_execution_time = 30/max_execution_time = 3600/g" \-e "s/max_input_time = 60/max_input_time = 3600/g" \-e "s/memory_limit = 128M/memory_limit = 512M/g" \-e "s/post_max_size = 8M/post_max_size = 512M/g" \-e "s/upload_max_filesize = 2M/upload_max_filesize = 512M/g" \${PHP_INI}sed -i \-e "s/pm.max_children = 50/pm.max_children = 100/g" \-e "s/pm.start_servers = 5/pm.start_servers = 10/g" \-e "s/pm.min_spare_servers = 5/pm.min_spare_servers = 10/g" \-e "s/pm.max_spare_servers = 35/pm.max_spare_servers = 50/g" \-e "s/;pm.max_requests = 500/pm.max_requests = 500/g" \-e "s/user = apache/user = nginx/g" \-e "s/group = apache/group = nginx/g" \-e "s/;listen.mode = 0660/listen.mode = 0666/g" \-e "s/;listen.owner = nobody/listen.owner = nginx/g" \-e "s/;listen.group = nobody/listen.group = nginx/g" \-e "s/listen = 127.0.0.1:9000/listen = \/var\/run\/php-fpm.sock/g" \${PHP_FPM}systemctl restart php-fpm

3.3 安装kodbox

1.创建站点目录
mkdir -p /app/code/kodbox/
cd /app/code/kodbox/2.下载有道云压缩包并解压
curl -L "https://api.kodcloud.com/?app/version&download=server.link" -o kodbox.zip
unzip kodbox.zip && rm -f kodbox.zip3.站点目录进行授权
chown -R nginx:nginx /app/code/kodbox/
chmod -R 755 /app/code/kodbox/4.重启nginx
systemctl restart nginx

4、kodbox网页配置

4.1 网站访问 http://10.0.0.79

环境监测成功后点击下一步

image-20230220194605622

4.2 数据库配置

因为这里用的是单独的数据库服务器,所以要在kodbox服务端上安装mariadb客户端

yum install -y mariadb

存储引擎选择MyISAM,否则这个页面会报错

image-20230220195430082

image-20230220195209424

点击确定,进行下一步

4.3 账号配置

image-20230220195618461

image-20230220195656005

4.4 登录页面

image-20230220195855989

image-20230220195930756

5、kodbox配置Minio对象存储

5.1 找到后台管理

image-20230220200522385

5.2 选择存储文件中的存储管理

image-20230220200725903

5.3 新增Minio对象存储

Minio安装参考

https://blog.csdn.net/m0_49562857/article/details/129484748?spm=1001.2014.3001.5501

image-20230220200816800

5.4 Minio配置

这里这个端口要注意下,Minio默认的9000端口是提供web服务的,9029是提供给其他设备进行访问的一个端口

这两个端口都可以在安装Minio的时候自定义

5.5 验证

image-20230220204439844

image-20230220204510714

image-20230220204526576

我上传了一张图片,可以看到这张图片在我的两台Minio分别进行了存储

相关内容

热门资讯

低版本安卓系统手机,揭秘低版本... 你有没有发现,身边总有些朋友还在用那些低版本的安卓系统手机?别看它们看起来普普通通,其实里面藏着不少...
安卓系统的功能需求,功能需求与... 你有没有发现,随着智能手机的普及,安卓系统已经成为了我们生活中不可或缺的一部分呢?想象每天早上醒来,...
安卓机的ios系统,揭秘iOS... 你有没有发现,最近你的安卓手机突然变得有点不一样了?是不是觉得界面看起来有点眼熟,操作起来也好像有点...
吐槽安卓操作系统,揭秘那些让人... 说起安卓操作系统,这可是个让人又爱又恨的家伙。咱们就来聊聊这个话题,看看它都有哪些让人忍不住吐槽的点...
怎么把安卓系统改为苹果,系统转... 你有没有想过,把你的安卓手机换成苹果手机,体验一下那个传说中的流畅和优雅呢?没错,我就是来告诉你,怎...
安卓系统如何用热点,随时随地共... 你有没有想过,你的安卓手机竟然能变身成为一个移动的Wi-Fi热点?没错,就是那个随时随地都能连接网络...
安卓系统自动开抖音,安卓系统自... 你有没有发现,最近你的安卓手机突然变得有点儿“调皮”呢?没错,就是那个我们每天都要刷的抖音,竟然自己...
安卓系统降级会更快吗,降级过程... 你有没有想过,你的安卓手机升级后,有时候操作起来反而不如以前流畅呢?别急,今天就来聊聊这个话题——安...
安卓系统设备扫码在哪,安卓设备... 你有没有遇到过这种情况:手机里装了各种APP,但是有时候想扫码付款或者加入某个群组,却怎么也找不到扫...
创维电视安卓系统卡顿,创维电视... 最近家里的创维电视有点不给力啊,你有没有遇到过安卓系统卡顿的烦恼?这可真是让人头疼不已。今天,就让我...
安卓系统摄像功能,捕捉生活精彩... 你有没有发现,现在手机拍照已经成为我们生活中不可或缺的一部分呢?尤其是安卓系统的摄像功能,简直让人爱...
安卓的系统安全管理,全方位守护... 你知道吗?在这个信息爆炸的时代,手机已经成了我们生活中不可或缺的好伙伴。但是,随着手机功能的日益强大...
安卓TV9系统,系统革新与智能... 你有没有发现,最近你的安卓电视系统更新了?没错,就是那个安卓TV9系统!这可不是一个小小的更新,而是...
hi8pro安卓系统,功能解析... 亲爱的数码爱好者们,你是否对安卓系统有着浓厚的兴趣?今天,我要给你带来一款特别引人注目的产品——hi...
在win8系统模拟安卓系统,跨... 你有没有想过,在Windows 8系统上也能模拟出安卓系统的风采呢?没错,这就是今天我要跟你分享的神...
cmd窗口进QNX系统和安卓系... 你有没有想过,在电脑上打开一个神秘的cmd窗口,竟然能进入两个截然不同的世界——QNX系统和安卓系统...
苹果12怎么装安卓系统,轻松安... 你手上的苹果12是不是已经用腻了?想要换换口味,试试安卓系统?别急,今天就来手把手教你如何给苹果12...
安卓系统极米同屏,安卓系统下的... 亲爱的读者们,你是否曾在深夜里,看着手机屏幕,却渴望能有一个更大的屏幕来享受你的电影之夜?或者,你是...
可以刷安卓8.0系统吗,探索新... 你有没有想过,你的安卓手机能不能升级到最新的安卓8.0系统呢?这可是个让人兴奋的话题,毕竟谁不想让自...
乐视改安卓系统版本,系统版本升... 亲爱的读者们,你是否还记得那个曾经红极一时的乐视电视?没错,就是那个曾经承诺要改变我们观看电视方式的...