# 安装依赖包 yum install -y yum-utils # 添加Docker软件包源 yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo # 安装Docker CE yu ...
分类:
其他好文 时间:
2021-04-28 12:12:26
阅读次数:
0
1.求每个部门最高薪水的人员名称 解决思路:1 先求每个部门最高的薪水 SELECT e.deptno,MAX(e.sal) as maxsal from emp e GROUP BY e.deptno; 2. 将第一步得出来的结果,当成临时表 SELECT e.deptno,ename,t.max ...
分类:
数据库 时间:
2021-04-27 14:59:14
阅读次数:
0
# CentOS7 rm -f /etc/yum.repos.d/*.repo curl -L "http://mirrors.163.com/.help/CentOS7-Base-163.repo" -o /etc/yum.repos.d/CentOS7-Base-163.repo curl -L ...
分类:
其他好文 时间:
2021-04-27 14:17:29
阅读次数:
0
create-react-app构建TypeScript项目 create-react-app my-app --template typescript 然后进入项目并启动 cd my-app/ npm run start 项目启动成功,浏览器默认打开http://localhost:3000/ 持 ...
分类:
其他好文 时间:
2021-04-27 14:13:35
阅读次数:
0
一些crontab调度示例 10 6 * * * root reboot 10 7 * * * python /root/confluence_backup.py */5 * * * * flock -xn /tmp/stargate.lock -c '/usr/local/qcloud/starg ...
分类:
其他好文 时间:
2021-04-27 14:12:22
阅读次数:
0
线程 创建线程 #include <pthread.h> int pthread_create(pthread_t *restrict thread,const pthread_attr_t *restrict attr,void *(*start_routine)(void*), void *re ...
分类:
其他好文 时间:
2021-04-26 13:53:31
阅读次数:
0
time_start = time.time() SR_left = net() torch.cuda.synchronize() time_end = time.time() ...
分类:
其他好文 时间:
2021-04-26 13:53:00
阅读次数:
0
调用start() 方法时会执行run() 方法,为什么我们不能直接调用 run() 方法? 学习或者复习多线程的时候有没有问过自己这个问题呢? 首先需要知道线程的几个状态以及多线程工作方式。 new 一个Thread,线程进入了新建状态,调用start() 方法,会启动一个线程并使线程进入了就绪状 ...
分类:
其他好文 时间:
2021-04-26 13:45:38
阅读次数:
0
Centos6 使用的是iptables,Centos7 使用的是filewall(-cmd)iptables 用于过滤数据包,属于网络层防火墙。firewall 能够允许哪些服务可用,那些端口可用...属于更高一层的防火墙。 1.firewalld的基本使用启动: systemctl start ...
分类:
其他好文 时间:
2021-04-26 13:32:00
阅读次数:
0
安装目录:/usr/local 1. 下载Tomcat压缩包 cd /usr/localwget https://mirror.bit.edu.cn/apache/tomcat/tomcat-8/v8.5.59/bin/apache-tomcat-8.5.59.tar.gz 2.解压Tomcat包 ...
分类:
其他好文 时间:
2021-04-26 13:21:01
阅读次数:
0