SSH配置免密登录
ssh免密登录配置方法及配置 linux 禁止密码登录 Linux服务器的publicKey登录 生成A服务器密钥 需要配置多台服务器免密登录,建议区分id_rsa文件名称 ssh-keygen -t rsa -C "your email" -f id_rsa_【密钥名】 -C:注释信息内容 -f:生成的文件路径、文件名 配置A服务器的config文件 A服务器目录: ~/.ssh/config Host 【B服务器IP地址】HostName 【B服务器IP地址】User 【B服务器用户名】PreferredAuthentications publickeyIdentityFile 【生成的私钥文件路径】 将密钥分发至B服务器 B服务器目录:~/.ssh/authorized_keys ssh-copy-id -i ~/.ssh/【你的密钥】.pub 【用户名】@【ip地址】 验证A服务器对B服务器的免密登录 ssh 【B服务器用户名】@【B服务器IP地址】 补充 自定义ssh端口登录 ssh -p 【PORT端口】...
菜谱-红烧鸭
红烧鸭
VSstudio启动项目指定ip访问非localhost
修改项目project下隐藏目录config中的applicationhost.config文件 PS:图片此处可能打不开 添加指定ip地址访问: <binding protocol="http" bindingInformation="127.0.0.1:31173:*" /> 实际项目配置如下: <bindings> <binding protocol="http" bindingInformation="*:31173:localhost" /> <binding protocol="http" bindingInformation="127.0.0.1:31173:*" /></bindings>
hexo博客新增评论系统
butterfly主题配置-添加评论系统 valine官网 leancloud官网 修改配置文件_config.butterfly.yml: comments: # Up to two comments system, the first will be shown as default # Choose: Disqus/Disqusjs/Livere/Gitalk/Valine/Waline/Utterances/Facebook Comments/Twikoo/Giscus/Remark42/Artalk use: Valine text: true # Display the comment name next to the button # lazyload: The comment system will be load when comment element enters the browser's viewport. # If you set it to true, the comment count will be invalid ...
Linux下新磁盘挂载扩容
Linux挂载新硬盘
Linux下安装字体文件
如何给Linux安装新的字体 上传文件至linux字体目录下 linux的字体目录:/usr/share/fonts cd /usr/share/fonts 可选择建立目录 mkdir custom 复制需要安装字体文件到字体目录下 cp /root/*.ttf /usr/share/fonts/custom 加载刷新字体 fc-cache -fv 查询已安装字体 fc-list
Win11环境下配置VM下虚拟系统开机启动
win10设置vmware 虚拟机开机自启 配置vmrun环境变量 验证vmrun环境配置 打开cmd输入vmrun 配置.bat脚本 #通过ping命令持续60秒实现延时开启(可根据需要是否开启)#ping 127.0.0.1 -n 60 #配置要开机自启的虚拟机`.vmx`后缀文件vmrun -T ws start "D:\Virtual Machines\Linux_DEV_DB\Linux_DEV_DB.vmx" nogui 关闭虚拟机: vmrun -T ws stop "D:\Virtual Machines\Linux_DEV_DB\Linux_DEV_DB.vmx" nogui 配置开机启动 shell:startup 重启电脑 验证虚拟机是否启动成功即可~
Linux服务器部署环境nginx,mysql,redis,tomcat(非Docker版)
以原生服务方式安装配置环境,Tomcat、Nginx、Mysql、Redis
Tomcat监控保活SH脚本命令
脚本命令及定时配置 定时cron配置 */5 * * * * . /etc/profile;/bin/sh /usr/local/services/tomcat_9.0.83/9092/monitor.sh 脚本monitor.sh #!/bin/sh # func:自动监控tomcat脚本并且执行重启操作# author: mumu # date:2024-07-05# DEFINE # 获取tomcat进程ID(其中[grep -w 'tomcat']代码中的tomcat需要替换为你的tomcat文件夹名) TomcatID=$(ps -ef | grep tomcat | grep -w 'tomcat_9.0.83/9092' | grep -v 'grep' | awk '{print...
Liniux下互联网访问不通问题解决
我有话说 前言 由于需要在Linux上部署PHP+Nginx项目,用了一台现有的服务器,注意:这是大坑的开始! 以后部署新项目一定要新服务器,不要在已有项目运行的服务器上跑新的环境项目,因为你不知道你部署的这个新环境会不会搞一些很奇怪的问题出来。 问题描述 在服务器上部署了一个PHP项目,然后联系网络部人员对指定端口开放了互联网访问入口,但是 telnet 是通的!通过浏览器打开页面报错Connection reset by peer telnet xxx.xxx.xxx.xxx port 通过命令检查防火墙是否开启: systemctl status firewalld service iptables status 都未显示防火墙,认为是防火墙默认已关闭的,所以一度怀疑是在互联网相关入口处有啥限制导致的! 如果当时firewall-cmd --state命令检查下就好了,显示running!!! 当时问题有三个 nginx启动报错 防火墙无法关闭 nginx访问403报错 解决方式 启动nginx报错 我之前启动nginx方式/usr/sbin/nginx -s...