打开终端 ctrl+alt+t 查看IP # 若提示找不到命令,则需安装 net-tools sudo apt-get install net-tools ifconfig -a 配置 ###静态ip vi /etc/sysconfig/network-scripts/ifcfg-xxx DEVIC ...
分类:
系统相关 时间:
2020-10-29 09:57:37
阅读次数:
75
一、通过yum安装: yum -y install gcc yum -y install gcc-c++ 二、通过压缩包安装 1.下载gcc压缩包 // 下载地址: http://mirror.hust.edu.cn/gnu/gcc/ // 上传到服务器后解压缩 tar -zxvf gcc-4.9. ...
分类:
系统相关 时间:
2020-10-29 09:51:28
阅读次数:
29
1.目录下创建 appsettings.json文件 内容: { "ConnectionStrings": { "DefaultConnection": "Databases = InMemory;", "Myname": "Lihuahua;" } } 2.创建Settings文件夹下,新增类 类 ...
分类:
Web程序 时间:
2020-10-29 09:31:39
阅读次数:
35
打开系统相册:打开相册部分机型黑屏【小米9,系统10】 //打开系统相册浏览照片 val intent = Intent() intent.action = Intent.ACTION_MAIN intent.addCategory(Intent.CATEGORY_APP_GALLERY) cont ...
分类:
其他好文 时间:
2020-10-29 09:21:11
阅读次数:
17
@Test public void b() { int[] arr = new int[]{1, 2, 3, 4, 5, 4, 3, 2, 1}; int start = 0; int end = arr.length - 1; while (start <= end) { if (arr[star ...
分类:
编程语言 时间:
2020-10-29 09:20:36
阅读次数:
23
1、导入坐标<dependency> <groupId>org.springframework.cloud</groupId> <artifactId>spring-cloud-starter-netflix-eureka-server</artifactId> <version>Greenwich ...
分类:
其他好文 时间:
2020-10-27 11:35:08
阅读次数:
18
from threading import Event,Thread import logging,time FORMAT='%(asctime)s %(threadName)s %(thread)d %(message)s' logging.basicConfig(format=FORMAT,le ...
分类:
编程语言 时间:
2020-10-26 11:42:31
阅读次数:
85
1.启动数据库 1./etc/init.d/mysqld start > mysqld_safe > mysqld 2.systemctl start mysqld > mysqld_safe > mysqld 3.mysqld_safe --defaults-file=/etc/my.cnf & ...
分类:
数据库 时间:
2020-10-26 11:40:08
阅读次数:
30
JavaScript是客户端脚本语言,是一种居于对象(Object)和事件驱动(Event Dreven)的脚本语言。JavaScript认为文档和显示文档的浏览器都是由不同的对象组成的集合。这些对象具有一定的属性,你可以对这些属性进行修改或计算。 Javascript 的基本特点是: 为脚本语言, ...
分类:
编程语言 时间:
2020-10-26 11:14:55
阅读次数:
22
Java的多线程 1. 通过Thread的子类 需要覆写 Thread 的public void run()方法 public class Test { public static void main(String[] args) { new MyThread("a").start(); new M ...
分类:
编程语言 时间:
2020-10-26 11:05:38
阅读次数:
24