public static boolean isValidDate(String str) { DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd"); try{ Date date = (Date)formatter.parse(str)... ...
分类:
其他好文 时间:
2018-11-16 20:46:39
阅读次数:
169
环境说明[root@localhostPython-3.6.6]#cat/etc/redhat-releaseRedHatEnterpriseLinuxServerrelease7.4(Maipo)[root@localhostPython-3.6.6]#uname-aLinuxlocalhost.localdomain3.10.0-693.el7.x86_64#1SMPThuJul619:56:
分类:
其他好文 时间:
2018-11-16 20:45:08
阅读次数:
178
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 #define MVNum 100 7 int vis[MVNum]; 8 typedef struct ArcNode 9 { 10 int adjvex; 1... ...
分类:
其他好文 时间:
2018-11-16 19:13:45
阅读次数:
228
#!/bin/bash#====================================================#Author:Mr.Song#CreateDate:2018-11-16#Description:#====================================================#################################
分类:
系统相关 时间:
2018-11-16 17:46:13
阅读次数:
209
一. 安装包安装 1.1 安装Nginx Ubuntu安装之后的文件结构大致为: 所有的配置文件都在/etc/nginx下,并且每个虚拟主机已经安排在了/etc/nginx/sites-available下 程序文件在/usr/sbin/nginx 日志放在了/var/log/nginx中 并已经在 ...
分类:
系统相关 时间:
2018-11-16 17:36:55
阅读次数:
280
In 1953, David A. Huffman published his paper "A Method for the Construction of Minimum-Redundancy Codes", and hence printed his name in the history o ...
分类:
其他好文 时间:
2018-11-16 15:14:12
阅读次数:
230
1.首先用ssh连接阿里云服务器 2.连接mysql数据库 设置完这两项就可以连接阿里云内网mysql数据库 ...
分类:
数据库 时间:
2018-11-16 15:07:16
阅读次数:
184
网络接口配置文件[root@localhost ~]# cat /etc/sysconfig/network-scripts/ifcfg-eth0# Intel Corporation 82545EM Gigabit Ethernet Controller (Copper)TYPE=Ethernet ...
分类:
系统相关 时间:
2018-11-16 15:04:57
阅读次数:
255
基本命令——来源于马哥教育官网
1.cut
: cat /etc/passwd | cut -d’:’ -f7| uniq -c| sort -nr
2.authconfig 修改加密方式
–passalgo=sha256 — update
3.scp 上传文件
-r dir ip:path 传目录
file ip:path传文件
-P port 指定端口
4.rsync 同步文件
-avz 源文件 ip:path
scp和rsync都是基于ssh协议
分类:
系统相关 时间:
2018-11-16 15:03:07
阅读次数:
204