一个 function 是为了完成某个任务的许多命令的一个集合。使用 function 的优势有:

  • 代码复用
  • 独立测试某功能
  • 修改一个 function 内部代码不影响程序整体结构
  • 同一个 function 可使用不同传入参数调用

一个有效的 c++ 程序至少要有一个 function:main()

阅读全文




之前我介绍过子网,子网掩码,网关等基本概念解析,可以参考:https://blog.niekun.net/archives/1885.html

在不同子网下的设备是不能直接访问的,因为他们在不同的网段内,比如:

FbdOD.gif

  • 路由 A 下有子网 192.168.1.0/24
  • 路由 B 下有子网 192.168.3.0/24
  • 设备 james:192.168.1.10/24 网关:192.168.1.1
  • 设备 Johnny:192.168.3.10/24 网关:192.168.3.1
  • 两个路由的 wan 网口在同一网段:192.168.2.0/24 下

阅读全文


安装包:https://nextcloud.com/changelog/#latest20
系统需求:https://docs.nextcloud.com/server/20/admin_manual/installation/system_requirements.html
nginx 配置:https://docs.nextcloud.com/server/18/admin_manual/installation/nginx.html
php 配置相关:https://docs.nextcloud.com/server/20/admin_manual/installation/source_installation.html#php-fpm-tips-label
修改 php 内存限制:https://www.chinaz.com/program/2011/1010/213048.shtml
安装 php 内存缓存:https://docs.nextcloud.com/server/15/admin_manual/configuration_server/caching_configuration.html
命令行安装:https://docs.nextcloud.com/server/stable/admin_manual/installation/command_line_installation.html