【问题1】
Could not connect to '172.18.32.20' (port 22): Connection failed如果你的centos在6.8以上,或者ubuntu>12.04. 很可能是:端口号改了(不再是22号)。 【解决】
1- vi /etc/ssh/sshd_config #For example change to: Port 2323 (defaut:22) 2- systemctl restart sshd.service #Restart SSHD service【问题2】
想查询某个头文件属于哪个软件包,并且是否在本机已经安装? yum provides */cblas.h #查询cblas.h --- output --- atlas-devel-3.10.1-10.el7.x86_64 : Development libraries for ATLAS Repo : base Matched from: Filename : /usr/include/cblas.h yum provides */opencv.hpp #查询opencv.hpp --- output --- opencv-devel-2.4.5-3.el7.x86_64 : Development files for using the OpenCV library Repo : base Matched from: Filename : /usr/include/opencv2/opencv.hpp【问题3】
#编译caffe出现如下: ./include/caffe/util/mkl_alternate.hpp:14:19: fatal error: cblas.h: No such file or directory #include <cblas.h>【解决】
yum install atlas-devel //注意:Every library used for compilation must be <name>-devel. //如果不确定安装库的名字,只知道一部分关键字,则 yum search atlas【问题4】假设我将caffe/tensflow的训练日志保存下来,存到一个文件中。那么我想在训练过程中查看日志信息。 (不用vi,用了以后会破坏文件,因为此时,这个文件正在进行读写)
tail -f train.log #此命令可以动态显示文件的变化【问题5】递归统计一个文件夹下的所有图片
ls -R directory |grep .jpg |wc -l