摘要: 一:由于Mac 自带Python 1、首先打开终端查看Python版本 open /System/Library/Frameworks/Python.framework/Versions 2、没有Python3 直接安装 brew install python3 3、查看python3是否安装完毕 阅读全文
posted @ 2021-12-24 21:59 wish_yang 阅读(3032) 评论(0) 推荐(0) 编辑
摘要: Git由四部组成 常用命令如下: # 第一次初始化(方式1): git init git add . git commit -m 'first commit' git remote add origin git@github.com:帐号名/仓库名.git git pull origin maste 阅读全文
posted @ 2021-12-24 14:41 wish_yang 阅读(12338) 评论(0) 推荐(0) 编辑
摘要: if 语句 func main() { // age := 18 // if age <= 18 { // fmt.Println("少年") // } else if age >= 18 && age <= 30 { // fmt.Println("青年") // } else { // fmt. 阅读全文
posted @ 2021-11-25 16:10 wish_yang 阅读(32) 评论(0) 推荐(0) 编辑
摘要: Go语言中有丰富的数据类型,除了基本的整型、浮点型、布尔型、字符串外,还有数组、切片、结构体、函数、map、通道(channel)等。 整型 int //int8 int16 int32 int64 有符号 - //uint8 无符号 //int 类型会根据系统指定位数,32位是int32,64位是 阅读全文
posted @ 2021-11-24 14:46 wish_yang 阅读(56) 评论(0) 推荐(0) 编辑
摘要: 标准申明 申明已关键字var 开头 变量类型放在变量的后面 go里面无需分号结尾 var name string // 批量申明 var ( s string i int b bool ) 变量初始化 函数内部常使用 := 简洁声明 var name string = "张三" // 类型推导,编辑 阅读全文
posted @ 2021-11-23 10:36 wish_yang 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 一:Nginx运行工作进程数量 个数一般设置为:CPU核数 或者 CPU核数*2 ,例如2个四核,可以设置为8 CPU核数可以通过top 然后 1查看。也可以通过查看/proc/cpuinfo文件 或者命令 grep ^processor /proc/cpuinfo | wc -l //设置进程数 阅读全文
posted @ 2021-11-16 15:32 wish_yang 阅读(1006) 评论(0) 推荐(0) 编辑
摘要: mysql国内镜像地址:http://mirrors.ustc.edu.cn/mysql-ftp/Downloads/MySQL-8.0/ mysql官网地址:https://cdn.mysql.com//Downloads/MySQL-8.0/mysql-8.0.19-linux-glibc2.1 阅读全文
posted @ 2021-10-12 15:47 wish_yang 阅读(259) 评论(0) 推荐(0) 编辑
摘要: 一:安装前的准备 1:安装pcre。为了重写rewrite cd /home wget https://ftp.pcre.org/pub/pcre/pcre-8.44.tar.gz // 这里给我报个证书过期 yum install -y ca-certificates // 再重新下载 wget 阅读全文
posted @ 2021-10-12 15:47 wish_yang 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 一:安装前的准备 安装依赖包 yum -y install libmcrypt-devel mhash-devel libxslt-devel libjpeg libjpeg-devel libpng libpng-devel freetype freetype-devel libxml2 libx 阅读全文
posted @ 2021-10-12 15:47 wish_yang 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 当一个文件足够大的时候,通常上传会有两个问题,1:上传大小限制。2:上传速度太慢。 这个时候我们可以考虑分包上传。即是:将一个大文件 分成足够多的小文件分别上传。 php后端1:上传类 <?php namespace App\Support; use Illuminate\Http\Request; 阅读全文
posted @ 2021-10-08 13:51 wish_yang 阅读(642) 评论(0) 推荐(0) 编辑