sql日期截取以及数量累加 数据库
创建表+插入测试数据 CREATE TABLE `post` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(30) NOT NULL, `status` tinyint(1) NOT NULL, `cdate` datetime NOT ...
创建表+插入测试数据 CREATE TABLE `post` ( `id` int(11) NOT NULL AUTO_INCREMENT, `title` varchar(30) NOT NULL, `status` tinyint(1) NOT NULL, `cdate` datetime NOT ...
简单工厂 <?php /** * Created by PhpStorm. * User: xingdong * Date: 2019/8/3 * Time: 上午10:05 */ //简单工厂 interface Product { public function getPrice(); ...
lsof | grep deleted (如果lsof命令不存在,执行yum install lsof进行安装) 我这里执行后,显示都是nginx相关进程 于是我执行 nginx -s reload 如果不行,可以执行 killall nginx; nginx -c /usr/local/nginx/conf/ngin...
1.获取到进程号 ps aux|grep php-fpm 得到php-fpm的master进程的id号是10100 2.查看安装目录 ll /proc/10100/exe
锁分类 1.读锁(共享锁,读操作不受影响,别的会话有插入操作会处于阻塞状态) 写锁(排他锁,在写操作完成之前,会阻断其他读和写操作) 2.表锁和行级锁 1.表锁 偏读 myisam存储引擎,开销小,加锁快,锁力度大,发生锁冲突的概率最高,并发度最低 //手动加锁 lock table 表名称 read(write),表...
数组 1.在内存中,数组是一块连续的区域 2.数组需要预留空间,在使用前需要提前申请所占内存的大小 3.在数组起始位置处,插入数据和删除数据效率低 -插入数据时,待插入位置的元素和它后面的所有元素都需要向后搬移 -删除数据时,待删除位置后面的所有元素都要向前搬移 4.随机访问速度效率很高,时间复杂度可以到达O(1) 因...
下载地址 https://ftp.gnu.org/gnu/gcc/ 下载gcc和相关依赖 wget https://ftp.gnu.org/gnu/gcc/gcc-5.4.0/gcc-5.4.0.tar.gz tar -zxvf gcc-5.4.0.tar.gz cd gcc-5.4.0 ./contrib/downl...
查看开机启动服务列表 systemctl list-unit-files systemctl list-unit-files |grep php 加入启动 systemctl enable postfix 启动 systemctl start postfix 停止 systemctl stop postfix 禁用 s...
问题:执行 systemctl start postfix Job for postfix.service failed because the control process exited with error code. See "systemctl status postfix.service&quo...
官网安装说明 https://about.gitlab.com/install/#centos-7 1.第一步 sudo yum install -y curl policycoreutils-python openssh-server sudo systemctl enable sshd sudo systemctl...