功能超级强大的网络工具netcat A机器执行 nc -l 1234 B机器执行 nc a-ip 1234 AB之间就可以联通了, 可以当聊天工具用。 A机器执行 nc -l 1234 -e /bin/bash -k B机器执行 nc a-ip 1234 B机器就可以运行A机器的shell了, -k 相当于 –keep-open,保持连接 可以接多会话。 A机器执行 tailf /va…
Leave a Comment分类: 计算机
To send a directory, cd to inside the directory whose contents you want to send on the computer doing the sending and do: tar -cz . | nc -q 10 -l -p 45454 On the computer receiving the contents, cd to…
Leave a Comment某些时候,docker-compose创建的默认网络可能和你现有的内网网络有地址冲突,通过以下网上可以定制创建网络的网段来规避这个问题。 version : ‘3’ services: nginx: image: nginx networks: default: driver: bridge ipam: driver: default config: – subnet: 10.103.0.1/16…
Leave a CommentFROM busybox MAINTAINER CaiZhongzhen RUN echo “Asia/Shanghai” > /etc/timezone RUN ln -snf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime RUN dpkg-reconfigure -f noninteractive tzdata 补充一…
Leave a Comment我的MYSQL 使用Docker进行部署的,当我进行版本升级(MySQL 5.7 to MySQL 8.0)之后,尝试进行连接的时候就会报这个错误。 解决办法: (来源https://dev.mysql.com/doc/refman/8.0/en/upgrading-strategies.html) (来源 update : https://dev.mysql.com/doc/refman/8.0…
5 Comments公司一次项目事故,项目在正常测试时没有问题,在实际生产并发场景下发生了线程锁死的状况。 后来分析原因,项目中在数据库查询时使用了多线程的写法。项目使用Spring Data JPA, 配置了 spring.jpa.open-in-view: True 该配置是为了关联模型查询方便,但是导致查询结束,当前访问会话未结算的情况下,数据库不释放连接。 后续子线程会尝试继续申请数据库连接,进而导致这种写法…
Leave a Comment若资金允许,请点击https://www.jetbrains.com/idea/buy/购买正版,谢谢合作 学生凭学生证可免费申请正版授权 | 创业公司可5折购买正版授权 使用网络激活 激活地址 https://idea.xiaocaicai.com
Leave a CommentOpenVPN是一个开源应用程序,可以通过公共Internet创建一个专用网络。在我们开始之前,我们首先需要安装Enterprise Linux(EPEL)存储库的额外包。下面就是关于如何在CentOS 7上设置Client和OpenVPN服务器的教程。 1.安装EPEL套件库,顺道更新 yum -y install epel-release && yum -y update 2.…
Leave a Comment问题出现原因 昨晚我修改了数据库,为字段添加了”FULLTEXT”索引,结果今天早上发现数据库连不上了,也没法重启,于是查看日志文件: cat /var/log/mysqld.log 发现如下错误日志: 130728 6:50:14 InnoDB: Initializing buffer pool, size = 128.0M InnoDB: mmap(137363456 bytes) faile…
Leave a CommentCloud computing makes it very affordable to get your own private virtual server on the Internet. Digital Ocean offers an entry level droplet for USD$5 per month, and Amazon.com has a micro instance ti…
Leave a Comment