找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索
广告投放联系QQ68610888
查看: 98545|回复: 442

[k3] k3梅林7.7!完美安装onmp!!!K3架设php网站,博客,云盘,数据库!!!

 火... [复制链接]
发表于 2018-2-20 14:20 | 显示全部楼层 |阅读模式
本帖最后由 chengmeiqq 于 2018-3-19 16:16 编辑

k3梅林7.7!完美安装onmp!!!phpMyAdmin-Owncloud-Kodexplo...

固件: K3_Melin_11.16_X7.7.trx 刷机我就不说了    
                                                                                        -------------------------------------- 以下都架设下K3路由器上面梅林系统7.7---测试地址:-------------------------------------------------
owncloud             http://yss168.vicp.cc:98   kodexplorer           http://yss168.vicp.cc:88
phpMyAdmin        http://yss168.vicp.cc:82
服务器PHP探针    http://yss168.vicp.cc:81
blogphp博客        http://yss168.vicp.cc:91                                                                       

以上都是搭建 frps 服务端 映射的内网!!!
----------------------------------------------------------------------------------------------------
一,U盘或者硬盘分区,(MiniTool分区向导免费版)分区!我这用U盘测试。



分区完成之后直接插到K3路由器上面!!!

二,K3路由器设置,系统管理-系统设置,开启ssh跟jffs。


,1,开启软件中心虚拟内存1G。


,1,开机新建opt文件夹,2,开机自动挂载opt到U盘!
把下面命令新建一个名字为 (gz.sh)文件,用WinSCP.exe登陆把gz.sh文件放到jffs分区!给文件权限777

  1. sleep 5 && mkdir -p /tmp/opt
  2. sleep 8 && mount -o bind /mnt/ys9898 /opt
  3. sleep 13 && onmp start
复制代码
3.文件上传之后,设置路由器开机启动脚本!


重启K3路由器!!!开机自动挂载成功  用ssh连接查看!
  1. df -h
复制代码

以上U盘开机挂载完成!!!!
-----------------------------------------------------------------------------------------------------------------
,1,使用ssh登陆K3路由器安装执行下面命令
  1. wget -O - http://pkg.entware.net/binaries/armv7/installer/entware_install.sh | /bin/sh
复制代码
以上安装完成之后!opkg 更新数据
  1. opkg update
复制代码
六,1,使用ssh登陆K3路由器安装onmp!耐心等待!
  1. cd /opt && opkg install wget unzip && wget --no-check-certificate -O /opt/onmp.zip https://github.com/xzhih/ONMP/archive/master.zip && unzip /opt/onmp.zip && cd /opt/ONMP-master && chmod +x ./onmp_intall.sh && ./onmp_intall.sh
复制代码
等待3-10分钟出现下面图!时间跟自己的网速有关系!!


选择1 安装onmp!!



成功了,我们访问下http://192.168.50.1:81试试


onmp 管理命令!!!
  1. ----------------------------------------
  2. |*************  onmp 命令  *************|
  3. |**********  管理 onmp open  **********|
  4. |*********  启动 停止 重启ONMP  *********|
  5. |*****  onmp start|stop|restart   *****|
  6. |*******  查看网站列表 onmp list  *******|
  7. ----------------------------------------
复制代码
我们下面安装一个 数据库!!
  1. onmp open
复制代码
  1. ----------------------------------------
  2. |**************** ONMP ****************|
  3. ----------------------------------------
  4. (1) 安装ONMP
  5. (2) 卸载ONMP
  6. (3) 设置数据库密码
  7. (4) 重置数据库
  8. (5) 数据库自动备份
  9. (6) 全部重置(会删除网站目录,请注意备份)
  10. (7) 安装网站程序
  11. (8) 开启Swap
  12. (0) 退出
复制代码

直接选择 7 !!!

  1. ----------------------------------------
  2. |************* 选择WEB程序 *************|
  3. ----------------------------------------
  4. (1) phpMyAdmin(数据库管理工具)
  5. (2) WordPress(使用最广泛的CMS)
  6. (3) Owncloud(经典的私有云)
  7. (4) Nextcloud(Owncloud团队的新作,美观强大的个人云盘)
  8. (5) h5ai(优秀的文件目录)
  9. (6) Lychee(一个很好看,易于使用的Web相册)
  10. (7) Kodexplorer(可道云aka芒果云在线文档管理器)
  11. (8) Netdata(详细得惊人的服务器监控面板)
  12. (9) Typecho (流畅的轻量级开源博客程序)
  13. (10) Z-Blog (体积小,速度快的PHP博客程序)
  14. (0) 退出
  15. 输入你的选择[0-10]:
复制代码
选择 1 ,然后3个回车就行了!
  1. <p>输入你的选择[0-10]: 1
  2. ----------------------------------------
  3. |***********  WEB程序安装器  ***********|
  4. ----------------------------------------
  5. 安装 phpMyAdmin:
  6. 输入服务端口(请避开已使用的端口)[留空默认82]:
  7. 输入目录名(留空默认:phpMyAdmin):
  8. 开始安装...
  9. --2018-02-20 13:19:44--  https://files.phpmyadmin.net/phpMyAdmin/4.7.6/phpMyAdmin-4.7.6-all-languages.zip

  10. Resolving files.phpmyadmin.net... 185.180.13.17
  11. Connecting to files.phpmyadmin.net|185.180.13.17|:443... connected.
  12. HTTP request sent, awaiting response... 200 OK
  13. Length: 11475526 (11M) [application/zip]
  14. Saving to: '/opt/tmp/phpMyAdmin.zip'

  15. /opt/tmp/phpMyAdmin.zip     100%[===========================================>]  10.94M  25.0KB/s   in 5m 46s s

  16. 2018-02-20 13:25:41 (32.4 KB/s) - '/opt/tmp/phpMyAdmin.zip' saved [11475526/11475526]

  17. 正在解压...
  18. 解压完成...
  19. 正在配置phpMyAdmin...
  20. phpMyAdmin安装完成
  21. 浏览器地址栏输入:你的路由器IP:82 即可访问
  22. phpMyaAdmin的用户、密码就是数据库用户、密码
  23. <a href="mailto:admin@K3-QQ-509898118:/tmp/opt/ONMP-master">admin@K3-QQ-509898118:/tmp/opt/ONMP-master</a>#</p>
复制代码


梅林7.7固件下载地址:群:127643133
安装好之后一定需要重启之后才可以正常访问!!!




本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×

点评

你说的很对。: 5.0
你说的很对。: 5
能不能用K3/K2/K2P假设虚拟网络VP,然后异地登陆这个虚拟网络VP玩游戏,大神能写个教程吗?  发表于 2018-3-17 00:26

评分

参与人数 13恩山币 +17 收起 理由
zhangjun352 + 1 我来恩山就是为了撩你!
霓虹晚照 + 1 我来恩山就是为了撩你!
tzxinqing + 3 我来恩山就是为了撩你!
九霄 + 1 做人要低调,拿去买糖吃吧!
Jason57 + 1 我来恩山就是为了撩你!
飘逸如鬼 + 1 强大的恩山!(以下重复1万次)
′烂草 + 1 刷的楼主的7.7梅林 但是报错装不了啊
clarkhisa + 1 我来恩山就是为了撩你!
思杰马克丁狗 + 1 收藏备用!!
f588 + 1 写的不错!
yingrs + 1 说的真好
asrock2006 + 3 我对你的敬仰犹如江水滔滔,我上朝鲜战场后一定写信给你!!!
z112233 + 1 把固件地址贴出来吧

查看全部评分

我的恩山、我的无线 The best wifi forum is right here.
发表于 2019-12-24 00:29 | 显示全部楼层
不错,希望能出编译教程
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-17 16:32 | 显示全部楼层
我对你的敬仰犹如江水滔滔,我上朝鲜战场后一定写信给你!!!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-12-17 15:23 | 显示全部楼层
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-8-23 20:39 | 显示全部楼层
我是新手,先收藏了,回家再搞
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-3-22 16:05 | 显示全部楼层
好像失效了啊  装不上去
Connecting to github.com|192.30.253.112|:443... connected.
OpenSSL: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol version
Unable to establish SSL connection.
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-1-27 17:42 | 显示全部楼层
那些程序是不是都装在U盘里了???我想K3自带的空间不够用吧
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-1-27 17:16 | 显示全部楼层
yinziyanjj@RT-AC3100-DBC3:/tmp/home/root# opkg update
Downloading http://bin.entware.net/armv7sf-k2.6/Packages.gz
Updated list of available packages in /opt/var/opkg-lists/entware
yinziyanjj@RT-AC3100-DBC3:/tmp/home/root# cd /opt && opkg install wget unzip &&
wget --no-check-certificate -O /opt/onmp.zip https://github.com/xzhih/ONMP/archi
ve/master.zip && unzip /opt/onmp.zip && cd /opt/ONMP-master && chmod +x ./onmp_i
ntall.sh && ./onmp_intall.sh
Installing wget (1.20-1a) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/wget_1.20-1a_armv7-2.6.ipk
Installing libpcre2 (10.32-1) to root...
Downloading http://bin.entware.net/armv7sf-k ... .32-1_armv7-2.6.ipk
Installing zlib (1.2.11-2) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/zlib_1.2.11-2_armv7-2.6.ipk
Installing libopenssl (1.0.2p-1a) to root...
Downloading http://bin.entware.net/armv7sf-k ... 0.2p-1a_armv7-2.6.i                                                                                        pk
Installing unzip (6.0-6) to root...
Downloading http://bin.entware.net/armv7sf-k2.6/unzip_6.0-6_armv7-2.6.ipk
Configuring libpcre2.
Configuring zlib.
Configuring libopenssl.
Configuring wget.
Configuring unzip.
--2019-01-27 17:10:51--  https://github.com/xzhih/ONMP/archive/master.zip
Resolving github.com... 52.74.223.119, 13.229.188.59
Connecting to github.com|52.74.223.119|:443... connected.
OpenSSL: error:1409442E:SSL routines:ssl3_read_bytes:tlsv1 alert protocol versio                                                                                        n
Unable to establish SSL connection.
yinziyanjj@RT-AC3100-DBC3:/tmp/opt#
yinziyanjj@RT-AC3100-DBC3:/tmp/opt#
yinziyanjj@RT-AC3100-DBC3:/tmp/opt#


请教下楼主 第6步安装到这里  是正确的吗? 感觉是有错误啊 没有弹出下一步的安装onpg的菜单
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2019-1-27 16:53 | 显示全部楼层
请问楼主
提示这个错误 是什么意思
yinziyanjj@RT-AC3100-DBC3:/tmp/home/root# wget -O - http://pkg.entware.net/binar
ies/armv7/installer/entware_install.sh | /bin/sh
--2019-01-27 16:51:31--  http://pkg.entware.net/binaries/ ... /entware_install.sh
Resolving pkg.entware.net... 81.4.123.217
Connecting to pkg.entware.net|81.4.123.217|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 2117 (2.1K) [application/octet-stream]
Saving to: 'STDOUT'

-                   100%[=====================>]   2.07K  --.-KB/s   in 0s

2019-01-27 16:51:32 (54.2 MB/s) - written to stdout [2117/2117]

Info: Checking for prerequisites and creating folders...
mkdir: can't create directory '/opt': File exists
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
mkdir: can't create directory '/opt/': No such file or directory
Info: Opkg package manager deployment...
/opt/bin/opkg: No such file or directory
chmod: /opt/bin/opkg: No such file or directory
/opt/etc/opkg.conf: No such file or directory
/opt/lib/ld-2.23.so: No such file or directory
/opt/lib/libc-2.23.so: No such file or directory
/opt/lib/libgcc_s.so.1: No such file or directory
/bin/sh: cd: line 31: can't cd to /opt/lib
chmod: ld-2.23.so: No such file or directory
Info: Basic packages installation...
/bin/sh: /opt/bin/opkg: not found
/bin/sh: /opt/bin/opkg: not found
/opt/usr/lib/locale/locale-archive: No such file or directory
ln: /opt/etc/passwd: No such file or directory
ln: /opt/etc/group: No such file or directory
ln: /opt/etc/shadow: No such file or directory
ln: /opt/etc/gshadow: No such file or directory
/bin/sh: opkg: not found
/bin/sh: opkg: not found
Info: Congratulations!
Info: If there are no errors above then Entware-ng was successfully initialized.
Info: Add /opt/bin & /opt/sbin to your PATH variable
Info: Add '/opt/etc/init.d/rc.unslung start' to startup script for Entware-ng services to start
Info: Found a Bug? Please report at https://github.com/Entware-ng/Entware-ng/issues
yinziyanjj@RT-AC3100-DBC3:/tmp/home/root# opkg update
-sh: opkg: not found
yinziyanjj@RT-AC3100-DBC3:/tmp/home/root#
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-12-8 22:11 | 显示全部楼层
安装了NextCloud,但是浏览器访问是显示有些PHP模块没有安装,有人知道怎么回事吗?

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

×
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-11-28 09:21 | 显示全部楼层
owncloud怎么设置手机APP啊,我用APP登录显示未知错误
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-11-8 22:10 | 显示全部楼层
看你头像而来
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-11-1 16:30 | 显示全部楼层
这个确实厉害,学习了!
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-10-21 14:15 | 显示全部楼层
重启就挂了 挂载脚本也执行了 重启啥都没了
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-8-17 14:02 | 显示全部楼层
我很想学,但是感觉我好像还有很多知识需要学习, 需要这个功能的时候才发现不懂,郁闷啊~
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

发表于 2018-7-29 08:53 | 显示全部楼层
感谢分享,很好很强大
我的恩山、我的无线 The best wifi forum is right here.
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

有疑问请添加管理员QQ86788181|手机版|小黑屋|Archiver|恩山无线论坛(常州市恩山计算机开发有限公司版权所有) ( 苏ICP备05084872号 )

GMT+8, 2024-4-18 12:20

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

| 江苏省互联网有害信息举报中心 举报信箱:js12377 | @jischina.com.cn 举报电话:025-88802724 本站不良内容举报信箱:68610888@qq.com 举报电话:0519-86695797

快速回复 返回顶部 返回列表