centos 使用windows7 存储
摘要:1. 在Windows7上创建一个带密码的用户,如disk 2. 创建一个文件夹,如 D:\centos-disk2 3. 选中此文件夹,点击上方的 共享 -> 特定用户, 添加disk用户,改为 读写 权限 4、在Linux下安装samba-client客户端 # yum install samb
阅读全文
linux 使用systemctl 启动服务报错: Error: No space left on device
摘要:By default, Linux only allocates 8192 watches for inotify, which is ridiculously low. And when it runs out, the error is also No space left on device,
阅读全文
rundeck
摘要:docker run -d -p 4440:4440 -e EXTERNAL_SERVER_URL=http://109.105.4.65:4440 -v/root/rundeck:/var/rundeck --name rundeck -t registry.bst-1.cns.bstjpc.co
阅读全文
cudnn 安装
摘要:ubuntu 下载地址 https://developer.nvidia.com/rdp/cudnn-download 安装教程 http://docs.nvidia.com/deeplearning/sdk/cudnn-install/index.html#axzz4qYJp45J2 To ver
阅读全文
安装nvidia driver
摘要:ubuntu16.04 下载地址 http://www.nvidia.com/Download/index.aspx dpkg -i nvidia-diag-driver-local-repo-ubuntu1604-390.46_1.0-1_amd64.deb apt-get update apt-
阅读全文
centos7 配置dns服务器
摘要:yum install bind //// /etc/named.conf//// Provided by Red Hat bind package to configure the ISC BIND named(8) DNS// server as a caching only nameserve
阅读全文
idea 插件
摘要:https://plugins.jetbrains.com/plugin/4509-statistic
阅读全文
ubuntu 升级内核
摘要:1. 下载源码 www.kernel.org/pub/linux/kernel/v3.x/…,,比如下载到linux-3.14.tar.gz,大约100+M 2.拷贝到/usr/src目录下,用 tar -xvf linux-3.14.tar.gz 命令解压 3.切换至解压后的源码目录下,sudo
阅读全文
idea git 操作
摘要:工作中多人使用版本控制软件协作开发,常见的应用场景归纳如下: 假设小组中有两个人,组长小张,组员小袁 场景一:小张创建项目并提交到远程Git仓库 场景二:小袁从远程Git仓库上获取项目源码 场景三:小袁修改了部分源码,提交到远程仓库 场景四:小张从远程仓库获取小袁的提交 场景五:小袁接受了一个新功能
阅读全文
systemd 配置文件
摘要:[Unit]区块通常是配置文件的第一个区块,用来定义 Unit 的元数据,以及配置与其他 Unit 的关系。它的主要字段如下。 Description:简短描述 Documentation:文档地址 Requires:当前 Unit 依赖的其他 Unit,如果它们没有运行,当前 Unit 会启动失败
阅读全文
diff
摘要:cp /etc/passwd passwd_old cat /etc/passwd| sed -e '4d' -e '6c no six line' > passwd_new [root@mhc regular]# diff passwd_old passwd_new 4d3< adm:x:3:4:
阅读全文
awk
摘要:[root@mhc regular]# last -n 2|awk '{print $1 "\t" $3}'root :0root :0 wtmp Wed [root@mhc regular]# last -n 2|awk '{print $1 "\tlines:" NR "\t columes:"
阅读全文
sed
摘要:删除: [root@mhc regular]# sed '2,5d' num.txt 1678[root@mhc regular]# sed '5d' num.txt 1234678[root@mhc regular]# sed '5,$d' num.txt 1234新增: [root@mhc re
阅读全文
grep
摘要:[root@mhc regular]# cat a.txt|grep gooooooglegoooooogle yes![root@mhc regular]# [root@mhc regular]# [root@mhc regular]# cat a.txt|grep -A2 goooooogleg
阅读全文
aws s3 python sdk
摘要:http://boto3.readthedocs.io/en/latest/reference/services/s3.html#S3.Client.get_object abort_multipart_upload() can_paginate() complete_multipart_uploa
阅读全文
外网访问vmvare
摘要:使用端口映射即可,以tplink wr886n为例, 方法如下: 1、打开浏览器,输入默认ip192.168.0.1回车登录; 2、登录对话框,输入 密码点击确定; 3、点击转发规则--虚拟服务器,点击添加新条目; 4、输入允许访问的内网主机的ip地址、该主机开放的端口号、选择传输协议,点击保存即可
阅读全文
Aws s3 api
摘要:PUT操作的这个实现将一个对象添加到一个bucket中。 您必须具有对bucket的WRITE权限才能向其中添加对象。Amazon S3从不添加部分对象; 如果您收到成功响应,则Amazon S3将整个对象添加到bucket中。Amazon S3是一个分布式系统。 如果它同时收到同一个对象的多个写入
阅读全文
centos7的vsftpd的安装和配置
摘要:安装vsftpd的服务器相关软件 安装vsftpd服务器和客户端 sudo yum install ftp vsftpd 安装一个加密工具 sudo yum install libdb-utils.x86_64 配置vsftpd sudo db_load -T -t hash -f /etc/vsf
阅读全文