启动MySQL mysqld --defaults-file=/etc/my.cnf --user=mysql & mysqld_safe --defaults-file=/etc/my.cnf --user=mysql & service mysql start # systemctl start ...
分类:
数据库 时间:
2020-07-05 00:39:21
阅读次数:
149
常用基本命令 压缩文件 # touch a.txt # tar -czvf test.tar.gz a.txt //或 tar -czvf /path/to/file.tar.gz file 列出压缩文件内容 # tar -tzvf test.tar.gz 解压文件 # tar -xzvf test ...
分类:
其他好文 时间:
2020-07-05 00:33:09
阅读次数:
66
Cmder的安装与配置 用CMD/PowerShell进行命令行操作时,看着不爽。听说Cmder好用且方便。 1.环境变量的配置 1.新建系统环境变量 2.进入path 2.在Pycharm的Terminal中配置cmder 1.file 》settings 》Tools 》Terminal 2.编 ...
分类:
其他好文 时间:
2020-07-05 00:30:05
阅读次数:
641
2种方法: 1.open文件设置encoding file = open(filename, 'r', encoding='UTF-8') 2.用encode方法 str = str.encode() 参考:https://www.fujieace.com/python/str-bytes.html ...
分类:
编程语言 时间:
2020-07-05 00:27:39
阅读次数:
167
1、时间同步 #di.time sync /usr/sbin/ntpdate time.apple.com echo '#time sync by oldboy at 2019-3-30' >> /var/spool/cron/root echo '*/5 * * * * /usr/sbin/ntp ...
分类:
其他好文 时间:
2020-07-04 23:08:59
阅读次数:
112
# (一)连接器[Joiner] package com.jcx.guava.utilites; import com.google.common.base.Joiner; import com.google.common.io.Files; import org.junit.Test; impor ...
分类:
其他好文 时间:
2020-07-04 23:07:17
阅读次数:
140
1、下载和安装erlang erlang官网下载地址:https://www.erlang-solutions.com/resources/download.html 我下载的是:esl-erlang_23.0_windows_amd64.exe,注意rabbitMQ3.8.5b版本需要的erlan ...
import urllib.request; from bs4 import BeautifulSoup; response = urllib.request.urlopen("file:///C:/Users/junwei_zhou/Desktop/502/6.1/html.html"); htm ...
分类:
Web程序 时间:
2020-07-04 22:31:21
阅读次数:
78
import xlrdclass ReadExcel: def __init__(self,filename,sheetname): self.workbook = xlrd.open_workbook(filename) self.sheetname = self.workbook.sheet_b ...
分类:
编程语言 时间:
2020-07-04 22:31:00
阅读次数:
73
环境: RHEL7.5 IP地址: 192.168.95.200/24 网络设置host-only 使用Xshell或Putty、SecureCRT等软件远程连接到RHEL7.5的服务器上. 1) 修改hosts file文件 [root@12c ~]# hostnamectl Static hos ...
分类:
数据库 时间:
2020-07-04 20:25:33
阅读次数:
77