摘要: 首先确定是否安装有python: python -V 如果有: cd 到你要开放的文件夹中,然后使用下面的命令可以把 当前文件夹内的所有文件 发布到 8000 端口。 python -m SimpleHTTPServer 8000 如果目录下有index.html,就会显示该文件内容,否则就列目录。 阅读全文
posted @ 2018-07-02 16:50 Mrcoool 阅读(731) 评论(0) 推荐(0) 编辑
摘要: 安装:yum install nc.x86_64 发送文件: nc -l port < somefile.xxx 接收文件: nc -n x.x.x.x port > somefile.xxx 阅读全文
posted @ 2018-07-02 16:43 Mrcoool 阅读(2715) 评论(0) 推荐(0) 编辑
摘要: #!/bin/bash echo -e "1) A"echo -e "2) B"echo -e "3) C"echo -e "4) D"echo -e "5) E"echo -e "6) F"echo -e "7) G"echo -e "8) H"echo -e "9) I"echo -e "-- 阅读全文
posted @ 2018-07-02 16:41 Mrcoool 阅读(396) 评论(0) 推荐(0) 编辑