初学linux必备命令集!!详解 Linux常见命令包括:cd、ls、pwd、mkdir、rm、cp、mv、touch、cat、head、tail、chmod、df、vim等 cd命令详解 cd命令主要用于目录切换,例如:cd /home切换至/home目录,cd /root表示切换至/root目录 ...
分类:
系统相关 时间:
2020-12-03 12:29:59
阅读次数:
17
参考教程:https://docs.docker.com/engine/reference/builder/ 环境 virtual box 6.1 centos 7.8 docker 19.03 escape # escape=\ (backslash) Or # escape=` (backtic ...
分类:
其他好文 时间:
2020-12-03 12:27:02
阅读次数:
15
1 <?xml version="1.0" encoding="utf-8"?> 2 <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android" 3 android:layout_width="match_pare ...
分类:
其他好文 时间:
2020-12-02 12:21:59
阅读次数:
4
官网文档: https://docs.spring.io/spring-cloud-gateway/docs/2.2.5.RELEASE/reference/html/ 1. 概述 1.1 什么是网关 微服务架构里面还有一个非常重要的组件,就是网关, 在Spring Cloud 全家桶里面也有这个角 ...
分类:
其他好文 时间:
2020-12-02 12:18:37
阅读次数:
4
使用ABP框架进行First Code时,出现错误如下: Your startup project 'HF.Template.Migrator' doesn't reference Microsoft.EntityFrameworkCore.Design. This package is requi ...
分类:
其他好文 时间:
2020-12-02 12:00:53
阅读次数:
5
现象 日常工作通过Mac自带Terminal远程ssh到linux服务器完成,制表符显示总是不正常,例如htop运行效果如下图 而用PC的gitbash正常ssh的显示是这样的 可以看出command列中正常的制表符└─变成了`-- 原因 通常乱码问题是语言环境变量错误,通过locale命令将有关当 ...
分类:
系统相关 时间:
2020-12-01 12:07:15
阅读次数:
11
写一个脚本计算一下linux系统所有进程占用内存大小的和。 实现代码: #!/bin/bash count=0; for i in `ps aux | awk '{print $6}' | grep -v 'RSS'` do count=$[$count+$i] done echo "$count/ ...
分类:
系统相关 时间:
2020-11-30 15:38:30
阅读次数:
13
importjava.util.Arrays;importjava.util.Random;publicclassCountSort{staticclassItem{intindex;intnum;}privatestaticvoidsort(Item[]items,intbound){intn=items.length;int[]count=newint[bound];int[]sum=newi
分类:
编程语言 时间:
2020-11-27 11:52:06
阅读次数:
22
int countGoodTriplets(int* arr, int arrSize, int a, int b, int c){ int i, j, k, cnt=0; for(i=0; i<arrSize-2; i++){ for(j=i+1; j<arrSize-1; j++){ if(ab ...
分类:
其他好文 时间:
2020-11-27 11:50:07
阅读次数:
24
一、配置 1.添加依赖 在 springboot 启动器中直接添加依赖,或者创建后添加 Maven 依赖: <!--spring-boot-starter-data-redis--> <dependency> <groupId>org.springframework.boot</groupId> < ...
分类:
编程语言 时间:
2020-11-27 11:49:48
阅读次数:
20