上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 58 下一页
  2020年8月24日
摘要: 背景 新买华为云主机,附带100G存储盘,需要挂载用来存储数据,从网上找到一个可用版本,搬到自己博客备用。 操作过程 1、查询硬盘信息 fdisk -lu root@ecs-d213:/usr/local# fdisk -lu Disk /dev/vda: 40 GiB, 42949672960 b 阅读全文
posted @ 2020-08-24 13:56 你不知道的浪漫 阅读(915) 评论(0) 推荐(0) 编辑
  2020年8月22日
该文被密码保护。 阅读全文
posted @ 2020-08-22 20:10 你不知道的浪漫 阅读(1) 评论(0) 推荐(0) 编辑
  2020年8月21日
摘要: 背景 笔者租赁了华为云服务器,其中两台没有弹性IP,不能连接互联网,限制需要在能上网的开一个http代理, 以供其他不能上网的使用(apt /apt-get需要http代理,否则无法更新)。 在代理服务器(192.168.0.83)执行以下命令 安装tinyproxy包 sudo apt-get u 阅读全文
posted @ 2020-08-21 16:30 你不知道的浪漫 阅读(2614) 评论(0) 推荐(1) 编辑
  2020年8月19日
摘要: 思路 系统中自定义了404,自定义404页面的mime-type是:text/html;charset=UTF-8,使用HTTP HEAD请求,判断有没有Content-Length头。 如果有Content-Length头说明是正常的二进制附件。 import lombok.extern.slf4 阅读全文
posted @ 2020-08-19 15:41 你不知道的浪漫 阅读(246) 评论(0) 推荐(0) 编辑
  2020年8月14日
摘要: 背景 springmvc的项目,之前是依靠tomcat容器独立运行的,前端没有nginx,httpd这样的web服务器扛着,万一哪天重启tomcat, 然后就是无法访问了,现在需要把服务器迁移到ubuntu18.04下,并且使用nginx做前端,并且在tomcat不工作的时候返回友好的错误页面。 之 阅读全文
posted @ 2020-08-14 10:51 你不知道的浪漫 阅读(610) 评论(0) 推荐(0) 编辑
  2020年8月9日
摘要: 环境准备 本机环境 ubuntu 17.04,python2.7.13 替换阿里源 wget https://git.io/superupdate.sh bash superupdate.sh 安装相关依赖 apt install python-pip --fix-missing 安装censys 阅读全文
posted @ 2020-08-09 18:59 你不知道的浪漫 阅读(1060) 评论(0) 推荐(0) 编辑
  2020年8月7日
摘要: mysql5.7一改往常的操作,所有操作都无效,即便你在配置文件[mysqld]设置skip-grant-tables 正确设置方法如下: sudo apt-get install mysql-server mysql-client libmysqlclient-dev 先查看自动生成的用户名以及密 阅读全文
posted @ 2020-08-07 13:28 你不知道的浪漫 阅读(471) 评论(0) 推荐(0) 编辑
  2020年8月6日
摘要: 背景 springmvc应用最近从windows迁移到ubuntu18.04,前端验证码无法加载,后来看控制台报以下错误 2020-08-06 15:49:49,983 ERROR [500.jsp] - Could not initialize class javax.imageio.ImageI 阅读全文
posted @ 2020-08-06 16:02 你不知道的浪漫 阅读(2432) 评论(0) 推荐(0) 编辑
摘要: server { listen 80; server_name www.域名.com; rewrite ^(.*)$ https://${server_name}$1 permanent; } server { listen 443; server_name www.域名.com; root /ho 阅读全文
posted @ 2020-08-06 14:16 你不知道的浪漫 阅读(2693) 评论(0) 推荐(0) 编辑
  2020年8月5日
摘要: 背景 公司自搭建的git托管应用gitblit在windows服务器上运行了一段时间,最近要迁移到Linux下,于是有了该篇文章。 原来的配置F:\windows-gitblit-1.9.1\gitblit-1.9.1\data\defaults.properties 自定义配置如下: git.re 阅读全文
posted @ 2020-08-05 18:06 你不知道的浪漫 阅读(765) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 58 下一页