-凯发k8国际

`
jickcai
  • 浏览: 236198 次
  • 性别:
  • 来自: 北京
博主相关
  • 博客
  • 微博
  • 相册
  • 收藏
  • 社区版块
    • ( 0)
    • ( 0)
    • ( 0)
    存档分类
    最新评论
    文章列表

    ftp 配置

      博客分类:
    • web
    配置目录 /usr/local/proftp/etc/proftpd.passwd 配置文件   /usr/local/proftp/etc/proftpd.conf     servername "proftpd" servertype standalone defaultserver on   timesgmt off # port 21 is the standard ftp port. port 21 # umask 022 is a good standard umask to prevent new dirs and file ...

    icoding go 环境

     
      launch.json { // use intellisense to learn about possible attributes. // hover to view descriptions of existing attributes. // for more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations&quo ...

    visual studio code

     
    常用快捷键 批量注释 完成注释:首先用鼠标选中多行,然后先按ctrl k,再按下ctrl c首先用鼠标选中多行,然后先按ctrl k,再按下ctrl c 取消注释:首先用鼠标选中多行,然后先按ctrl k,再按下ctrl u用鼠标选中多行,然后先按ctrl k,再按下ctrl u (一) 代码格式化: 快捷键:shift option f (二)选中方法,跳进方法   快捷键:command 鼠标左键 (三)选中方法进行查看方法实用位置 快捷键:command d (四)剪切/张贴/复制 快捷键:command x/c/v (五)打开文件 快捷键 ...

    samba

    1. 背景 忘记了qa236机器的samba密码。   2. 基本条件 root权限。   3. 安装 3.1 查看安装状况 rpm -qa | grep samba   3.2 安装 3.2.1 yum yum install samba samba-client samba-swat 3.2.2 手动   凯发k8国际娱乐官网入口的解决方案: 新开一个samba账户。 1.centos安装samba yum install samba samba-client samba-swat rpm -qa |grep samba #查看安装状况 /etc/init.d/smb res ...

    rsync

      博客分类:
    • sh
    一、rsync 概述 rsync 是类 unix 系統下的数据镜像备份工具,一款支持快速完全备份和增量备份的工具,支持本地复制,远程同步等,类似于 scp 命令;rsync 命令在同步文件之前要先登录目标主机进行用户身份认证,认证过后才能进行数据同步,身份认证方式取决于所使用的协议类型,rsync 一般使用两种协议进行数据同步;ssh 协议 和 rsync 协议。 二、rsync 特性   能更新整个目录树和文件系統 有选择的保留符号链接、硬链接、文件属性、权限、设备、及时间等。 对于安装来说,无特殊权限要求。 对于多个文件来说,文件传输效率高。 能用 ssh 或自定义端口作为 ...

    spark 抽样

      博客分类:
    • web
     use sessiondb;  set num_sample = 30; create external table task_samples ( date_str string, task_id string, review_type string, task_type string, score string, user_name string ) row format delimited fields terminated by '\t' location "afs://dd.afs.baidu.com:9902/user/xx/sp-cbr ...

    awk 输出单引号

      博客分类:
    • sh
    awk 
     echo aaa | awk '{print "select * from a where name='\''tom'\''"}'     /home/work/text.txt | awk -f "\t" '{ id=$1 sql="update table set review_status=2,sub_type=92,batch_id='\'''\'' where sub_type=94 and id='\''"id"'\'';"   print sql ...

    nginx反向代理

     nginx作为web服务器一个重要的功能就是反向代理。  nginx反向代理的指令不需要新增额外的模块,默认自带proxy_pass指令,只需要修改配置文件就可以实现反向代理。 配置前的准备工作,后端跑apache服务的ip和端口,也就是说可以通过http://ip:port能访问到你的网站。 nginx 新增配置 upstream apachephp {     server 11.101.115.192:8085; #apache } server {     listen 8185;     server_name test.126.com;     access_log “/ ...

    curl 代理访问

    curl -x 10.200.33.113:8443  -l   -h "content-type: application/json" -x post -d '{"cinemacode":"5101","sessionid":"460"}'  http://test.api.cfilmcloud.cn/info/sessionseat   -x : 代理服务器 -h: 表头协议 -d: 数据

    php curl 代理

      博客分类:
    • php
     

    shell date 日期转换

      博客分类:
    • sh
    shell date 日期转换date参数说明-d, --date=string              显示字符串指定的时间,并非当前时间其他参数通过下面的实例就可以看出其用法了比如:%y    2010    (年份,四位)            %m    月份            %d ...
    1. 查找进程      ps aux | grep 'php'       www       8794  0.0  0.0 281860  9440 ?        s    jun18   0:00 php-fpm: 2. 监控       strace  -p  8794

    vim 操作技巧

    vim可视模式插入一列:      按键ctrl-v进入可视模式      选择一列      按键shift i      输入要插入的字符      按键esc

    python 取日期

    #!/usr/bin/env python #2天前  ctime = time.strftime('%y%m%d',time.localtime(time.time()-2*24*60*60)) print ctime    #1天前  ctime = time.strftime('%y%m%d',time.localtime(time.time()-1*24*60*60)) print ctime    #当天  ctime = time.strftime('%y%m%d',time.localtime(time.time())) print ctime 
     rsync 同步服务器文件 信息: 日志接收地址: r2.data.com.cn 日志接收模块: articles  模块认证用户: user  认证用户密码: abc 其中 chmod 600 pass.txt 示例: rsync -vuzrtopg  --password-file=/usr/home/tag/pass.txt  --progress  user@r2.data.com.cn::articles   /usr/home/tag/tmp
    global site tag (gtag.js) - google analytics
    网站地图