自定义 local 对象 (实现并发处理请求) 1.思考及需求 要实现并发效果, 每一个请求进来的时候我们都开启一个进程, 这显然是不合理的, 于是就可以使用线程 如果我们的需求是每个线程都对变量 num 进行设值, 并打印其线程号, 其效果如下 : from threading import Th ...
分类:
其他好文 时间:
2021-06-05 17:52:29
阅读次数:
0
###yum安装依赖包 yum -y install libaio ###下载mysql_8.x版本rpm包 wget http://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm ###安装mysql_yum源 yum local ...
分类:
数据库 时间:
2021-06-04 19:54:22
阅读次数:
0
Path '\react-native-safe-area-context\android\build\intermediates\compiled_local_resources\debug\out' is not a readable directory. 解决: 按照目录手动新建文件夹 ...
分类:
移动开发 时间:
2021-06-04 19:43:18
阅读次数:
0
列出镜像: docker images REPOSITORY: 镜像所在仓库名称 TAG: 镜像版本 IMAGE ID: 镜像id CREATED: 镜像创建时间 SIZE: 镜像大小 唯一表示一个镜像: repository:tag 或者imageId 网络中搜索需要的镜像: docker sea ...
分类:
其他好文 时间:
2021-06-04 18:47:30
阅读次数:
0
1、使用命令下载 curl -sS https://getcomposer.org/installer | php 2.下载之后设置环境变量 mv composer.phar /usr/local/bin/composer 3.修改权限,否则执行会出错 chmod -R 777 /usr/local ...
分类:
其他好文 时间:
2021-06-03 18:05:24
阅读次数:
0
一、连接数据库: dsn := "root:123456@tcp(127.0.0.1:3306)/more?charset=utf8mb4&parseTime=True&loc=Local" db, err := gorm.Open(mysql.Open(dsn), &gorm.Config{}) ...
分类:
数据库 时间:
2021-06-03 17:50:45
阅读次数:
0
#CentOS7的yum源中默认好像是没有mysql 1.1 下载mysql的repo源 cd /usr/local wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm 1.2 安装mysql-community-r ...
分类:
数据库 时间:
2021-06-03 17:43:34
阅读次数:
0
#ping whole local domainfor ip in {1..255};do ping -c 3 192.168.110.$ip >> ping.log;done grep '3 ttl' ping.log |awk '{print $4}' | sed 's\:\\g' |while ...
分类:
系统相关 时间:
2021-06-02 20:19:59
阅读次数:
0
启动nginx服务时如果遇到这个错误 Job for nginx.service failed because the control process exited with error code. See “systemctl stat 可能原因如下: 1.nginx配置文件有错误 运行下面命令查 ...
分类:
其他好文 时间:
2021-06-02 19:50:08
阅读次数:
0
1.SpringBoot/spring @SpringBootApplication: 包含@Configuration、@EnableAutoConfiguration、@ComponentScan通常用在主类上; @Repository: 用于标注数据访问组件,即DAO组件; @Service: ...
分类:
编程语言 时间:
2021-06-02 19:23:55
阅读次数:
0