目前常用虛擬化三大軟體不外乎Esxi 5.5,XenServer-6.5,Hyper-V Server2012 R2,而他們用戶端連線管理程式分別為:VMware vSphere Client,Citrix XenCenter,Hyper-V管理員.
這次把操作過的簡易心得提出,當然XenServer跟Hyper-V需要更多時間才能上手,所以是拿Esxi跟這兩套相比較.
心得如下:
1.Esxi不愧是虛擬伺服器上的王者,在操作使用跟安裝完後擴充上容易,缺點:網卡要求很高,一般都建議使用Intel的網卡.
2.XenServer的不方便地方在於建立虛擬伺服器時如果選擇iso安裝的話需要先建立一個公用資料夾,再分享iso檔案,接著使用內網傳輸方式安裝,這點對於用慣Esxi的人來說很痛苦阿,好處是不用刪除上傳iso檔,另外建立虛擬伺服器只有CPU,RAM能設定,日後擴充上實在很麻煩.
3.Hyper-V在管理上只能透過Hyper-V管理員,在Windows 7上都需要額外安裝,而且Hyper-V Server2012 R2這個版本只能用Windows 8來管理,採用相同OS核心才能管理,因為很重要所以要說三次,比起上述兩個來說也太麻煩了吧,好處是微軟的遠端桌面真的很好用阿.
以上,後續心得在找時間補上.
2015年3月10日 星期二
2015年3月5日 星期四
CentOS上安裝Laravel 4開發環境
rpm -Uvh http://download.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo yum --enablerepo=remi install httpd -y
sudo service httpd start
sudo yum --enablerepo=remi install php php-mysql -y
yum search php-
sudo yum --enablerepo=remi install php-mcrypt -y
sudo yum --enablerepo=remi install mysql-server -y
sudo service mysqld start
sudo /usr/bin/mysql_secure_installation
sudo chkconfig httpd on
sudo chkconfig mysqld on
curl -k -sS https://getcomposer.org/installer | php
echo $PATH
sudo mv composer.phar /usr/local/bin/composer
wget https://github.com/laravel/laravel/archive/develop.zip
which unzip
sudo yum install unzip -y
sudo unzip develop
sudo mv laravel-develop /var/www/yoursite
sudo rm -f develop
cd /var/www/yoursite
composer install
sudo chmod 775 /var/www/yoursite/app/storage
sudo vi /etc/httpd/conf/httpd.conf最後一行加入下列
<VirtualHost *:80>
ServerName yoursite.com
DocumentRoot /var/www/yoursite/public
<Directory /var/www/yoursite/public>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
</Directory>
</VirtualHost>
sudo service httpd restart
參考連結:https://www.digitalocean.com/community/tutorials/how-to-install-laravel-4-on-a-centos-6-vps
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
sudo yum --enablerepo=remi install httpd -y
sudo service httpd start
sudo yum --enablerepo=remi install php php-mysql -y
yum search php-
sudo yum --enablerepo=remi install php-mcrypt -y
sudo yum --enablerepo=remi install mysql-server -y
sudo service mysqld start
sudo /usr/bin/mysql_secure_installation
sudo chkconfig httpd on
sudo chkconfig mysqld on
curl -k -sS https://getcomposer.org/installer | php
echo $PATH
sudo mv composer.phar /usr/local/bin/composer
wget https://github.com/laravel/laravel/archive/develop.zip
which unzip
sudo yum install unzip -y
sudo unzip develop
sudo mv laravel-develop /var/www/yoursite
sudo rm -f develop
cd /var/www/yoursite
composer install
sudo chmod 775 /var/www/yoursite/app/storage
sudo vi /etc/httpd/conf/httpd.conf最後一行加入下列
<VirtualHost *:80>
ServerName yoursite.com
DocumentRoot /var/www/yoursite/public
<Directory /var/www/yoursite/public>
<IfModule mod_rewrite.c>
Options -MultiViews
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
</Directory>
</VirtualHost>
sudo service httpd restart
參考連結:https://www.digitalocean.com/community/tutorials/how-to-install-laravel-4-on-a-centos-6-vps
2015年3月1日 星期日
Mac OSX(Mavericks)上執行Android Studio出現unable to find a valid jvm時的解決方式
在終端機下輸入下列指令
確認Mac OSX的Java版本
確認Mac OSX的Java版本
$java -version
java version "1.8.0_25"
Java(TM) SE Runtime Environment (build 1.8.0_25-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)
指定JDK路徑
$ export STUDIO_JDK=/Library/Java/JavaVirtualMachines/jdk1.8.0_25.jdk
重新開啟Android Studio
$ open /Applications/Android\ Studio.app
參考連結:http://stackoverflow.com/questions/20925253/android-studio-failed-to-load-jvm-on-mac-osx-mavericks
2015年1月31日 星期六
[心得]Docker install Windows&Mac OS X
之前有提過的Docker最近出了支援Windows&Mac OSX雙版本的安裝套件
Windows版下載連結:https://github.com/boot2docker/windows-installer/releases/tag/v1.4.1
Mac OSX版下載連結:https://github.com/boot2docker/osx-installer/releases/tag/v1.4.1
以上安裝套件前請確認您的作業系統為64位元版本,接著快樂的享用Docker吧.
Windows版下載連結:https://github.com/boot2docker/windows-installer/releases/tag/v1.4.1
Mac OSX版下載連結:https://github.com/boot2docker/osx-installer/releases/tag/v1.4.1
以上安裝套件前請確認您的作業系統為64位元版本,接著快樂的享用Docker吧.
[筆記]Corona SDK的第一個程式
Corona SDK支援Apple跟android雙平台,算的上是好上手的開發程式,但是請考慮圖片、影片跟聲音的授權問題,還有該平台版本的尺寸問題,下面的範例程式只是入門,要更精進就要大家一起用力學習了.
--note:Printing "Hello World!" on command
print("Hello World")
--note:Displaying "Hello World!" on GUI
local text = display.newText("Hello World", 325, 325, "Arial", 48 )
--note:Setting Text Color
text:setTextColor( 255,255,255 )
--note:display button
local button = display.newImage("button.png")
button.x = display.contentWidth / 2
button.y = display.contentHeight - 550
--note:Basic Interactivity
function screenTap()
local r = math.random( 0, 100 )
local g = math.random( 0, 100 )
local b = math.random( 0, 100 )
text:setFillColor( r/100, g/100, b/100 )
end
--note:Event Listener
display.currentStage:addEventListener( "tap", screenTap )
--note:sound player
transition.to(textO,{ time=1000, y=text.y+100 })
function button:tap( event )
local r = math.random( 0, 255 )
local g = math.random( 0, 255 )
local b = math.random( 0, 255 )
text:setTextColor(r,g,b )
media.playEventSound("test.mp3")
end
button:addEventListener("tap",button )
--note:Printing "Hello World!" on command
print("Hello World")
--note:Displaying "Hello World!" on GUI
local text = display.newText("Hello World", 325, 325, "Arial", 48 )
--note:Setting Text Color
text:setTextColor( 255,255,255 )
--note:display button
local button = display.newImage("button.png")
button.x = display.contentWidth / 2
button.y = display.contentHeight - 550
--note:Basic Interactivity
function screenTap()
local r = math.random( 0, 100 )
local g = math.random( 0, 100 )
local b = math.random( 0, 100 )
text:setFillColor( r/100, g/100, b/100 )
end
--note:Event Listener
display.currentStage:addEventListener( "tap", screenTap )
--note:sound player
transition.to(textO,{ time=1000, y=text.y+100 })
function button:tap( event )
local r = math.random( 0, 255 )
local g = math.random( 0, 255 )
local b = math.random( 0, 255 )
text:setTextColor(r,g,b )
media.playEventSound("test.mp3")
end
button:addEventListener("tap",button )
2015年1月21日 星期三
2014年12月29日 星期一
訂閱:
文章 (Atom)