virtualbox 导入 cloudera quickstart vbox 镜像失败

下载cloudera quickstart virtualbox 镜像文件之后,双击cloudera-quickstart-vm-5.8.0-0-virtualbox.ovf 导入到virtualbox,出现异常类似“<vbox:Machine> element in OVF contains a medium attachment for the disk image 0cabb6f4-xxx »

cp 排除.svn等指定目录

cp -rf /a /b 会把/a下面的隐藏目录都copy到/b,如果在项目部署,想把.svn目录过滤掉,可以通过rsync命令,如下: sudo rsync --exclude=.svn pubsent_trunk/ pubsent_v3.5/ -rv 把pubsent_trunk目录下的文件copy到pubsent_v3.5目录下, »

linux 根据端口查询进程

1、使用netstat -ntlp 查询对应的端口号 2、lsof -Pnl +M -i4 | grep 55219(端口号)查询对应的进程ID 3、ps -ef | grep 32689(进程ID)查找对应的进程 »

linux diff 小工具

diff mid1.txt mid2.txt | grep " 此命令作用是找出mid1.txt与mid2.txt中不同的MID,并拼接为相应的微博URL地址 »

composer SSL 错误解决办法

composer self-update 报如下错误: [Composer\Downloader\TransportException] The "https://getcomposer.org/version" file could not be downloaded: SSL operation failed with code 1. OpenSSL Error messages: error: »

PHP mcrypt 实现对称加密(DES)算法

class DesUtils{ private $key; private $td; private $ks; public function __construct($key){ $this->key = $key; /* 打开加密算法和模式 */ $this->td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ »

PHP mcrypt 实现对称加密(AES)算法

class Security { public static function encrypt($input, $key,$ivstr) { $size = mcrypt_get_block_size(MCRYPT_RIJNDAEL_128, MCRYPT_MODE_CBC); $input = Security::pkcs5_pad($input, $size) »

Welcome to Ghost

You're live! Nice. We've put together a little post to introduce you to the Ghost editor and get you started. You can manage your content by »