luodaoyi's Blog

能用就行

精通ASM/C/C++/RUST/C#/Java/JavaScript/Python/Golang/ruby 的Hello World 编写。

luodaoyisince 2014 211 篇文章

Ubuntu 16.04 为 PHP7 添加 memcached 以及 redis 扩展

切换到 PHP 7 之后,网站的速度大幅提升,不过通常的扩展可能某一个就还没有支持 PHP7 Memcached 比如说我现在使用了最新的 Ubuntu 16.04,虽然内置了 PHP 7 源,但 memcached 就还没有,不过好在,它已经支持了 PHP 7 ,只是没有源而已,我们手动编译它。 要安装 memcached,需要先安装依赖库 …

Mysql常用命令

导入sql文件 在MySQL命令行中中直接导入*.sql脚本,在mysql中执行sql文件的命令: mysql> source /root/db.sql; 增加用户 格式: grant select on 数据库.* to 用户名@登录主机 identified by "密码" 例1、 增加一个用户`test1`密码为`abc`,让他可以在任何主机上登录,并 …

部署tinyproxy透明代理服务

线上需要一个https的透明代理,开始打算用nginx,调试了一段时间发现配置较复杂且没有成功。后来用的tinyproxy做的透明代理。安装配置过程就是下载、解压、编译、安装、配置、启动一波流: 安装依赖 sudo apt-get install asciidoc 下载 sudo wget …

Windows GVLK密钥对照表(KMS激活专用

以下key来源于微软官网:https://technet.microsoft.com/en-us/library/jj612867.aspx Windows Server 2016 操作系统 KMS激活序列号 Windows Server 2016 Datacenter CB7KF-BWN84-R7R2Y-793K2-8XDDG Windows …

Ubuntu下的OpenResty 安装

安装前的准备 您必须将这些库 perl 5.6.1+, libreadline, libpcre, libssl安装在您的电脑之中。 对于 Linux来说, 您需要确认使用 ldconfig 命令,让其在您的系统环境路径中能找到它们。 Debian 和 Ubuntu 用户 推荐您使用 apt-get安装以下的开发库: apt-get install …

激活

自己经常用,做个备份 Emeditor激活码 DMAZM-WHY52-AX222-ZQJXN-79JXH Version 18.9.12 使用正常! VS2010 版本 密钥 旗舰版 YCFHQ-9DWCY-DKV88-T2TMH-G7BHP VS2012 版本 密钥 Microsoft Visual Studio Ultimate 2012 旗舰版 …

Ubuntu16.04阿里云源

16.04源 deb http://mirrors.aliyun.com/ubuntu/ xenial main restricted universe multiverse deb http://mirrors.aliyun.com/ubuntu/ xenial-security main restricted universe multiverse …

ubuntu 添加新硬盘

查看硬盘: # fdisk -l ... Disk /dev/sdb: 274.9 GB, 274877906944 bytes 255 heads, 63 sectors/track, 33418 cylinders, total 536870912 sectors Units = sectors of 1 * 512 = 512 bytes Sector …

ubuntu 上的ruby安装

安装 rbenv git clone git://github.com/sstephenson/rbenv.git ~/.rbenv # 用来编译安装 ruby git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build # 用来管理 gemset, 可选 …