摘要:How Autofs Works Autofs is a client-side service that automatically mounts the appropriate file system. When a client attempts to access a file system
阅读全文
摘要:目录 1、引言 2、OAuth2.0是什么 3、OAuth2.0怎么写 1、引言 本篇文章是介绍OAuth2.0中最经典最常用的一种授权模式:授权码模式 非常简单的一件事情,网上一堆神乎其神的讲解,让我不得不写一篇文章来终结它们。 一项新的技术,无非就是了解它是什么,为什么,怎么用。至于为什么,本篇
阅读全文
摘要:OAuth是一个关于授权(authorization)的开放网络标准,在全世界得到广泛应用,目前的版本是2.0版。 本文对OAuth 2.0的设计思路和运行流程,做一个简明通俗的解释,主要参考材料为RFC 6749。 一、应用场景 为了理解OAuth的适用场合,让我举一个假设的例子。 有一个"云冲印
阅读全文
摘要:Modify NGINX Configuration Filesudo nano /etc/nginx/nginx.confSearch for this variable: client_max_body_size. If you find it, just increase its size to 100M, for example. If it doesn’t exist, then you...
阅读全文
摘要:NFS:Network File System RPC:Remote Procedure Call 一、手动挂载 (mount -t nfs 服务端IP:/共享目录 /本地挂载点)客户端1.安装nfs:[root@localhost ~]# yum install nfs* portmap -y [root@localhost ~]# rpm -qa nfs* nfs-utils-lib-1....
阅读全文
摘要:Speeding up Homestead on Windows Using NFSSep 07 2015Homestead LaravelEDIT: I have another article on using Homestead with sFTP and Sublime which may be a better option for some.I recently took the pl...
阅读全文
摘要:1 引言 introduction有时,我们需要在 Model 某些属性发生变化时,作出相应的处理。这时,我们可以使用 Model->isDirty() 方法进行判断。2 场景比如,姓名字段发生改变,引发拼音码生成;单价调整,引起金额计算。试题得分改变,导致试卷分值重算,等等。3 示例App\Observers\UserObserverfunction saving(User $user){if ...
阅读全文
摘要:rsyncd.conf28 Jan 2018rsyncd.conf(5)28 Jan 2018NAMErsyncd.conf - configuration file for rsync in daemon modeSYNOPSISrsyncd.confDESCRIPTIONThe rsyncd.conf file is the runtime configuration file for rsy...
阅读全文
摘要:IntroductionThis tutorial will take you through setting up an rsync daemon on your Linux server. You might want an rsync daemon if you have files that you want available so anyone (or just yourself) c...
阅读全文
摘要:找到虚拟机磁盘文件所在的目录,编辑里面的扩展名为vmx文件,记事本即可操作,在末尾加入如下一行:bios.bootDelay = "20000"这里的数字是毫秒,上面例子中的数值表示20秒。保存退出之后重启系统即可进入开机等待界面。
阅读全文
摘要:1 材料 debian buster nginx a project that develop base brophp 2 步骤 配置文件 /etc/nginx/sites-available/pis server { listen 80; root /mnt/code/pis/webroot; i
阅读全文
摘要:On this page:BasicsOpening multiple projectsDeleting a project from viewImportant notesBasicsPhpStorm allows you to work with several projects simultaneously. So doing, PhpStorm suggests the following...
阅读全文
摘要:1 目的在日常的 linux 服务器管理中,出于某些考虑,服务器要求与 Internet 完全隔离。这使得我们对系统的更新和软件包的升级感到无比头疼。下面介绍的这种方法,采用 ISO 文件,进行离线更新。2 原料已经正常运行中的 Debian 旧系统下载好的 Debian DVD 镜像(3 个 ISO)一个空间大于 20GB 的移动硬盘3 步骤下载的 3 个 iso 文件复制到移动硬盘。挂载移动硬...
阅读全文
摘要:1.将N个debian-506-amd64-DVD-N.iso存放于本地或其他媒介内,本例是放在本机/iso/目录下2.创建N个挂载点目录如下:debian:~#mkdir –r /media/dvd1debian:~#mkdir –r /media/dvd2debian:~#mkdir –r /media/dvd3….debian:~#mkdir –r /media/dvdN3.挂载iso文件d...
阅读全文
摘要:阅读数:14715今天项目中用到GuzzleHttp,开始不知道怎么用,其实还是很简单的。 直接在项目根目录,输入以下命令composer require guzzlehttp/guzzle1等下载安装好,在vendor文件夹下,有一个guzzle目录,此文件夹就是guzzlehttp的package了。 如何使用,可以参考官方文档http://docs.guzzlephp.org/en/late...
阅读全文
摘要:Nginx配置详解nginx概述nginx是一款自由的、开源的、高性能的HTTP服务器和反向代理服务器;同时也是一个IMAP、POP3、SMTP代理服务器;nginx可以作为一个HTTP服务器进行网站的发布处理,另外nginx可以作为反向代理进行负载均衡的实现。这里主要通过三个方面简单介绍nginx反向代理负载均衡nginx特点1. 反向代理关于代理说到代理,首先我们要明确一个概念,所谓代理就是一...
阅读全文
摘要:1 目标将开发完成的 Laravel 项目布署于 Debian 之上。由于项目要求使用 horizon 官方扩展,要求 PHP7.1+,故采用 Debian buster (下一版) 2 材料IP 10.1.1.107假定项目名称为 fmtmis (基于 Laravel 5.5)假定项目目录为 /var/www/code/fmtmis/webroot假定域名为 fmtmis.testingdebi...
阅读全文
摘要:by Pradeep Kumar · Published November 19, 2017 · Updated November 19, 2017DNS or Domain Name System, as we know is an internet service that is used to translate the user friendly domain into computer ...
阅读全文
摘要:Debian official document:http://www.debian.org/doc/manuals/network-administrator/ch-bind.htmlBuilding A Debian DNS System:http://www.howtoforge.com/debian_dnsTraditional DNS Howto:http://www.howtoforg...
阅读全文
摘要:server { listen 80; listen 443 ssl http2; server_name fmtmis.local; root "/home/vagrant/Code/fmtmis/webroot/public"; index index.html index.htm index.php; charset utf-8; locat...
阅读全文
摘要:1、登陆mysql数据库 mysql -u root -p 查看user表mysql> use mysql;Database changedmysql> select host,user,password from user;+--------------+------+-------------------------------------------+| host ...
阅读全文