随笔分类 - linux
摘要:#yum -y install epel-release.noarch #yum -y install htop
阅读全文
摘要:1 vim /etc/ssh/sshd_config 将 PasswordAuthentication yes 改为 no 2 重启sshd服务 service sshd restart
阅读全文
摘要:java -jar -Duser.timezone=GMT+08 xxx.jar
阅读全文
摘要:https://www.cnblogs.com/shione/p/10161021.html
阅读全文
摘要:https://www.cnblogs.com/kevingrace/p/8377645.html
阅读全文
摘要:https://www.xmpan.com/944.html
阅读全文
摘要:# ps -ef | grep tomcat (查出tomcat的进程号) # netstat -anp | grep PID ( 即可查出此PID 占用的端口)
阅读全文
摘要:1.编辑conf下面的nginx.conf 2.在server段里加以下两行 default_type 'text/html';charset utf-8;3.然后重启就行了 sudo nginx -s reload
阅读全文
摘要:https://www.linuxidc.com/Linux/2017-11/148769.htm (直接划到最下方看配置,适用于仅主机模式)
阅读全文
摘要:http://c.biancheng.net/linux/alias.html (能粘贴绝对不手写!!!)
阅读全文
摘要:#!/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
阅读全文
摘要:https://jingyan.baidu.com/article/ab69b27080c00d2ca7189fd2.html
阅读全文
摘要:https://www.cnblogs.com/yw-ah/p/9770971.html (这条是安装,下面是添加到开机启动) https://blog.csdn.net/hyh17808770899/article/details/108941717
阅读全文
摘要:vim /etc/ssh/sshd_config 在最后一行添加:KexAlgorithms curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-gr
阅读全文
摘要: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=$
阅读全文
摘要:wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel -7.repo
阅读全文
摘要:cat file-name | grep -v ^# | grep -v ^$
阅读全文
摘要:https://www.cnblogs.com/zwj-linux/p/11552364.html
阅读全文
摘要:https://www.cnblogs.com/yxy666/p/9606286.html
阅读全文
摘要:解决办法: ssh-keygen -R 加上你要连接的远程的ip (重新安装openssh主机不能连接)
阅读全文

浙公网安备 33010602011771号