ruby php与couchbase,composer,rocketeer
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ruby php与couchbase,composer,rocketeer相关的知识,希望对你有一定的参考价值。
# -*- mode: ruby -*-
# vi: set ft=ruby :
$script = <<SCRIPT
add-apt-repository ppa:ondrej/php
apt-get update
apt-get -y install git mc memcached
apt-get -y install php7.1-cli php7.1-mcrypt php7.1-mysql php7.1-memcached php7.1-dev php-pear php7.1-curl libcouchbase-dev php7.1-bcmath
curl -sS https://getcomposer.org/installer | php -- --filename=composer --install-dir=/usr/local/bin
wget http://rocketeer.autopergamene.eu/versions/rocketeer.phar; chmod +x rocketeer.phar; mv rocketeer.phar /usr/local/bin/rocketeer
wget http://packages.couchbase.com/clients/c/couchbase-csdk-setup
yes | perl couchbase-csdk-setup
pecl install couchbase
rm couchbase-csdk-setup
echo 'extension=couchbase.so' > /etc/php5/mods-available/couchbase.ini; php5enmod couchbase
locale-gen ru_RU.UTF-8
dpkg-reconfigure locales
SCRIPT
# Vagrantfile API/syntax version.
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "ubuntu/trusty64"
config.vm.box_url = "https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.network "private_network", ip: "192.168.100.230"
config.vm.synced_folder "./", "/home/vagrant"
config.vm.provider "virtualbox" do |v|
v.name = "aux"
end
# provisioner config
config.vm.provision "shell", inline: $script
end
以上是关于ruby php与couchbase,composer,rocketeer的主要内容,如果未能解决你的问题,请参考以下文章
在 Elasticsearch 中计算相关性评分与 Couchbase 有何不同?
将 Couchbase 与 Rails 一起使用是个好主意吗?
docker-compos
面试-对python的理解
Memcache升级版:CouchBase的安装配置与使用说明
composer方式安装thinkphp5,安装smarty