记录一下

1、VMvare workstation,virtual GDB,oracle VM virtualBOX, XSHELL

2、oracle VM virtualBOX + centos 挂载共享文件夹

        (VMware workstation类似,https://www.cnblogs.com/SwiftAero/p/6273085.html): 

        1)、确保centos已经安装virtualBOX增强工具
        2)、mount.vboxsf  共享名  linux挂载路径(或mount -t vboxsf 共享名 linux挂载路径
        3)、设置开机自动挂载:在文件 /etc/rc.local 中(用root用户)追加如下命令 
            mount -t vboxsf 共享名 inux挂载路径

3、VMware + ubuntu
        1)、安装VMwareTools,然后使用sudo mount -t vmhgfs .host:/ /mnt/hgfs/ 即可,如果只挂在其中一个共享项,则是 .host:/"你的共享名"
        2)、也可以安装不用VMwareTools,而是安装open-vm-tools。具体如下:
            sudo apt-get install open-vm-tools
            sudo apt-get install open-vm-dkms
            最后sudo mount -t vmhgfs .host:/ /mnt/hgfs/即可,但是有时候需要用sudo mount -t vmhgfs-fuse .host:/ /mnt/hgfs/才行

注: 我用的VMware11 + ubuntu12.4,装上VMwareTools后挂载提示Error: cannot mount filesystem: No such device,然后我按照2)的步骤进行,
然后提示参数不对,但是参数明明是对的...进行了各种尝试还是不行。于是把VMwareTools卸载(/usr/bin目录下有卸载程序,运行一下即可),再次
挂载还是不行,然后sudo apt-get remove open-vm-tools,将这个卸载掉,有重新按照VMwareTools,挂载,这次居然挂载成功了...

4、卸载:umount 共享名,VMware中卸载:umount linux挂载路径
    本地与远程活本地centos系统文件上传活下载:首先使用XSHELL,然后连接上远程centos后使用命令:
    sudo sz /usr/local/include/lua.h将文件同步到本地.

    使用linux命令行链接mysql:在命令窗口中输入 mysql -h 主机地址 -u 用户名 -p 密码

    注:
        运行命令rz,即是接收文件,xshell就会弹出文件选择对话框,选好文件之后关闭对话框,文件就会上传到linux里的当前目录
        行命令 sz file 就是发文件到windows上
        http://blog.51cto.com/skypegnu1/1538371

5、
      --cpp_out=OUT_DIR           Generate C++ header and source. 
      --csharp_out=OUT_DIR        Generate C# source file. 
      --java_out=OUT_DIR          Generate Java source file. 
      --javanano_out=OUT_DIR      Generate Java Nano source file. 
      --js_out=OUT_DIR            Generate JavaScript source. 
      --objc_out=OUT_DIR          Generate Objective C header and source. 
      --python_out=OUT_DIR        Generate Python source file. 
      --ruby_out=OUT_DIR          Generate Ruby source file.

根据proto生成pb文件
protoc.exe -I ./ --descriptor_set_out event.pb event.proto


6、centos下要使用lsof命令,但是不知道要安装的包名,可以使用yum whatprovides lsof获得包名,然后安装,其他命令类似。
   若要安装某个包,比如openssl,但是包名可能不是这个,可以使用yum search ssl进行搜索后选择要安装的包
   ubuntu下可使用aptitude search ssl进行搜索

猜你喜欢

转载自blog.csdn.net/woshiyuanlei/article/details/79621167