Linux & + wait 多进程并发编程

近期优化一个 shell 脚本,通过 shell 多进程并发极大提升了效率,抽象出核心代码记录一下一些注意点,直接注释在代码中,有什么疑问可以评论沟通 :)#!/bin/bash # 运行方式 # bash test.sh # 查看多进程,运行的过程 # watch -d -n 1 'ps aux | grep test.sh | grep -v grep' date pid=$$ # 多

- 阅读全文 -

Linux dd+grep 大文件二分查找

Linux dd 命令用于读取、转换并输出数据。dd 可从标准输入或文件中读取数据,根据指定的格式来转换数据,再输出到文件、设备或标准输出。参数说明(dd --help)Usage: dd [OPERAND]... or: dd OPTION Copy a file, converting and formatting according to the operands. bs=BYT

- 阅读全文 -

centos ntpdate 时间同步

yum install ntpdatentpdate ntp.sjtu.edu.cn # 上海交大的 ntp 服务器vi /etc/sysconfig/clockZONE="Asia/Shanghai" UTC=false # 设置为false,硬件时钟不于utc时间一致 ARC=falseln -sf /usr/share/zoneinfo/Asia/Shanghai

- 阅读全文 -

vim 插件管理 Vundle

vim 插件管理 Vundle [https://github.com/VundleVim/Vundle.vim]:1.下载 Vundle 仓库git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim2.vim ~/.vimrc 在最上面,添加以下配置" =================

- 阅读全文 -

php 性能分析工具 xhprof

php 安装 xhprof 扩展 (兼容php5、7)https://github.com/longxinH/xhprofgit clone git@github.com:longxinH/xhprof.git cd xhprof/extension/ /usr/local/php7/bin/phpize ./configure --with-php-config=/usr/local/php7

- 阅读全文 -

centos 6 常用 yum 源

背景出现如下情况,说明本地 yum 源出现问题[root@www download]# yum install -y gcc Loaded plugins: fastestmirror Determining fastest mirrors YumRepo Error: All mirror URLs are not using ftp, http[s] or file. Eg. Invalid

- 阅读全文 -

centos 6 编译安装 git 2.18.0

先用 yum 安装依赖yum install curl-devel expat-devel gettext-devel openssl-devel zlib-develyum install gcc perl-ExtUtils-MakeMaker卸载 centos自带的 git 1.7.1通过 git –version 查看系统带的版本,cento6.5 应该自带的是 git 版本是 1.7.1y

- 阅读全文 -

centos 7 安装最新版 docker

前提: 系统需要 centos 7, 内核版本大于 3.10 (uname -a)删除旧版 docker 镜像旧版 docker 是 1.13 或之前的版本,要升级到最新版 docker,将这些镜像文件全部删除,否则升级以后旧的镜像将无法正常删除,如果升级前没有删除,升级后发现删除不了,最粗暴的方式 rm -rf /var/lib/docker 不过,请一定谨慎使用!!!确保镜像和数据是已备份或能

- 阅读全文 -

最新文章

最近回复

  • weich: 更新一下文章吧,链接里面跑路了,都成破财网站了,卖了?还是你开的。。
  • weich: 不对,密码是生成的授权码吧,不是登录密码。
  • jiyouzhan: 这篇文章写得深入浅出,让我这个小白也看懂了!
  • Ryan: PHP 的数组虽然随便,但是你传入的可以是 Class,如果是C...
  • 小白: 站点名称: 理想技术网站点地址: https://im1.cc站...
  • : 您好,我使用了您的插件,在设置qq的SMTP时,提示SMTP连接...
  • Jayden: 申请!链接:https://xxu.do站点标题: Jayden...
  • 保罗: 笑死,我也经常会在编程中被这种小而多的小问题给折腾着
  • zgcwkj: 插件挺好的,可惜有些服务器封了端口,没办法发邮件。
  • zgcwkj: docker 只是环境提前配置好了。不过跨平台就不存在吧,只能l...

标签

其它