logo
publist
写文章

简介

该用户还未填写简介

擅长的技术栈

可提供的服务

暂无可提供的服务

php while(true) 代替crontab达到秒级定时

记录一下 while(true)的有趣事情public function crontab(){while(true){file_put_contents(storage_path("crontab.log"),date('Y-m-d H:i:s').PHP_EOL,FILE_APPEND);sleep(1);//秒级任务//.....

#php
HTMl5之video标签禁止下载(隐藏下载按钮)

<video controls controlslist="nodownload"><source src="a.mp4" type="video/mp4"><source src="a.mp4" type="video/ogg">nonsupport video</video>

#html5
laravel报错:There is no existing directory at \"/var/www/html/Mac/storage/logs\" and its not buildable

有时候当我们将项目从一个服务器迁移到另一个服务器的后,我们一定要记得清理路由等缓存。不然框架默认读取缓存就会出错。有可能报错:There is no existing directory at \"/var/www/html/Mac/storage/logs\" and its not buildable也有可能报错:file_put_content() 参数的路径和我们配置的...

#laravel
表格中的table-layout属性讲解

定义和用法tableLayout 属性用来显示表格单元格、行、列的算法规则。table-layout有三个属性值:auto、fixed、inherit。fixed:固定表格布局固定表格布局与自动表格布局相比,允许浏览器更快地对表格进行布局。在固定表格布局中,水平布局仅取决于表格宽度、列宽度、表格边框宽度、单元格间距,而与单元格的内容无关。通过使用固定表格布局,用户代理在接收...

#html
Ubuntu 18.04和windows建立共享文件夹Samba、以及卸载和解决访问不了的问题

一、安装samba1、安装sambasudo apt install samba2、创建共享目录sudo mkdir /home/ls/share# ls是home下一个文件夹,对应虚拟机的名字。sudo chmod -R 777 /home/ls/share3、创建samba配置文件sudo cp /etc/samba/smb.conf /etc/samba/s...

ubuntu安装nodejs,npm,升级降级node版本

一、安装推荐使用方法一如果是docker环境可能需要先执行:apt updateapt install sudoapt install curl方法1:curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -sudo apt-get install -y nodejs如果安装nodejs 9.x...

#npm
Bitcion Core 目录说明、使用说明、bitcoin.conf 配置说明

一、目录结构/层级bitcoin.conf/blocks/blk00000.datindex/000003.logCURRENTLOCKLOGMANIFEST-000002rev00000.dat/chainstate/000003.logCURRENTLOCKLOGMANIFEST-0000...

docker容器内共享虚拟机里的文件夹

docker run -p 80:80 -itv /mnt/hgfs:/mnt/hgfs ubuntu:18.04 /bin/bash(要用绝对路径,“冒号”左边是虚拟机路径,右边是docker容器文件路径)红框:表示虚拟机里 /mnt/hgfs 下有docker文件夹 【/mnt/hgfs 共享的docker文件夹是windows宿主机的docker文件夹】红...

Homestead 下的 MySql 默认帐号和密码

用户名:homestead密码:secretvagrant ssh进入虚拟机登陆:$ mysql -uhomestead -psecret

    共 27 条
  • 1
  • 2
  • 3
  • 请选择