常见问题
sun_duoLong
闻之不若见之,见之不若知之,知之不若行之。
展开
-
nginx: [error] invalid PID number ““ in “/usr/local/openresty/nginx/logs/nginx.pid“
修改完配置文件后,使用sbin/nginx -s reload重新启动nginx时,报[error] invalid PID number "" in "/usr/local/var/run/nginx/nginx.pid错误发生这个错误的原因是,nginx读取配置文件时出错,需要指定一个特定的nginx配置文件,所以解决这个问题需要先执行解决方法:sbin/nginx -c conf/nginx.conf再执行sbin/nginx -s reload...原创 2020-11-18 11:54:21 · 1508 阅读 · 0 评论 -
Caused by: java.lang.ClassNotFoundException: org.apache.http.ssl.TrustStrategy
java.lang.NoClassDefFoundError: org/apache/http/ssl/TrustStrategy at com.aliyun.openservices.log.Client.<init>(Client.java:273) at com.aliyun.openservices.log.Client.<init>(Client.java:218) at com.aliyun.openservices.log...原创 2020-11-17 15:01:39 · 1044 阅读 · 0 评论 -
mac系统:zsh切换bash提示chsh: no changes made问题
mac系统:zsh切换bash提示chsh: no changes made问题前提纪要:1、我们都知道mac有默认bash工具,在下载zsh后,把一切都配置好后,输入切换命令:chsh - s /bin/zsh ,总是提示 chsh: no changes made错误。那我我们尝试用sudo chsh -s /bin/zsh 在试一次。如果还是不行,就不用再弄了,直接用下面的方法吧!提示chsh:no changes made 解决办法:终端输入:dscl . -read /Users/$U原创 2020-11-03 20:01:30 · 7736 阅读 · 1 评论 -
安装jdk1.8怎么降到jdk1.7
jdk1.8换为jdk1.7的配置因为之前安装的eclipse版本要求JDK1.8或以上的版本,但在搭建SSH框架的时候老是报错,又找不到2错误源。老师建议换个低版本的jdk。所以jdk版本需要降级。 但降级以后就不能打开eclipse了。但网上很多说的都是把1.8删掉,之后再装回来,这样太麻烦了,总不能用一个软件就更换安装一次吧。所以找了一个可以方便切换jdk两个版本的方法。过程如下原创 2017-10-23 18:00:59 · 7530 阅读 · 4 评论 -
redis ----问题
****Redis问题****MISCONF Redis is configured to save RDB snapshots, but is currently not able to persist on disk. Commands that may modify the data set are disabled. Please check Redis logs for detail转载 2018-01-28 17:34:20 · 187 阅读 · 0 评论 -
spark 将dataframe 数据写入hive分区表
DataFrame 将数据写入hive中时,默认的是hive默认数据库,insertInto没有指定数据库的参数,数据写入hive表或者hive表分区中:1、将DataFrame数据写入到hive表中从DataFrame类中可以看到与hive表有关的写入API有一下几个:registerTempTable(tableName:String):Unit,inserInto(table...原创 2018-07-20 14:03:08 · 11377 阅读 · 0 评论 -
Linux免密码登录设置
假设要登录的机器为192.168.1.100,当前登录的机器为192.168.1.101。首先在101的机器上生成密钥(如果已经生成可以跳过): $ ssh-keygen -t rsa一路回车即可。然后在将生成的公钥复制到机器100上的~/.ssh/authorized_keys中,使用如下命令: $ ssh-copy-id -i ~/.ssh/id-rsa.pub...转载 2018-07-20 15:05:23 · 284 阅读 · 0 评论 -
elasticsearch 6.3.2 支持jdbc连接es 破解版
进去elasticsearch安装目录 找到x-pack-core-6.3.2.jarcd /data/server/es/elasticsearch-6.3.2/modules/x-pack/x-pack-core解压jar包,然后找到下面的两个class文件,使用luyten反编译org/elasticsearch/xpack/core/XPackBuild.classor...原创 2018-08-29 14:37:43 · 2694 阅读 · 1 评论