利用LNMP实现可道云私有云

利用LNMP实现可道云私有云,第1张

概述官网:http://kodcloud.com/1、准备MySQL数据库 [root@cent8_yzl_20~]#yuminstall-ymysql-server[root@cent8_yzl_20~]#systemctlenable--nowmysqld[root@cent8_yzl_20~]#mysqlmysql>createdatabasekodbox;mysql>createuserkodbox@'10.0.0.

官网:http://kodcloud.com/

1、准备MysqL数据库  
[root@cent8_yzl_20 ~]# yum install -y MysqL-server[root@cent8_yzl_20 ~]# systemctl enable --Now MysqLd[root@cent8_yzl_20 ~]# MysqLMysqL> create database kodBox;MysqL> create user kodBox@'10.0.0.%' IDentifIEd by 'redhat';MysqL> grant all on kodBox.* to kodBox@'10.0.0.%';
2、准备Redis服务
[root@cent8_yzl_20 ~]# yum -y install redis[root@cent8_yzl_20 ~]# sed -i '/^bind /c bind 0.0.0.0' /etc/redis.conf [root@cent8_yzl_20 ~]# grep '^bind' /etc/redis.conf bind 0.0.0.0   #修改此行[root@cent8_yzl_20 ~]# systemctl enable --Now redis
3、准备Nginx服务
#配置Nginx仓库[root@cent8_yzl_10 ~]# vi /etc/yum.repos.d/Nginx.repo[Nginx-stable]name=Nginx stable repobaseurl=http://Nginx.org/packages/centos/$releasever/$basearch/gpgcheck=1enabled=1gpgkey=https://Nginx.org/keys/Nginx_signing.keymodule_hotfixes=true[root@cent8_yzl_10 ~]# yum install -y Nginx[root@cent8_yzl_10 ~]# mkdir -pv /data/HTML[root@cent8_yzl_10 ~]# vi /etc/Nginx/conf.d/kod.conf[root@cent8_yzl_10 ~]# cat /etc/Nginx/conf.d/kod.conf server {  Listen 80;  server_name cloud.yzl.org;  root /data/HTML;  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;  }}[root@cent8_yzl_10 ~]# systemctl enable --Now Nginx
4、安装和配置PHP支持redis
[root@cent8_yzl_10 ~]# yum install -y https://mirror.tuna.tsinghua.edu.cn/remi/enterprise/remi-release-8.rpm#安装必要的包[root@cent8_yzl_10 ~]# yum install -y PHP74-PHP-fpm PHP74-PHP-MysqLnd PHP74-PHP-pecl-redis5 PHP74-PHP-mbstring PHP74-PHP-xml PHP74-PHP-gd[root@cent8_yzl_10 ~]# vi /etc/opt/remi/PHP74/PHP-fpm.d/www.conf user = Nginxgroup = Nginx#文件最后修改;PHP_value[session.save_handler] = files;PHP_value[session.save_path]    = /var/opt/remi/PHP74/lib/PHP/sessionPHP_value[soap.wsdl_cache_dir]  = /var/opt/remi/PHP74/lib/PHP/wsdlcache;PHP_value[opcache.file_cache]  = /var/opt/remi/PHP74/lib/PHP/opcachePHP_value[session.save_handler] = redisPHP_value[session.save_path] = "tcp://10.0.0.20:6379"
5、准备可道云程序
[root@cent8_yzl_10 ~]# wget https://static.kodcloud.com/update/download/kodBox.1.20.zip[root@cent8_yzl_10 ~]# lsanaconda-ks.cfg  kodBox.1.20.zip[root@cent8_yzl_10 ~]# unzip kodBox.1.20.zip -d /data/HTML[root@cent8_yzl_10 ~]# chown -R Nginx.Nginx /data/HTML
6、初始化和登录可道云

网站访问cloub.yzl.org

总结

以上是内存溢出为你收集整理的利用LNMP实现可道云私有云全部内容,希望文章能够帮你解决利用LNMP实现可道云私有云所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/sjk/1166947.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-01
下一篇 2022-06-01

发表评论

登录后才能评论

评论列表(0条)

保存