![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
linux
咸鱼翻翻身
这个作者很懒,什么都没留下…
展开
-
python虚拟环境迁移至服务器
本地:进入虚拟环境source ./python36_env/bin/activate本地:将此环境依赖拷贝到requirements.txtpip freeze > requirements.txt本地:将requirements.txt上传到服务器scp ./requirements.txt [username]@[host]:/home/mine/服务器...原创 2019-03-20 22:18:33 · 1413 阅读 · 1 评论 -
linux采用scp命令拷贝文件到本地,拷贝本地文件到远程服务器
1.从服务器复制文件到本地:scp root@192.168.1.100:/data/test.txt /home/myfile/2.从服务器复制文件夹到本地:scp -r root@192.168.1.100:/data/ /home/myfile/3.从本地复制文件到服务器:scp /home/myfile/test.txt root@192.168.1.100:/d...原创 2019-03-18 17:17:23 · 1187 阅读 · 1 评论 -
执行shell脚本的四种方法
./test.sh:#!/bin/bashecho "http://c.biancheng.net/shell/" 赋予脚本可执行权限: $ cd demo #切换到 test.sh 所在的目录$ chmod +x ./test.sh #使脚本具有执行权限$ ./test.sh #执行脚本 使用 . : $ . ./test.shhttp://c...原创 2019-03-18 21:43:28 · 372 阅读 · 0 评论 -
GCC on Windows
文件和文件夹命名不要有空格!!!!!MSys2能在windows上创建一个Linux环境。MSys2开源镜像站-中国科技大学Index of /msys2/distrib/x86_64/软件包管理器:pacmanpacman -S gccpacman -Ss gcc选择 mingw-w64-x86_64-gccpacman -Smingw-w64-...原创 2019-03-24 17:45:30 · 378 阅读 · 0 评论