摘要:
安装 rbenvgit clone git://github.com/sstephenson/rbenv.git ~/.rbenv# 用来编译安装 rubygit clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build# 用来管理 gemset, 可选, 因为有 bundler 也没什么必要git ... 阅读全文
posted @ 2017-04-23 01:26
罗道义
阅读(295)
评论(0)
推荐(0)
摘要:
查看硬盘:# fdisk -l...Disk /dev/sdb: 274.9 GB, 274877906944 bytes255 heads, 63 sectors/track, 33418 cylinders, total 536870912 sectorsUnits = sectors of 1 * 512 = 512 bytesSector size (logical/physica... 阅读全文
posted @ 2017-04-23 01:26
罗道义
阅读(3266)
评论(0)
推荐(0)
摘要:
线上需要一个https的透明代理,开始打算用nginx,调试了一段时间发现配置较复杂且没有成功。后来用的tinyproxy做的透明代理。安装配置过程就是下载、解压、编译、安装、配置、启动一波流:安装依赖sudo apt-get install asciidoc下载sudo wget https://github.com/tinyproxy/tinyproxy/releases/download/1... 阅读全文
posted @ 2017-04-23 01:25
罗道义
阅读(10083)
评论(0)
推荐(0)
摘要:
切换到 PHP 7 之后,网站的速度大幅提升,不过通常的扩展可能某一个就还没有支持 PHP7Memcached比如说我现在使用了最新的 Ubuntu 16.04,虽然内置了 PHP 7 源,但 memcached 就还没有,不过好在,它已经支持了 PHP 7 ,只是没有源而已,我们手动编译它。要安装 memcached,需要先安装依赖库 libmemcached从这里找到最新的 libmemcac... 阅读全文
posted @ 2017-04-23 01:25
罗道义
阅读(157)
评论(0)
推荐(0)
摘要:
16.04有很多好处。在此不说了这几天来回折腾了各种的云,然后发现国内的都没有16.04 但是ubuntu可以直接在线升级在此记下来升级的过程 不管是腾讯云也好 阿里云也好,或者别的什么云,只要是国内的 几乎都不提供ubuntu16.04的镜像,但是我们可以在线升级下面是过程记录1. 买vps装ubuntu14.04怎么买? 这个就不说 要是都不会买 还是去玩LOL吧下面是重点如果你是阿里云 那... 阅读全文
posted @ 2017-04-23 01:25
罗道义
阅读(1392)
评论(0)
推荐(0)
摘要:
安装nginx首先更新软件包 并且安装nginxsudo apt-get updatesudo apt-get install nginx开放防火墙配置sudo ufw allow 'Nginx HTTP'查看防火墙状态sudo ufw status------------------Status: activeTo Action From... 阅读全文
posted @ 2017-04-23 01:25
罗道义
阅读(1482)
评论(0)
推荐(0)
摘要:
检查安装依赖程序yum install gcc-c++yum install -y tclyum install wget获取安装文件wget http://download.redis.io/releases/redis-2.8.13.tar.gz解压文件tar -xzvf redis-2.8.19.tar.gzmv redis-2.8.19 /usr/local/redis进入目录cd /us... 阅读全文
posted @ 2017-04-23 01:24
罗道义
阅读(136)
评论(0)
推荐(0)
摘要:
第一步 安装最新版本的nginx对于ubuntu16.04而言 直接装就是最新的```sudo apt-get updatesudo apt-get install nginx查看Nginx版本sudo nginx -v16.04默认应该是nginx version: nginx/1.10.0 (Ubuntu)```第二部 修改服务器配置配置文件/etc/nginx/sites-available... 阅读全文
posted @ 2017-04-23 01:24
罗道义
阅读(1662)
评论(0)
推荐(0)
摘要:
以下會示範在 Debian, Ubuntu 及 LinuxMint 分別安裝 MySQL 5.7, 5.6, 5.5 的方法。首先按照需要的安裝的 MySQL 版本, 加入相應的 Repository, 然後用 apt-get 安裝 MySQL:1+ MySQL 5.7$ sudo apt-get install software-properties-common$ sudo add-apt-r... 阅读全文
posted @ 2017-04-23 01:24
罗道义
阅读(1649)
评论(0)
推荐(0)
摘要:
虽然我是搞asp.net的 但是十分欣赏php,php有很多开源的博客程序 比如大名鼎鼎的Wordpress.还有各种独立博客大牛使用的z-blog,以及短小精悍的emblog。 wordpress臃肿不堪,pass!其他的不喜欢,所以就选择国人开发的typecho开源博客系统,优点就是简单好用,支持markdown。 安装typecho需要php环境,这里我使用的是lnmp,服务器采用Vul... 阅读全文
posted @ 2017-04-23 01:23
罗道义
阅读(2408)
评论(0)
推荐(0)

浙公网安备 33010602011771号