随笔分类 -  linux

摘要:#yum -y install epel-release.noarch #yum -y install htop 阅读全文
posted @ 2021-06-02 11:11 铜锣湾扛把子·66 阅读(72) 评论(0) 推荐(0)
摘要:1 vim /etc/ssh/sshd_config 将 PasswordAuthentication yes 改为 no 2 重启sshd服务 service sshd restart 阅读全文
posted @ 2021-05-27 14:53 铜锣湾扛把子·66 阅读(488) 评论(0) 推荐(0)
摘要:java -jar -Duser.timezone=GMT+08 xxx.jar 阅读全文
posted @ 2021-05-08 17:38 铜锣湾扛把子·66 阅读(149) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/shione/p/10161021.html 阅读全文
posted @ 2021-04-22 17:58 铜锣湾扛把子·66 阅读(43) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/kevingrace/p/8377645.html 阅读全文
posted @ 2021-04-22 09:02 铜锣湾扛把子·66 阅读(39) 评论(0) 推荐(0)
摘要:https://www.xmpan.com/944.html 阅读全文
posted @ 2021-04-20 13:38 铜锣湾扛把子·66 阅读(82) 评论(0) 推荐(0)
摘要:# ps -ef | grep tomcat (查出tomcat的进程号) # netstat -anp | grep PID ( 即可查出此PID 占用的端口) 阅读全文
posted @ 2021-02-22 15:32 铜锣湾扛把子·66 阅读(627) 评论(0) 推荐(0)
摘要:1.编辑conf下面的nginx.conf 2.在server段里加以下两行 default_type 'text/html';charset utf-8;3.然后重启就行了 sudo nginx -s reload 阅读全文
posted @ 2021-01-25 11:22 铜锣湾扛把子·66 阅读(1444) 评论(0) 推荐(0)
摘要:https://www.linuxidc.com/Linux/2017-11/148769.htm (直接划到最下方看配置,适用于仅主机模式) 阅读全文
posted @ 2020-09-28 11:18 铜锣湾扛把子·66 阅读(135) 评论(0) 推荐(0)
摘要:http://c.biancheng.net/linux/alias.html (能粘贴绝对不手写!!!) 阅读全文
posted @ 2020-09-25 09:32 铜锣湾扛把子·66 阅读(101) 评论(0) 推荐(0)
摘要:#!/bin/bashss -tnl | grep 6379 if [ $? -eq 0 ];then ps -ef | grep redis | awk 'NR==1 {print $2}' | xargs kill -9 && nohup /usr/local/redis/redis-serve 阅读全文
posted @ 2020-09-24 16:34 铜锣湾扛把子·66 阅读(398) 评论(0) 推荐(0)
摘要:https://jingyan.baidu.com/article/ab69b27080c00d2ca7189fd2.html 阅读全文
posted @ 2020-09-01 16:31 铜锣湾扛把子·66 阅读(223) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/yw-ah/p/9770971.html (这条是安装,下面是添加到开机启动) https://blog.csdn.net/hyh17808770899/article/details/108941717 阅读全文
posted @ 2020-09-01 14:24 铜锣湾扛把子·66 阅读(153) 评论(0) 推荐(0)
摘要:vim /etc/ssh/sshd_config 在最后一行添加:KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-gr 阅读全文
posted @ 2020-08-26 11:01 铜锣湾扛把子·66 阅读(3491) 评论(0) 推荐(0)
摘要:export JAVA_HOME=/usr/local/jdk1.8.0_261export CLASSPATH=.:${JAVA_HOME}/jre/lib/rt.jar:${JAVA_HOME}/lib/dt.jar:${JAVA_HOME}/lib/tools.jarexport PATH=$ 阅读全文
posted @ 2020-08-21 14:49 铜锣湾扛把子·66 阅读(306) 评论(0) 推荐(0)
摘要:wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel -7.repo 阅读全文
posted @ 2020-08-14 16:57 铜锣湾扛把子·66 阅读(250) 评论(0) 推荐(0)
摘要:cat file-name | grep -v ^# | grep -v ^$ 阅读全文
posted @ 2020-08-10 17:33 铜锣湾扛把子·66 阅读(398) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/zwj-linux/p/11552364.html 阅读全文
posted @ 2020-07-13 16:11 铜锣湾扛把子·66 阅读(130) 评论(0) 推荐(0)
摘要:https://www.cnblogs.com/yxy666/p/9606286.html 阅读全文
posted @ 2020-07-13 11:35 铜锣湾扛把子·66 阅读(79) 评论(0) 推荐(0)
摘要:解决办法: ssh-keygen -R 加上你要连接的远程的ip (重新安装openssh主机不能连接) 阅读全文
posted @ 2020-06-30 09:35 铜锣湾扛把子·66 阅读(286) 评论(0) 推荐(0)