#查询有那些端口是开启的 [root@xpq ~]# firewall-cmd --list-port 3306/tcp 80/tcp 8000/tcp 9200/tcp #开启22122端口 [root@xpq ~]# firewall-cmd --zone=public --add-port=2 ...
分类:
其他好文 时间:
2020-10-21 20:43:48
阅读次数:
22
作用 显示CPU核心温度,并用小数形式返回。 适合脚本调用 效果 pi@rpi0w:~ $ cat /sys/class/thermal/thermal_zone0/temp|awk '{printf("Temp = %.2f\n",$1/1000)}' Temp = 27.17 ...
分类:
其他好文 时间:
2020-10-19 22:30:15
阅读次数:
27
啥也不说了,直接上脚本了,bat后缀的,有需要的自己改下自己的网址就好,我这里是添加*.chinatax.gov.cn,并且写死进注册表的color2regadd"HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\InternetSettings\ZoneMap\Domains\gov.cn\chinatax"
# firewall-cmd --help Usage: firewall-cmd [OPTIONS...] General Options -h, --help Prints a short help text and exists -V, --version Print the version ...
分类:
其他好文 时间:
2020-10-10 18:08:39
阅读次数:
40
1、下载tomcathttp://tomcat.apache.org/可以直接从官网下,或者下载到本地上传.这里下载到本地上传2、解压tomcat,并修改文件名3、添加tomcat的配置文件vim/etc/proife;后面的路径问tomcat解压的路径4、查看防火墙,如果防火墙是打开的,添加默认端口,并重新加载firewall-cmd--zone=public--add-port=8080/tc
分类:
系统相关 时间:
2020-09-17 18:43:27
阅读次数:
52
MySQL查看时区 show variables like '%time_zone%'; ...
分类:
数据库 时间:
2020-09-17 17:30:11
阅读次数:
28
java.lang.RuntimeException: com.mysql.cj.exceptions.InvalidConnectionAttributeException: The server time zone value 'Öйú±ê׼ʱ¼ä' is unrecognized or ...
分类:
数据库 时间:
2020-09-17 17:02:29
阅读次数:
51
@Scheduled所支持的参数: 1.cron:cron表达式,指定任务在特定时间执行;2.fixedDelay:表示上一次任务执行完成后多久再次执行,参数类型为long,单位ms;3.fixedDelayString:与fixedDelay含义一样,只是参数类型变为String;4.fixedR ...
分类:
编程语言 时间:
2020-09-14 18:57:29
阅读次数:
129
firewalld打开firewalldsystemctldisableiptables//关闭iptablessystemctlstopiptables//禁止iptables开机启动systemctlenablefirewalld//开启firewalldsystemctlstartfirewalld//让firewalld开机启动firewalld的9个zonefirewalld默认有9个z
分类:
其他好文 时间:
2020-09-11 16:09:32
阅读次数:
35
(1)查看当前时区 正确的应该是CST show variables like '%time_zone%'; (2)如果不是CST,需要修改配置文件 /etc/my.cnf 在[mysqld]中 添加 default-time-zone='+08:00' 最后: 只需完成这两步操作 ,此时查看MyS ...
分类:
数据库 时间:
2020-08-19 19:25:56
阅读次数:
108