码迷,mamicode.com
首页 >  
搜索关键字:computer span idtran    ( 62233个结果
docker修改容器绑定端口
1、关闭正在运行的容器 2、查看容器ID,docker ps -a 3、找到宿主机容器目录, cd /var/lib/docker/containers/f65c8e2e* 4、修改hostconfig.json 找到PortBindings,例如容器内的端口是50070,绑定的宿主机端口是5007 ...
分类:其他好文   时间:2021-06-02 20:14:50    阅读次数:0
CentOS7使用iptables
1、先停用CentOS7自带的防火墙 //关闭防火墙 systemctl stop firewalld.service //永久关闭防火墙 systemctl disable firewalld.service 2、安装iptables yum install -y iptables-service ...
分类:其他好文   时间:2021-06-02 20:03:37    阅读次数:0
docker-compose安装redis
docker-compose.yaml version: "3" services: redis: image: redis:5.0.8 container_name: redis restart: always command: redis-server /etc/redis/redis.conf ...
分类:其他好文   时间:2021-06-02 19:51:51    阅读次数:0
leetcode 1046. 最后一块石头的重量
有一堆石头,每块石头的重量都是正整数。 每一回合,从中选出两块 最重的 石头,然后将它们一起粉碎。假设石头的重量分别为 x 和 y,且 x <= y。那么粉碎的可能结果如下: 如果 x == y,那么两块石头都会被完全粉碎;如果 x != y,那么重量为 x 的石头将会完全粉碎,而重量为 y 的石头 ...
分类:其他好文   时间:2021-06-02 19:51:06    阅读次数:0
Nginx 开启,关闭,重启,查看命令,错误解决:Job for nginx.service failed because the control process exited with error code
启动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
每日日报
日志猫的使用 logcat //区别 输出颜色不同 级别不同 Log.v("MainActivity", "verbose");//黑色的日志 Log.d("MainActivity", "debug"); //蓝色的日志 Log.i("MainActivity", "info"); // 绿色的日 ...
分类:其他好文   时间:2021-06-02 19:48:28    阅读次数:0
面试题 02.05. 链表求和(链表)
1. 题目 给定两个用链表表示的整数,每个节点包含一个数位。 这些数位是反向存放的,也就是个位排在链表首部。 编写函数对这两个整数求和,并用链表形式返回结果。 2. 示例 示例1: 输入:(7 -> 1 -> 6) + (5 -> 9 -> 2),即617 + 295 输出:2 -> 1 -> 9, ...
分类:其他好文   时间:2021-06-02 19:33:54    阅读次数:0
nginx---keepalive_timeout timeout,和上传限制
keepalive长连接 设定保持连接超时时长,0表示禁止长连接,默认为75s示例:在响应头显示此首部字段 在nginx的默认配置中写的是65 vim /etc/nginx/nginx.conf keepalive_timeout 65; 可以按照实际需求设置长短 一、对外显示keeplive值 1 ...
分类:Web程序   时间:2021-06-02 19:01:43    阅读次数:0
leetcode-python-最长公共前缀
第一轮刷题解法: 1)如果长度为1,返回第一个字符串;如果存在空,返回空;否则长度递增,逐一比较,有不同则返回当前前缀。 class Solution: def longestCommonPrefix(self, strs: List[str]) -> str: count_prefix = 1 i ...
分类:编程语言   时间:2021-06-02 19:01:16    阅读次数:0
C语言:n++ , ++n,n--,--n
#include <stdio.h> int main() { int a=3,x; x=(a++)+(++a)+(++a); // 3(4) 5(5) 6(6) printf("%d,%d\n",a,x); x=(a--)+(--a)+(--a); //6(5) 4(4) 3(3) printf( ...
分类:编程语言   时间:2021-06-02 18:48:00    阅读次数:0
62233条   上一页 1 ... 19 20 21 22 23 ... 6224 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!