- 博客(6)
- 资源 (1)
- 收藏
- 关注
原创 centos7 Docker 安装 PHP Nginx MySQL (单个php站点)
安装docker 1.切换到root用户 :su [cailly@localhost ~]$ su Password: 2.安装:yum -y install docker 查看版本:docker version 3. 启动:service docker start 4.测试是否安装成功:docker run hello-world 5.查看容器 docker images 6.........
2022-04-27 11:24:22
3004
转载 PHP最常用的函数
函数 说明 字符串函数 strlen() 获取字符串长度,字节长度 substr_count() 某字符串出现的次数 substr() 字符串截取,获取字符串(按照字节进行截取) mb_strlen() mb_substr() strchr() 与substr相似,从指定位置截取一直到最后 strrchr() (获取文件后缀名):与strchr一样,只是从右边开始查找字符 s...
2022-04-19 21:24:09
145
原创 MySQL性能优化简记
1.选择最合适的字段属性 2.尽量把字段设置不为空(NOT NULL)3.使用连接(join)查询代替子查询4.使用联合(UNION)代替手动创建临时表5.使用事务6.使用外键可以保证数据的完整性,外键可以把customerinfo表中的customerid映射到salesinfo表中customerid,任何一条没有办法合法customerid的记录都不会被跟新或插入到salesinfo中.建表必须设置类型为事务安全表InnoDB类型 即+(engine=innoDB)
2022-04-19 11:47:00
774
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人