fc2ブログ

2014-05-18(Sun)

JDK 1.8をインストール Ubuntu14.04LTS

Ubuntu Version確認

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 14.04 LTS
Release: 14.04
Codename: trusty



JDK 1.8のインストール

$ sudo add-apt-repository ppa:webupd8team/java
$ sudo apt-get update
$ sudo apt-get -y install oracle-java8-installer
$ sudo apt-get -y install oracle-java8-set-default
$ java -version
java version "1.8.0_05"
Java(TM) SE Runtime Environment (build 1.8.0_05-b13)
Java HotSpot(TM) 64-Bit Server VM (build 25.5-b02, mixed mode)


スポンサーサイト



2014-04-15(Tue)

Vagrantを動かしてみる Ubuntu12.04 LTS

やっと動いたのでVagrantを動かしてみる。

ここに沿って動かしてみる。

SSH

$ vagrant ssh
Welcome to Ubuntu 12.04 LTS (GNU/Linux 3.2.0-23-generic-pae i686)


ブラウザでphpmyadminを見る

http://localhost:55555/phpmyadmin/


Vagrant 停止

$ vagrant halt


Vagrant データ破棄

$vagrant destroy


仮想サーバーreload

$ vagrant reload



2014-04-14(Mon)

VirtualBoxを動かす Ubuntu12.04 LTS

最終的にこれがしたい。
Ubuntu 12.04 Vagrant + Laravel4.1 + PHP 5.5.
Vagrant upで動かしてみる。

http://localhost:8888
でアクセスできると記載されているがつながらないのでvagrant reloadすると55555になっていた。

$ vagrant reload
==> laravel4: Attempting graceful shutdown of VM...
==> laravel4: Clearing any previously set forwarded ports...
==> laravel4: Clearing any previously set network interfaces...
==> laravel4: Preparing network interfaces based on configuration...
laravel4: Adapter 1: nat
==> laravel4: Forwarding ports...
laravel4: 22 => 2222 (adapter 1)
laravel4: 80 => 55555 (adapter 1)
laravel4: 3306 => 55556 (adapter 1)
laravel4: 5432 => 55557 (adapter 1)
==> laravel4: Booting VM...
==> laravel4: Waiting for machine to boot. This may take a few minutes...
laravel4: SSH address: 127.0.0.1:2222
laravel4: SSH username: vagrant
laravel4: SSH auth method: private key
laravel4: Warning: Connection timeout. Retrying...
laravel4: Warning: Connection timeout. Retrying...
laravel4: Warning: Connection timeout. Retrying...
==> laravel4: Machine booted and ready!
==> laravel4: Checking for guest additions in VM...
laravel4: The guest additions on this VM do not match the installed version of
laravel4: VirtualBox! In most cases this is fine, but in rare cases it can
laravel4: prevent things such as shared folders from working properly. If you see
laravel4: shared folder errors, please make sure the guest additions within the
laravel4: virtual machine match the version of VirtualBox you have installed on
laravel4: your host and reload your VM.
laravel4:
laravel4: Guest Additions Version: 4.2.0
laravel4: VirtualBox Version: 4.3
==> laravel4: Setting hostname...
==> laravel4: Mounting shared folders...
laravel4: /vagrant => /home/gabriel/laravel/Laravel4-Vagrant
laravel4: /var/www => /home/gabriel/laravel/Laravel4-Vagrant/www
laravel4: /tmp/vagrant-puppet-2/manifests => /home/gabriel/laravel/Laravel4-Vagrant/puppet/manifests
laravel4: /tmp/vagrant-puppet-2/modules-0 => /home/gabriel/laravel/Laravel4-Vagrant/puppet/modules
==> laravel4: VM already provisioned. Run `vagrant provision` or use `--provision` to force it


これでいつものLaravelの初期画面が表示された。
http://localhost:55555/

参考:

2014-04-13(Sun)

Vagrant boxセットアップ(1) Ubuntu12.04 LTS

最終的にこれがしたい。
Ubuntu 12.04 Vagrant + Laravel4.1 + PHP 5.5.
基本的なパッケージのインストールが終わったのでやっとlaravel-boxのインストール。

$ git clone git://github.com/HiroKws/Laravel4-Vagrant.git



$ cd Laravel4-Vagrant/
$ vagrant up
Bringing machine 'laravel4' up with 'virtualbox' provider...
There are errors in the configuration of this machine. Please fix
the following errors and try again:

vm:
* The 'extra' flag on synced folders is now 'mount_options'


上記エラーが発生した。
原因は./wwwのパーミッション設定らしい。
以下のとおり修正すると動く。

$ vim Vagrantfile
(修正前)
lv4_config.vm.share_folder("www", "/var/www", "./www", :extra => 'dmode=777,fmode=777')
(修正後)
lv4_config.vm.share_folder("www", "/var/www", "./www", :mount_options => ["dmode=777","fmode=777"])
config.vm.share_folder("./www",:mount_options => ["dmode=777","fmode=777"])


初回Vagrant upは結構時間がかかる。仮想Boxイメージを取得するらしい。


参考:
【Vagrant】The 'extra' flag on synced folders is now 'mount_options'の対処法
RCMS開発日誌
[AWS][DevOps] Vagrant+Chef Solo+BerkshelfでEC2インスタンスにnginxを入れる

2014-04-07(Mon)

Vagrantのインストール Ubuntu12.04 LTS

最終的にこれがしたい。
Ubuntu 12.04 Vagrant + Laravel4.1 + PHP 5.5.
と始めて第二段。
今日はVagrantのインストール。

ここ(Download Vagrant)でダウンロードする。

$ wget https://dl.bintray.com/mitchellh/vagrant/vagrant_1.5.2_x86_64.deb
# Vagrant Packageのインストール
$ dpkg -i vagrant_1.5.2_x86_64.deb


参考:
Vagrant Download

プロフィール

kumagonjp2

Author:kumagonjp2
Python,Django,R,Mongo,MySQL,Struts,Spring,データマイニングなどサーバー関係のメモを残していきます。

最新記事
最新コメント
最新トラックバック
月別アーカイブ
カテゴリ
雪が3Dで降るブログパーツ ver2

マウスで見る方向変えられます

検索フォーム
RSSリンクの表示
リンク
ブロとも申請フォーム

この人とブロともになる

QRコード
QR