<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-1872724577421122730</id><updated>2024-09-26T21:20:59.968-07:00</updated><category term="數字觀察"/><category term="核心觀念"/><category term="實驗室環境"/><category term="年報"/><category term="數字實驗室"/><category term="貨幣觀察"/><title type='text'>財富自由--價格分析歷程</title><subtitle type='html'>站在巨人的肩膀上，學習巴菲特價值投資法是件非常有趣的事情，透過重要觀念的熟知及分析，配合風險資金控管，加上長期的耐心及堅持，對於股票的投資應該是有趣且可獲利的方法。這些知識都閱讀學習而來，但藉由撰寫及分享，並應用於公司財務報表的分析上是一件有趣且值得的事，也希望能透過這樣的一小步，邁向財富自由的最終目標。</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-9138912470888137148</id><published>2019-11-19T00:27:00.000-08:00</published><updated>2019-11-28T23:39:23.836-08:00</updated><title type='text'>使用Rancher 安裝及驗證k8s的記錄(一)：透過rancher的來納管mimikub</title><content type='html'>話說最近k8s越來越紅，而自己對於此新的服務應用方法也越來越有感，因此想要進行一下測試，以下是我自己想要測試的方向：&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;透過rancher來管理一般cent 7上的docker服務(看起來從rancher變為2.x版本後就不行單獨納管非k8s環境下的容器囉)&lt;/li&gt;
&lt;li&gt;透過rancher的來納管mimikub&lt;/li&gt;
&lt;li&gt;透過rancher來在cent 7上透過RKE來安裝k8s模組&lt;/li&gt;
&lt;li&gt;測試rancher os&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
&lt;u&gt;&lt;b&gt;前置作業：&lt;/b&gt;&lt;/u&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;因為我在iMAC上測試，整體環境需要進行以下軟體安裝&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;virtual box。並進行host only設定，作法請參考&lt;a href=&quot;https://valueinvetorproject.blogspot.com/2019/11/mac-virtualbox-6012-cmdhost-only.html&quot; target=&quot;_blank&quot;&gt;這裏&lt;/a&gt;。&lt;/li&gt;
&lt;li&gt;docker desktop。可以到docker官方網站下載即可&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;依據Rancher官方網站的建議，測試驗證的時候相關主機都要有固定的IP，因此不建議使用DHCP模式。&lt;span style=&quot;font-size: x-small;&quot;&gt;&lt;i&gt;--Each node used should have a static IP configured, regardless of whether you are installing Rancher on a single node or on an HA cluster. In case of DHCP, each node should have a DHCP reservation to make sure the node gets the same IP allocated.--&lt;/i&gt;&lt;/span&gt;&lt;/li&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;span data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;background-color: cyan;&quot;&gt;&lt;u&gt;目標：安裝RancherOS+Rancher&amp;nbsp; + K8s minikub&lt;/u&gt;&lt;/span&gt;&lt;br /&gt;
使用RancherOS安裝Rancher、k8s minikub，並管理一個非k8s的docker(這個功能在Rancher 2.x版本好像不見囉，不能單獨管理container，而都必須變成k8s的模式來納管)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;架構簡圖&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyCyfGtUT1Y5TQuHMo66PtdKfVZ4hesWQl1UDqKudhyphenhyphengRA-4R25vz4T9WzAm6PAPMoUtxl9CrnPifovYovZyEhXBXK6J70gEFX8Ya34FvJ2apeAfFzTRErntYp5MxDzxmHFhtqzGJufDk/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258A%25E5%258D%258811.15.24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1040&quot; data-original-width=&quot;1450&quot; height=&quot;229&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyCyfGtUT1Y5TQuHMo66PtdKfVZ4hesWQl1UDqKudhyphenhyphengRA-4R25vz4T9WzAm6PAPMoUtxl9CrnPifovYovZyEhXBXK6J70gEFX8Ya34FvJ2apeAfFzTRErntYp5MxDzxmHFhtqzGJufDk/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258A%25E5%258D%258811.15.24.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;span data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;background-color: cyan;&quot;&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;安裝RancherOS&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;透過docker machine指定安裝RancherOS，執行以下的指令後就會在virtual box上出現一個名為Rancher-machine的vm。安裝後可以透過ip addr show來確認guest os所得到的IP。並自Host OS上確認能否ping 到此guest os。指令如下：&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;background-color: cyan;&quot;&gt;docker-machine create -d virtualbox \--virtualbox-boot2docker-url https://releases.rancher.com/os/latest/rancheros.iso \--virtualbox-memory 3072 \rancher-machine&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLwhEXoiZWSSar4Kqng6_OSc8W_OWz5FEsIfmrhYVDOE_XtNaGTCcTBP2s9fXB80DJi1Kjj0TOJU7cwSmMgRBjWDZIpyIzqbSeUV8H6WBTmSaIZjMVRKb68CuEpwtkhBm56fKCjP9O4yg/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-15+%25E4%25B8%258A%25E5%258D%258811.49.44.png&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjLwhEXoiZWSSar4Kqng6_OSc8W_OWz5FEsIfmrhYVDOE_XtNaGTCcTBP2s9fXB80DJi1Kjj0TOJU7cwSmMgRBjWDZIpyIzqbSeUV8H6WBTmSaIZjMVRKb68CuEpwtkhBm56fKCjP9O4yg/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-15+%25E4%25B8%258A%25E5%258D%258811.49.44.png&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
Virtual Box會自動新增加這個vm，並且自動啟動&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;修改Ranchor OS的網路設定指令(哈，我沒有設定成功)，請參考&lt;a href=&quot;https://rancher.com/docs/os/v1.x/en/installation/networking/interfaces/&quot;&gt;這裡&lt;/a&gt;。&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;sudo ros config set rancher.network.interfaces.eth1.address 192.168.10.21/24&lt;/li&gt;
&lt;li&gt;sudo ros config set rancher.network.interfaces.eth1.gateway 192.168.10.1&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;還有一種直接到/Users/{&lt;u&gt;&lt;i&gt;UserAccount&lt;/i&gt;&lt;/u&gt;}/Library/VirtualBox目錄裡，修改VirtualBox.xml檔案，直接將DHCP Server分配的IP網段作修改，但請記得修改的時候VM是要在關機的狀態喔。&lt;/li&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;li&gt;關於Ranchor OS這個專門為Docker 特製的作業系統很有意思，可以讓整個系統的負擔是最輕的，再red hat的open shift 4.0也是走向這意的模式，系統只有提供最精簡的功能，其他所有功能的附加都是透過docker來載入。但，相對的就不像你所熟悉的cent os，如果遇到需要修正 或 更版的作業需求時，就必須要等待Rancher os的更新，有好有壞。自己覺得可能還是使用cent OS，這樣雖然耗損一些資源，但是卻可以讓整個系統的管理及運作更一致性。 另外，如果要讓系統可以透過ansible進行供裝的話，這個也是一個很重要的考量點，感覺如果使用Ranchor OS的話，還要花費許多時間來學習。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;安裝Rancher&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;ssh到docker machine。指行docker-machine ssh rancher-machine指令，透過SSH登入到vm內。&lt;/li&gt;
&lt;li&gt;進行Racher的docker image安裝及運作&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 18px;&quot;&gt;&lt;span style=&quot;font-size: 18px;&quot;&gt;。&lt;/span&gt;&lt;/span&gt;&lt;span data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;background-color: cyan;&quot;&gt;sudo docker run -d --restart=unless-stopped -p 80:80 -p 443:443 -v /var/lib/rancher/:/var/lib/rancher/ rancher/rancher&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;執行完成後，你就可透過瀏覽器登入，並設定admin的密碼。另外還有一個重點，就是系統需要你確認http://192.168.99.xx的網址是可以讓所有Rancher agent可以連接到的，所以在初始的環境建制上，建議大家先有所安排。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMLIXak324sg70lKTE2QfKF1ady428rX_0FioSxvaaTL8S-tK6KsyuYjW31_qAANWU6i_1hfLM-kgypMJP-sdgv9VDcJi0VgaMOujCke5KSlzyzsdbA2XkRVmaXMKFrqvR8JJq-G0mLQs/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-15+%25E4%25B8%258B%25E5%258D%25881.56.43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1504&quot; data-original-width=&quot;1600&quot; height=&quot;300&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMLIXak324sg70lKTE2QfKF1ady428rX_0FioSxvaaTL8S-tK6KsyuYjW31_qAANWU6i_1hfLM-kgypMJP-sdgv9VDcJi0VgaMOujCke5KSlzyzsdbA2XkRVmaXMKFrqvR8JJq-G0mLQs/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-15+%25E4%25B8%258B%25E5%258D%25881.56.43.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Hello to Rancher ＾＿＾&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;b&gt;&lt;u&gt;安裝k8s minikub&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;使用Mac的環境，所以可以直接透過brew來安裝minikube，指令：&lt;span data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;background-color: cyan;&quot;&gt;brew install minikube&lt;/span&gt;，&lt;a href=&quot;https://minikube.sigs.k8s.io/docs/start/macos/&quot; target=&quot;_blank&quot;&gt;官方網址&lt;/a&gt;。然後再透過virtual box來運行minikube，指令：&lt;span data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;background-color: cyan;&quot;&gt;minikube start --vm-driver=virtualbox，minikube config set vm-driver virtualbox&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;指令執性後會進行VM的產生，接著minikube會開始下載kubelet、kubeadm等工具，並將整個k8s環境開啟。&lt;/li&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf4pVhK2aGNb6rsqakDS6P57LFhgDej-Vv1RrXb7aFwdMZu4hsyD785KlA5tSofjfMOkSrZ6jPvHWOgbgBrrMLcLijGRcWWAdDM4WVhtXia9qjVe8gNPq-BOHU2DmIjrNPlCmg5phOHZE/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25883.42.24.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;440&quot; data-original-width=&quot;1600&quot; height=&quot;108&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjf4pVhK2aGNb6rsqakDS6P57LFhgDej-Vv1RrXb7aFwdMZu4hsyD785KlA5tSofjfMOkSrZ6jPvHWOgbgBrrMLcLijGRcWWAdDM4WVhtXia9qjVe8gNPq-BOHU2DmIjrNPlCmg5phOHZE/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25883.42.24.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;指令執行後會顯示的進度畫面，看到這個就代表成功完成minikube安裝囉&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;開始的時候我一直搞不請楚環境上的安裝是如何運作的，明明就是要透過virtual box來安裝minikube，為何需要在mac上安裝minikue的軟體呢？我自己是認為minikube可以直接在mac上進行些指令及操作，雖然實際的vm是在virtualbox上。&lt;/li&gt;
&lt;li&gt;簡單的執行指令kubectl get po -A，確認有抓到相關POD的執行情況&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM5dQj846GMgJBXahTo6X_S-1ldYcRwFiCb56x1QPPYyCzDEhBeGTWkPQvakFT3p77GbrDe_s1ohNLwJNcmZ2yLQQytRO2T3VG0k5miqyvox7UINhsFaCpu7F8eH9GwTdgQye6qAQStsw/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25883.46.07.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;391&quot; data-original-width=&quot;1600&quot; height=&quot;97&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgM5dQj846GMgJBXahTo6X_S-1ldYcRwFiCb56x1QPPYyCzDEhBeGTWkPQvakFT3p77GbrDe_s1ohNLwJNcmZ2yLQQytRO2T3VG0k5miqyvox7UINhsFaCpu7F8eH9GwTdgQye6qAQStsw/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25883.46.07.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;透過Rancher納管minikube&lt;/u&gt;&lt;/b&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
當完成以上測試驗證的環境安裝後，可以再mac環境下直接使用kubectl指令，其實這些指令是橋接到內部的vm來執行運作的，而非直接再mac上運作，是minikube方便大家操作之情況下，所提供的指令操作。如果要知道目前vm的IP的話，可以使用：&lt;span data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;background-color: cyan;&quot;&gt;minikube ip&lt;/span&gt;指令。可以再{&lt;u&gt;&lt;i&gt;UserAccount&lt;/i&gt;&lt;/u&gt;}/.kube/config內容可以看到相關的設定。&lt;/div&gt;
&lt;div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvEB1tOWH6hMXkW_NjhoSzWKXwagpyhfUudheRU25KCWLgQGx-SgWVAku8U7WwT43g887Hsn6kyVddjCKYU_yZZRr4t0o1eaTzflPizIp1y38pg7PPN16KEA8aG_jNAbTOSHLxw4yk_ps/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.09.23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;370&quot; data-original-width=&quot;944&quot; height=&quot;125&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgvEB1tOWH6hMXkW_NjhoSzWKXwagpyhfUudheRU25KCWLgQGx-SgWVAku8U7WwT43g887Hsn6kyVddjCKYU_yZZRr4t0o1eaTzflPizIp1y38pg7PPN16KEA8aG_jNAbTOSHLxw4yk_ps/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.09.23.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;kubectl指令的設定內容&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;透過Rancher右上方的add cluster，設定名稱後，就可以產生執行指令，讓你透過這些指令將k8s cluster自動回報到Rancher中，，指令舉例如下：&lt;span data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;background-color: cyan;&quot;&gt;curl --insecure -sfL&lt;br /&gt;&amp;nbsp;https://192.168.99.102/v3/import/wwstx9fdfsvnqqkqmngczxtkbzkj7fgr8snr4pcrdvtrxnz8wb845k.yaml| kubectl apply -f -&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;指令背後的動作其實是從Rancher下載了一個yaml檔案，並產生了Rancher專用的POD，當作是agent來進行cluster納管動作。你可以透過kubectl get pods -A，可以看到有兩個cattle命名開頭的pods。當兩個pods的狀態都Running時，就可以回到Rancher UI上確認情況。&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhno8P2HLB2NJW_eI9kXl85eebe-B-kUhtTwWlT5zaDGl1kWoW13mA6L0c8uzc-yWIkh6NDYkzVfe_qrWM-zH8thOmf2aAfsCe47hNV7kG36jkLN3ei5CRRcak6pnukooyoZSwSLQuhq50/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.20.00.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;488&quot; data-original-width=&quot;1600&quot; height=&quot;121&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhno8P2HLB2NJW_eI9kXl85eebe-B-kUhtTwWlT5zaDGl1kWoW13mA6L0c8uzc-yWIkh6NDYkzVfe_qrWM-zH8thOmf2aAfsCe47hNV7kG36jkLN3ei5CRRcak6pnukooyoZSwSLQuhq50/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.20.00.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: left;&quot;&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;Rancher 畫面確實有納管了minikube，可以進去看到細部內容&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZxGULzmCTbNbnFLxR5cDi8rQ-bNNibEEuuLDB9rYHUf92BLJjVylDr6GUioQ8piuBwxkAJIuM1z0-e-IxAec0pCzDHif1zO-GSM2BeJgckx_nLwLgiClNPNZzqsemrAwfEQv_n5Dhicg/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.23.32.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;466&quot; data-original-width=&quot;1600&quot; height=&quot;93&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhZxGULzmCTbNbnFLxR5cDi8rQ-bNNibEEuuLDB9rYHUf92BLJjVylDr6GUioQ8piuBwxkAJIuM1z0-e-IxAec0pCzDHif1zO-GSM2BeJgckx_nLwLgiClNPNZzqsemrAwfEQv_n5Dhicg/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.23.32.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Cluster已經納管之狀態&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wpoNT8RMthdxcAeAq2xvW8STMCYrmlcf6pBEhvw2K7ahRDDhqXGZrV3NSvtPOLN8-PokSkErHu5ZtIQx6m3AqMKnCk8MNNRZ-24iNh0L1yoHNwyOjpUgIwqNPcyx6dGbpsTYafbzMyQ/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.23.43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1500&quot; data-original-width=&quot;1600&quot; height=&quot;299&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh4wpoNT8RMthdxcAeAq2xvW8STMCYrmlcf6pBEhvw2K7ahRDDhqXGZrV3NSvtPOLN8-PokSkErHu5ZtIQx6m3AqMKnCk8MNNRZ-24iNh0L1yoHNwyOjpUgIwqNPcyx6dGbpsTYafbzMyQ/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.23.43.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Cluster資源情況&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;b&gt;&lt;u&gt;透過Rancher新增加第一個服務：nginx&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;再選當的左方選擇default project，進入後選擇右上方的&quot;Deploy&quot;按鈕，從這邊就可以開始透過docker hub下載image並且啟用到服務中。&lt;/li&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRrYmD7aied8AttIJ0So1ERvCWSK68Hbe84G4TBCa_raYMq-t2Q4Z2lnZUrnSbR00ux6jqqQfIx2lA-2AIDd5wkhJGujFx3u-CnAYxz8e0SSfwig-RhMX_uZraqpqxfeWlD_qnIseMeQw/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.50.34.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;776&quot; data-original-width=&quot;1266&quot; height=&quot;196&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhRrYmD7aied8AttIJ0So1ERvCWSK68Hbe84G4TBCa_raYMq-t2Q4Z2lnZUrnSbR00ux6jqqQfIx2lA-2AIDd5wkhJGujFx3u-CnAYxz8e0SSfwig-RhMX_uZraqpqxfeWlD_qnIseMeQw/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-19+%25E4%25B8%258B%25E5%258D%25884.50.34.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;這個選單真是不直覺，我找了好多次&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;你想要的這邊的設定畫面都可以給你，要什麼有什麼，真的非常的強大及好用。最基本又用的就是Name、Workload Type、Docker&amp;nbsp; Image、Ｎamespace、Port Mapping這幾項。 進階的還有環境參數、Pods如何部署的Node Scheduling、Health Check、Volumes、Scaling/Upgrade Policy、執行指令command、網路、Labels、執行權限及資源設定@__@，真的太強大了，光是畫面截圖就超多選項，不用實在說不過去。這些設定就必須要對k8s的基本運作方式有所了解，這樣才能能夠更清楚知道如何使用，呼。&lt;/li&gt;
&lt;li&gt;Name：Pods的名稱，隨便填入nginxtest&lt;/li&gt;
&lt;li&gt;Workload Type：K8s定義的Pods有五種類型，本範例請選擇scalable 設定為2，代表服務會啟動二個pods。其他的選項分別有&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;scalable deployment：服務是stateless型態，適合動態擴建之Pods&lt;/li&gt;
&lt;li&gt;demand set：每一個Node上都會有一個Pod的服務，例如Log處理等&amp;nbsp;&lt;/li&gt;
&lt;li&gt;stateful：有Stateful特性的Pods，通常像是DB都會是這類型態，主要是k8s系統發現資源不足，或 pods異常時，並不會主動重啟，而是停在當時的狀態，需要有人介入主動處理&lt;/li&gt;
&lt;li&gt;cron schedule：排程功能的Pods，你就當作是系統crontab來看待就對了&lt;/li&gt;
&lt;li&gt;Job：還不清楚;&lt;/li&gt;
&lt;li&gt;&lt;br /&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;Docker Images：服務的images名稱，預設是到Docker Hub去進行search動作，因此如範例要安裝nginx，就只要輸入nginx:latest就可以(其實latest也可以省略，預設就是會去抓latest的images)&lt;/li&gt;
&lt;li&gt;Namespace：可以視為專案，未來每個namespace都可以細部設定網路policy等設定，是非常重要的設定值喔&lt;/li&gt;
&lt;li&gt;Port Mapping：如果你的Pods需要被存取，就一定要設定，本範例請在port name隨意輸入，在publish container port上輸入80，並選擇tcp node port。整體有下列選項(這個主題太重要了，我改天再專門額外研究說明)：&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;node port：內部測試最常使用之方式，會在每個work node上開啟相同的內部port，讓你可以直接使用k8s 對外的某個IP加上一個random port來進行存取&lt;/li&gt;
&lt;li&gt;host port：在&lt;span data-darkreader-inline-bgcolor=&quot;&quot; style=&quot;--darkreader-inline-bgcolor: #adad00; background-color: yellow;&quot;&gt;一個work node&lt;/span&gt;的主機上開啟額外的port 進行服務存取對應，我想這樣就無法使用cluster ip來進行存取囉(實在想不到為何有這種需求)&lt;/li&gt;
&lt;li&gt;cluster ip：多個POD直接綁一個對外的服務IP，此IP 是k8s Cluster服務內部使用，建議對外服務都需要使用這個設定&lt;/li&gt;
&lt;li&gt;layer 4 load balance：Pod對外提供服務的主要方法，將一個k8s Cluster前方的L4 load blance IP登記掛載到 k8s pod 服務上，如此當流量從外部進入到k8s時就會依據此load blance IP來進行內部NAT轉換作業，藉此導入到正確的Pod上&lt;/li&gt;
&lt;/ul&gt;
&lt;ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTT6EsvjRM1NdgVF7z09SFVC-eFujcZ9Klv1nAXB-K2LG7nc4wWihDBjJy4nyuyHIv_jd-p8I7un1KUbURKg8CuA7p1oWiFGaeQ4altswQ_A1a_R8kYtupQuFST-bhF3SKDibv_fkcIiE/s1600/screencapture-192-168-99-102-p-c-5f5vz-p-gs9dq-workloads-run-2019-11-19-16_59_39.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1600&quot; data-original-width=&quot;343&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgTT6EsvjRM1NdgVF7z09SFVC-eFujcZ9Klv1nAXB-K2LG7nc4wWihDBjJy4nyuyHIv_jd-p8I7un1KUbURKg8CuA7p1oWiFGaeQ4altswQ_A1a_R8kYtupQuFST-bhF3SKDibv_fkcIiE/s1600/screencapture-192-168-99-102-p-c-5f5vz-p-gs9dq-workloads-run-2019-11-19-16_59_39.png&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;超級多設定功能，本範例可以大多使用預設。&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;ul&gt;
&lt;li&gt;觀察nginx pod服務啟動情況，回到Rancher的管理畫面，可以看到下列pods的狀態&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9ErkkT0eO9IyR1i6WMq6ltX-w6IQVKcErMRbng9x32C3_3K40LPU8ukXnS1gbZ4aSEmCZrJfvSYcsa4vRhn_pADckqrAiesrVIfs_MitoakYb0HVY3olBVgngW84PUhOhEbOcULGZBzI/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258B%25E5%258D%25882.04.38.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;305&quot; data-original-width=&quot;1600&quot; height=&quot;76&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj9ErkkT0eO9IyR1i6WMq6ltX-w6IQVKcErMRbng9x32C3_3K40LPU8ukXnS1gbZ4aSEmCZrJfvSYcsa4vRhn_pADckqrAiesrVIfs_MitoakYb0HVY3olBVgngW84PUhOhEbOcULGZBzI/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258B%25E5%258D%25882.04.38.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;驗證nginx pod服務：在上圖可以看到下方有一個30098/tcp的連結，點選後既可以透過minikube的服務IP(192.168.99.103)，並加上30098來進行服務連結，可以看到以下的結果，代表服務有正常運作起來。&lt;/li&gt;
&lt;/ul&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOOSsYR52cyLSVgo_bAEcQI3brY00GtwJyC5aFXdvXCCKF21vdMmrM7NYIcGn6cbkzcCWsjWiH5AlFP_WYwrKQUMG6QYuQmk-kTyknCOQminJ9ex5_Fi-a6C9hO0A2KKkRqaptpW0rUGY/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258B%25E5%258D%25882.07.10.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;676&quot; data-original-width=&quot;1600&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhOOSsYR52cyLSVgo_bAEcQI3brY00GtwJyC5aFXdvXCCKF21vdMmrM7NYIcGn6cbkzcCWsjWiH5AlFP_WYwrKQUMG6QYuQmk-kTyknCOQminJ9ex5_Fi-a6C9hO0A2KKkRqaptpW0rUGY/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258B%25E5%258D%25882.07.10.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;服務Pods scalable驗證&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
上面的範例中我們建立了一個namespace(test-zone)及一個nginx服務(兩個pods)，因此我們可以驗證透過手動刪除某個pods後，k8s是否會自動幫我們重新開啟一個pods的功能&lt;br /&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;確認pods狀態如果單存使用kuberctl get po指令，並無法取得任何在運作的pods，主要是因為namespace關係，因此你可以加上-A參數，代表取得所有namespace下的pods資訊，或者使用--namespace XXXX，來取得某個namespace下的pods狀態&lt;/li&gt;
&lt;li&gt;確認pods狀態:透過&lt;span style=&quot;background-color: cyan;&quot;&gt;kubectl get po -A -o wide&lt;/span&gt;指令可以得知我們有兩個名為nginxtest開頭的服務在namespace test-zone下正常running著。&lt;/li&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihpAo5P3SG-iFl6rf_rBDuk_jy44h5I8TT7eVj_w92dyLItdbkF1HGGRsMRcBbaZnheZJ4VRQsRtLK74FXXP107DdPrFn4_kQQXUtArXxC6OIkgiQNJITYWwxeTpeXsK292QUeni9o7EE/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258B%25E5%258D%25882.58.52.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;335&quot; data-original-width=&quot;1600&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEihpAo5P3SG-iFl6rf_rBDuk_jy44h5I8TT7eVj_w92dyLItdbkF1HGGRsMRcBbaZnheZJ4VRQsRtLK74FXXP107DdPrFn4_kQQXUtArXxC6OIkgiQNJITYWwxeTpeXsK292QUeni9o7EE/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258B%25E5%258D%25882.58.52.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;最下方有兩個名為nginxtest開頭的pods運作著&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;要刪除nginxtest運作的pod，指令為&lt;span style=&quot;background-color: cyan;&quot;&gt;kubectl delete po ngnixtest-78bff4fd57-6ttql --namespace test-zone&lt;/span&gt;，就可以看到k8s在我們刪除pods的同時，又立刻重新建立一個名為nginxtest的pod(名稱為ngnixtest-78bff4fd57-r5mtt)&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi01qA-X8ncnLKRdwCtX0wIynXW52C9dpfKOEGA8t_n_D8YNEIjzklC1GVz4Ueu_gWKB9ardL-rut-nBmQwoRIcKFXTtgU5mKG6WsPHL0ZhwROhVmKpcSFR0KZGjt2H7OyKXegCqcAy6zA/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258B%25E5%258D%25882.59.49.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;335&quot; data-original-width=&quot;1600&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi01qA-X8ncnLKRdwCtX0wIynXW52C9dpfKOEGA8t_n_D8YNEIjzklC1GVz4Ueu_gWKB9ardL-rut-nBmQwoRIcKFXTtgU5mKG6WsPHL0ZhwROhVmKpcSFR0KZGjt2H7OyKXegCqcAy6zA/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258B%25E5%258D%25882.59.49.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;記得刪除pods的時候要透過--namespace來指定namespace喔&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;驗證health check功能&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
k8s可以依據你指定的條件來監控pod上的服務，目前rancher提供的方式有下列幾種：&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;TCP Port是否通&lt;/li&gt;
&lt;li&gt;測試某個HTTP網址&lt;/li&gt;
&lt;li&gt;測試某個HTTPS網址&lt;/li&gt;
&lt;li&gt;在container中執行某個腳本，來確認服務是否正常&lt;/li&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimtmFUzZvDnj4fXIf7iU960siA0z98YxkiSI9qdnlOoj_zrDedTbPLGBxZkHtc-gOyGwdlAJNrh9kJWuKyqmTMXZP9JfCum0C6ERZKbVkEVkan7Zrei3SrTQzw9_-svXo85PKDiS2LoSY/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25881.57.01.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;682&quot; data-original-width=&quot;1480&quot; height=&quot;147&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEimtmFUzZvDnj4fXIf7iU960siA0z98YxkiSI9qdnlOoj_zrDedTbPLGBxZkHtc-gOyGwdlAJNrh9kJWuKyqmTMXZP9JfCum0C6ERZKbVkEVkan7Zrei3SrTQzw9_-svXo85PKDiS2LoSY/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25881.57.01.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;Rancher提供多種自動檢查服務運作之方式&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;上個步驟k8s可以檢查pod的狀態，如果不正常時會自動重新啟動，因此我們本次測試將進入到底層的docker container中，手動將nginx關閉。先查詢docker有哪些container再跑，輸入&lt;span style=&quot;background-color: cyan;&quot;&gt;docker ps -a&lt;/span&gt;，其中可以看到37cd68007e1d的nginx container，因此透過指令&lt;span style=&quot;background-color: cyan;&quot;&gt;docker exec -it 37cd68007e1d bash&lt;/span&gt;，進入docker內部，然後再輸入&lt;span style=&quot;background-color: cyan;&quot;&gt;nginx -s stop&lt;/span&gt;後，過一陣子可以看到nginx的container又被自動啟動了(container id會變更)，但外層的pod卻沒有變更。&lt;/li&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdywlf9W5tBcX2XQClk11vlqTsEWZJ6H8hOQch5Yj4NKqLSjTmIs5stVD8OWIDOpBlIYfUd7XvxYHki9ncjr2QzIStp5k6vOM0NokLoDetoor4e3sft1IhH9z3-PQyNSkIAUb94S1gxPk/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.09.02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;192&quot; data-original-width=&quot;1600&quot; height=&quot;47&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdywlf9W5tBcX2XQClk11vlqTsEWZJ6H8hOQch5Yj4NKqLSjTmIs5stVD8OWIDOpBlIYfUd7XvxYHki9ncjr2QzIStp5k6vOM0NokLoDetoor4e3sft1IhH9z3-PQyNSkIAUb94S1gxPk/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.09.02.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;可以看到37cd68007e1d的status時間比較短，代表有被重新啟動&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;59&quot; data-original-width=&quot;1600&quot; height=&quot;20&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizP895yeM4OnmWvba2rBqlojx-pXmt2neUIoXVvQhl2t-SPBlWTd6Cj6zhusKhNx-qM344RiAQARMOrcdPsnmfTEI_qc_SBbleIEEx2SB8KZj_GfwWUaNzklmHxAlDiztwY7ik5AiHwXU/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.13.03.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;640&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;k8s上的兩個pod執行時間都一樣是21分鐘，代表pod的服務沒有因為內部nginx服務重啟而影響&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul&gt;&lt;ul&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizP895yeM4OnmWvba2rBqlojx-pXmt2neUIoXVvQhl2t-SPBlWTd6Cj6zhusKhNx-qM344RiAQARMOrcdPsnmfTEI_qc_SBbleIEEx2SB8KZj_GfwWUaNzklmHxAlDiztwY7ik5AiHwXU/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.13.03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEizP895yeM4OnmWvba2rBqlojx-pXmt2neUIoXVvQhl2t-SPBlWTd6Cj6zhusKhNx-qM344RiAQARMOrcdPsnmfTEI_qc_SBbleIEEx2SB8KZj_GfwWUaNzklmHxAlDiztwY7ik5AiHwXU/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.13.03.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;設定rancher上的health check功能&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;指定HTTP request returns a successful status (2xx or 3xx)&lt;/li&gt;
&lt;li&gt;設定Request Path為&quot;/&quot;&lt;/li&gt;
&lt;li&gt;設定Target Container Port為80&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0JqdYhgK1m1d21iHVs5ZDc90mgRbj4MeH4XKe1Y1reBxk2Khuv2sJOhsLH7zHb8-xwzIEk3YLQQrLE1q_pdkwos3_Vua-TtlmozSp4YuOmiskH9nJbLbCYWuYogyELWRrjodhY4f3ZOQ/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.17.06.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;959&quot; data-original-width=&quot;1600&quot; height=&quot;191&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh0JqdYhgK1m1d21iHVs5ZDc90mgRbj4MeH4XKe1Y1reBxk2Khuv2sJOhsLH7zHb8-xwzIEk3YLQQrLE1q_pdkwos3_Vua-TtlmozSp4YuOmiskH9nJbLbCYWuYogyELWRrjodhY4f3ZOQ/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.17.06.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;透過Rancher設定k8s的Health check&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;再進入Docker內部，再次執行nginx -s stop指令，並回到minikube環境下，輸入kubectl get po -A -o wide後，可以發現其中一個nginxtest pod的狀態變更為CrashLoopBackOff，並且自動進行restart作業，因此restart的數值增高為2。&lt;/li&gt;
&lt;/ul&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaXgRFCAK0NkC3EXsmq0RbmS5d5nI-SzG2hEQJstJZSro12bTHM87nITDdIwX1LGn3t1ZX3_cEj-6wcXQWc8yx-c0vHBycwGScRMltKJntMKFBQDO2F8E10afylN14kVC_A147W581vWA/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.27.33.png&quot; imageanchor=&quot;1&quot; style=&quot;clear: left; margin-bottom: 1em; margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;54&quot; data-original-width=&quot;1600&quot; height=&quot;20&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiaXgRFCAK0NkC3EXsmq0RbmS5d5nI-SzG2hEQJstJZSro12bTHM87nITDdIwX1LGn3t1ZX3_cEj-6wcXQWc8yx-c0vHBycwGScRMltKJntMKFBQDO2F8E10afylN14kVC_A147W581vWA/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.27.33.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;因為container內部的nginx被停止，因此healthcheck判定此pod有問題&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXm4UCeAkjfmHS7TcXzPPl-0IVrhc0LjQb6RJJ5ZPZtRtoOJ37sPA_S9-3Stvwn0BGnvBefuvSVV_-grX17Iy69vQZ8Gemhv2GHzC1IGQ5lCC2rLe0tjTZ4XnKSrmdj-7FIWBlV0dOunM/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.27.43.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;54&quot; data-original-width=&quot;1600&quot; height=&quot;20&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjXm4UCeAkjfmHS7TcXzPPl-0IVrhc0LjQb6RJJ5ZPZtRtoOJ37sPA_S9-3Stvwn0BGnvBefuvSVV_-grX17Iy69vQZ8Gemhv2GHzC1IGQ5lCC2rLe0tjTZ4XnKSrmdj-7FIWBlV0dOunM/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.27.43.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;經過重啟作業後，重啟的計數器也有增加囉&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SRUdLTfhd2ZjxJlgak0SNnuXm8RRTOMNgSeshi_m3AIH68j4SgvL27A2LPOTRenI0wctO2iDOQw5bcp0CIbmI_oqsELvQkPFWvtGymiMtGhkCCAZpnZbhn5OzRePpmtyZkAROh7YhYs/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.33.20.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;119&quot; data-original-width=&quot;1600&quot; height=&quot;47&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEh3SRUdLTfhd2ZjxJlgak0SNnuXm8RRTOMNgSeshi_m3AIH68j4SgvL27A2LPOTRenI0wctO2iDOQw5bcp0CIbmI_oqsELvQkPFWvtGymiMtGhkCCAZpnZbhn5OzRePpmtyZkAROh7YhYs/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.33.20.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;再重啟過程中Rancher UI也有正常顯示出Pod正在進行更新作業&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;b&gt;&lt;u&gt;插曲&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
我透過Rancher設定nginx pod的時候在container第一次設定的port為8080，因為我以為服務預設會開8080 port，讓我一開始嘗試從外部透過node port連接nginx服務都無法正確拿到網頁，測試驗證老半天將container port修改為80才能通。這個情況應該是拉下來的images中使用預設的設定，因此只會開啟80 Port，你可以進入到docker內部，然後透過指令nginx -t來了解設定檔的位置，然後再到&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 17px;&quot;&gt;/etc/nginx/conf.d/&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-size: 17px;&quot;&gt;default.conf就可以看到只有開啟listen&amp;nbsp; 80。&lt;/span&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;







&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 18.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP4pKJzCKIGTd-KrOztuAlrJ-NLSgi2f6xPi5MIixB3QjmPT0Qd5HLfWHv8x4wHWgWaMJ62GWlegwsFJsQasOMk0YUSlP3QAZnxYwFM1e2vxd7HsrPAVIVZYp8uMZhJRfhKfol_6vdtGg/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.58.51.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;1600&quot; data-original-width=&quot;1343&quot; height=&quot;400&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiP4pKJzCKIGTd-KrOztuAlrJ-NLSgi2f6xPi5MIixB3QjmPT0Qd5HLfWHv8x4wHWgWaMJ62GWlegwsFJsQasOMk0YUSlP3QAZnxYwFM1e2vxd7HsrPAVIVZYp8uMZhJRfhKfol_6vdtGg/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-29+%25E4%25B8%258B%25E5%258D%25882.58.51.png&quot; width=&quot;335&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;nginx預設的開啟port為80&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;br /&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 17.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/9138912470888137148/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2019/11/rancher-k8sranchermimikub.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/9138912470888137148'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/9138912470888137148'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2019/11/rancher-k8sranchermimikub.html' title='使用Rancher 安裝及驗證k8s的記錄(一)：透過rancher的來納管mimikub'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgyCyfGtUT1Y5TQuHMo66PtdKfVZ4hesWQl1UDqKudhyphenhyphengRA-4R25vz4T9WzAm6PAPMoUtxl9CrnPifovYovZyEhXBXK6J70gEFX8Ya34FvJ2apeAfFzTRErntYp5MxDzxmHFhtqzGJufDk/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-27+%25E4%25B8%258A%25E5%258D%258811.15.24.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-5837880108768027022</id><published>2019-11-13T22:51:00.002-08:00</published><updated>2019-11-13T22:51:55.160-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="實驗室環境"/><title type='text'>MAC virtualbox 6.0.12 透過cmd設定host only</title><content type='html'>好久沒有使用VirtualBox，久到整個版本都變成6.X版本，舊版本都被禁用&amp;gt;__&amp;lt;。最近又因為自己想要實驗k8s，因此再開啟環境進行驗證，順便從MAC pro轉移到iMAC上，沒有到都開不起來，主要的原因都是因為vm上的第二張網卡雖然設定host only的模式，但都沒有選用設定，因此無法成功開啟vm。但新版的virtualbox根本就沒有地方可以設定，只剩下nat的設定選項，如下圖。&lt;br /&gt;
&lt;br /&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ1YpJzbnYNajXFBMr6L8VEpaswNHD4W2mtakDlyrXro_IthoJ8-Qn83V5dNseVkPelGjlOoVy73ZXuAiYffzpSGVFVZDlqZGNocxUSPsPlFBAC7-KKcDm_16fMeuW2NHTMACYDnxaQz4/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-14+%25E4%25B8%258B%25E5%258D%25882.46.37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; data-original-height=&quot;734&quot; data-original-width=&quot;1092&quot; height=&quot;215&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ1YpJzbnYNajXFBMr6L8VEpaswNHD4W2mtakDlyrXro_IthoJ8-Qn83V5dNseVkPelGjlOoVy73ZXuAiYffzpSGVFVZDlqZGNocxUSPsPlFBAC7-KKcDm_16fMeuW2NHTMACYDnxaQz4/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-14+%25E4%25B8%258B%25E5%258D%25882.46.37.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;網路設定上僅剩下NAT，沒有host only的設定功能&amp;gt;_&amp;lt;&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
查了一下google，virtualbox的設定除了ui外，還可以使用cmd。因此自己執行了以下的指令，成功的新增加了host only的選項。&lt;br /&gt;
&lt;br /&gt;
&lt;pre style=&quot;background-color: white; color: #72777d; font-family: &amp;quot;courier new&amp;quot;, monospace; font-size: 15px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap;&quot;&gt;vboxmanage hostonlyif create
vboxmanage hostonlyif ipconfig vboxnet0 --ip 192.168.10.1&lt;/pre&gt;
&lt;pre style=&quot;background-color: white; color: #72777d; font-family: &amp;quot;courier new&amp;quot;, monospace; font-size: 15px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap;&quot;&gt;&lt;/pre&gt;
第一個指令是再virtualbox上新增了一個hostonly的既面，執行後名稱會預設為&quot;vboxnet0&quot;，第二行指令是設定host上vboxnet0介面的指定IP為192.168.10.1。</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/5837880108768027022/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2019/11/mac-virtualbox-6012-cmdhost-only.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/5837880108768027022'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/5837880108768027022'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2019/11/mac-virtualbox-6012-cmdhost-only.html' title='MAC virtualbox 6.0.12 透過cmd設定host only'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJ1YpJzbnYNajXFBMr6L8VEpaswNHD4W2mtakDlyrXro_IthoJ8-Qn83V5dNseVkPelGjlOoVy73ZXuAiYffzpSGVFVZDlqZGNocxUSPsPlFBAC7-KKcDm_16fMeuW2NHTMACYDnxaQz4/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2019-11-14+%25E4%25B8%258B%25E5%258D%25882.46.37.png" height="72" width="72"/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-3903288038478618778</id><published>2016-12-12T23:23:00.003-08:00</published><updated>2016-12-12T23:27:43.760-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="數字觀察"/><title type='text'>2016年11月符合營收規則之公司名單</title><content type='html'>&lt;div style=&quot;font-family: arial, sans-serif; font-size: 13px;&quot;&gt;
&lt;div style=&quot;background-color: white; color: #222222;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;公司資訊 company name:南亞科 stockNumber:2408&amp;nbsp;&lt;/li&gt;
&lt;li&gt;12月12日股票價格46.85&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;公司號碼 2408 在 2016-11 的營收年增率是 18.93&lt;/li&gt;
&lt;li&gt;公司號碼 2408 在 2016-10 的營收年增率是 11.93&lt;/li&gt;
&lt;li&gt;公司號碼 2408 在 2016-09 的營收年增率是 8.82&lt;/li&gt;
&lt;li&gt;公司號碼 2408 在 2016-08 的營收年增率是 -3.91&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 2408 在 2016-07 的營收年增率是 -7.83&lt;/li&gt;
&lt;li&gt;公司號碼 2408 在 2015 ROE 是 35.57&lt;/li&gt;
&lt;li&gt;公司號碼 2408 在 2014 ROE 是 109.18&lt;/li&gt;
&lt;li&gt;公司號碼 2408 在 2013 ROE 是 137.35&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;&amp;nbsp;公司資訊 company name:松翰科技 stockNumber:5471&amp;nbsp;&lt;/li&gt;
&lt;li&gt;12月12日股票價格32元&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;公司號碼 5471 在 2016-11 的營收年增率是 6.20&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 5471 在 2016-10 的營收年增率是 1.19&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 5471 在 2016-09 的營收年增率是 7.77&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 5471 在 2016-08 的營收年增率是 -0.00&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 5471 在 2016-07 的營收年增率是 -10.85&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 5471 在 2015 ROE 是 12.18&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 5471 在 2014 ROE 是 16.02&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 5471 在 2013 ROE 是 15.79&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;公司資訊 company name:振樺電子 stockNumber:8114&amp;nbsp;&lt;/li&gt;
&lt;li&gt;12月12日股票價格180&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;&amp;nbsp;公司號碼 8114 在 2016-11 的營收年增率是 63.13&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 8114 在 2016-10 的營收年增率是 76.53&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 8114 在 2016-09 的營收年增率是 51.91&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 8114 在 2016-08 的營收年增率是 -3.50&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 8114 在 2016-07 的營收年增率是 -6.61&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 8114 在 2015 ROE 是 35.09&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 8114 在 2014 ROE 是 36.55&lt;/li&gt;
&lt;li&gt;&amp;nbsp;公司號碼 8114 在 2013 ROE 是 36.45&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/3903288038478618778/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/12/201611.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/3903288038478618778'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/3903288038478618778'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/12/201611.html' title='2016年11月符合營收規則之公司名單'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-3612049181611273234</id><published>2016-12-12T23:21:00.000-08:00</published><updated>2016-12-12T23:21:13.596-08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="數字觀察"/><title type='text'>2016年10月份符合營收條件之公司</title><content type='html'>&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 14px;&quot;&gt;
這些股票的篩選條件是ROE這三年都大於10，最近3 個月 或 4個月營收年增率剛好轉正！&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 14px;&quot;&gt;
＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝＝&lt;/div&gt;
&lt;div style=&quot;background-color: white; color: #222222; font-family: arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司資訊 company name:波力-KY stockNumber:8467&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 8467 在 2016-10 的營收年增率是 16.97&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 8467 在 2016-09 的營收年增率是 47.28&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 8467 在 2016-08 的營收年增率是 7.21&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 8467 在 2016-07 的營收年增率是 -44.97&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 8467 在 2016-06 的營收年增率是 -49.72&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 8467 在 2015 ROE 是 12.30&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 8467 在 2014 ROE 是 25.50&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 8467 在 2013 ROE 是 21.10&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p2&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p2&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司資訊 company name:上福全球 stockNumber:6128&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6128 在 2016-10 的營收年增率是 4.32&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6128 在 2016-09 的營收年增率是 3.40&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6128 在 2016-08 的營收年增率是 4.74&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6128 在 2016-07 的營收年增率是 -14.55&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6128 在 2016-06 的營收年增率是 -1.75&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6128 在 2015 ROE 是 18.58&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6128 在 2014 ROE 是 16.39&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6128 在 2013 ROE 是 13.60&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;公司資訊 company name:中砂 stockNumber:1560&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2016-10 的營收年增率是 13.74&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2016-09 的營收年增率是 0.30&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2016-08 的營收年增率是 3.71&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2016-07 的營收年增率是 0.78&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2016-06 的營收年增率是 -1.00&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2016-05 的營收年增率是 -0.78&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2015 ROE 是 15.28&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2014 ROE 是 17.45&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 1560 在 2013 ROE 是 14.64&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p2&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;公司資訊 company name:順德 stockNumber:2351&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2016-10 的營收年增率是 5.24&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2016-09 的營收年增率是 10.02&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2016-08 的營收年增率是 9.21&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2016-07 的營收年增率是 2.91&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2016-06 的營收年增率是 -4.90&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2016-05 的營收年增率是 -5.82&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2015 ROE 是 12.53&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2014 ROE 是 16.73&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 2351 在 2013 ROE 是 13.19&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;公司資訊 company name:威強電 stockNumber:3022&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2016-10 的營收年增率是 39.39&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2016-09 的營收年增率是 46.75&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2016-08 的營收年增率是 2.70&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2016-07 的營收年增率是 4.81&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2016-06 的營收年增率是 -8.62&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2016-05 的營收年增率是 -48.68&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2015 ROE 是 15.86&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2014 ROE 是 20.78&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 3022 在 2013 ROE 是 16.93&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p2&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p2&quot;&gt;
公司資訊 company name:台郡科技 stockNumber:6269&amp;nbsp;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2016-10 的營收年增率是 1.66&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2016-09 的營收年增率是 0.50&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2016-08 的營收年增率是 42.62&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2016-07 的營收年增率是 52.31&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2016-06 的營收年增率是 -14.89&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2016-05 的營收年增率是 -23.79&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2015 ROE 是 22.79&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2014 ROE 是 17.35&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;m_6607075866872030809gmail-p1&quot;&gt;
&lt;span class=&quot;m_6607075866872030809gmail-s1&quot;&gt;&amp;nbsp;公司號碼 6269 在 2013 ROE 是 26.67&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;yj6qo ajU&quot; style=&quot;cursor: pointer; margin: 2px 0px 0px; outline: none; padding: 10px 0px; width: 22px;&quot;&gt;
&lt;div aria-label=&quot;顯示省略的郵件內容&quot; class=&quot;ajR&quot; data-tooltip=&quot;顯示省略的郵件內容&quot; id=&quot;:qx&quot; role=&quot;button&quot; style=&quot;background-color: #f1f1f1; border: 1px solid rgb(221, 221, 221); clear: both; line-height: 6px; outline: none; position: relative; width: 20px;&quot; tabindex=&quot;0&quot;&gt;
&lt;img class=&quot;ajT&quot; src=&quot;https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif&quot; style=&quot;background: url(&amp;quot;//ssl.gstatic.com/ui/v1/icons/mail/ellipsis.png&amp;quot;) no-repeat; height: 8px; opacity: 0.3; width: 20px;&quot; /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/3612049181611273234/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/12/201610.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/3612049181611273234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/3612049181611273234'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/12/201610.html' title='2016年10月份符合營收條件之公司'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-4405310539440569812</id><published>2016-10-05T02:29:00.001-07:00</published><updated>2016-10-05T02:29:10.225-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="實驗室環境"/><title type='text'>如何解決移動裝置上的virtualBox與Centos網路規劃設定</title><content type='html'>[應用情境]小弟使用mac在許多地方移動辦公，每個地方都透過wifi AP提供DHCP網路，因此每次拿到的IP網段都不相同，造成在virtualBox與內部guest os(CentOS)上的設定需有特別方法才能達到我的需求，雖說在 [&lt;a href=&quot;https://valueinvetorproject.blogspot.tw/2016/09/centos-7pythonvim.html&quot; target=&quot;_blank&quot;&gt;安裝CentOS 7，Python，VIM的過程記錄&lt;/a&gt;]文章中提到的&quot;橋接模式&quot;設定方法也可已達到上網及互聯目的，但就是有些不方便，而主要需要進一步修改的需求如下：&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;每次到不同的網路環境下guest os的IP都會不同，因此要透過mac 終端機連線到內部centOS的話，都要先到裡面查詢一下取到的IP後才能使用SSH登入。我希望不要因為Wifi AP配發的網段不同，造成每次的host及guest都配發不同網段IP，而是在不同網路環境上都使用192.168.10.X。&lt;/li&gt;
&lt;li&gt;未來規劃會有許多guest OS在同一個內網環境，分別扮演不同的伺服器角色，因此需要一個固定的IP內網。&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
下圖是host(MAC)與guest(CentOS)的網路規劃圖，主要的精神是滿足上面兩個需求，讓&lt;span style=&quot;background-color: #ffe599;&quot;&gt;Guest OS上網透過NAT網路(網卡1)，內部交換使用固定IP(網卡2)&lt;/span&gt;。區域網路的話，MAC分配使用192.168.10.1，CentOS第一台使用192.168.10.11，後續的主機依此類推。&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNEHt6oGESvv1UwzBpTpjGj0NWGk_ghbDP94lLrSTWPnouiVjyqY3yoRpaZAwBZSPGWhJJHdNAKasovvce1_gHfRVWkkuxGXX8REPDLpOhVpwuSilAl5kQIIgg8VOhdOt7UjA2udt8nWo/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.25.17.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;404&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNEHt6oGESvv1UwzBpTpjGj0NWGk_ghbDP94lLrSTWPnouiVjyqY3yoRpaZAwBZSPGWhJJHdNAKasovvce1_gHfRVWkkuxGXX8REPDLpOhVpwuSilAl5kQIIgg8VOhdOt7UjA2udt8nWo/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.25.17.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;要達到需求的話，可以依據以下的兩個步驟來完成&lt;/div&gt;
&lt;h3&gt;
[步驟一：virtualBox網路設定]&lt;/h3&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;設定VirtualBox的&quot;僅限主機&quot;資訊，並於Guest OS新增加一個網卡，選用此連網模式。程序為：&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;點選出VirtualBox左上角的[喜好設定]，並點選[網路]中的[僅限主機]&lt;/li&gt;
&lt;li&gt;然後按下右邊的＋網卡符號後，再[網路卡]填入規劃的IP資訊，例如我規劃讓MAC使用IP 192.168.10.1，網路遮罩為255.255.255.0。&lt;/li&gt;
&lt;li&gt;我也建議取消僅限主機內的DHCP功能，將選項內的[啟用伺服器]取消。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil2Xh4vEU_78U4Lz4iO6bUlnDbmGufZgOHLTv2_p_OrWHb7o4vVw8OgGaUq_511bb7pO3Oz85HYHSooR0-zIKzKvDgxVlU7LvdczOv4rEw1PKIhYdwWbyudZeV0JF-ZTzeVPo6MQPKSog/s200/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.19.59.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;161&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;選擇VirtualBox[喜好設定]&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;233&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQaPMFUqaJtSpyF0rQI9EQYp9b66u8PIhbIqwCyGJpWfQdtcxQu0d3jE4qqQg9Jgy0Q5B9pQnRZHlLOVxYAJy8lfOYXOcP3ZYDjNm0Omo1Jx5K7njj5Ntr4wmCCaZGGpg89EE7wFcG4fQ/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.20.55.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;400&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;選擇[網路]-[僅限主機]，按下右邊+&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;180&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik8Fa_thh-aRlPFua-4IzVQr800s2K4opHS2VexQt7as3_wkP9dGGITRfpn9w38B8UqHAJiFsdGGoDyk1v_pYj1sPgh20ooxNPTe7YKqzW7g36K70SXrWXoJMIGD8YP-5U11NVb4WYmU8/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.21.49.png&quot; style=&quot;margin-left: auto; margin-right: auto;&quot; width=&quot;400&quot; /&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;輸入規劃中的MAC區網IP&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgBgFvk5dzP25qNYnHGGtqVies7DvQOIPlk1JjbWkfqiaa6ro9TQAvavyu3gM2c54JOZdqOfwGMZqQwfzujpPuIpvogoZuShcGhaJ7kJUri95vXvivOQ1MkYr4yWRers50aJxe4lpBTYY/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.28.41.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;203&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjgBgFvk5dzP25qNYnHGGtqVies7DvQOIPlk1JjbWkfqiaa6ro9TQAvavyu3gM2c54JOZdqOfwGMZqQwfzujpPuIpvogoZuShcGhaJ7kJUri95vXvivOQ1MkYr4yWRers50aJxe4lpBTYY/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.28.41.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;取消DHCP服務&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEil2Xh4vEU_78U4Lz4iO6bUlnDbmGufZgOHLTv2_p_OrWHb7o4vVw8OgGaUq_511bb7pO3Oz85HYHSooR0-zIKzKvDgxVlU7LvdczOv4rEw1PKIhYdwWbyudZeV0JF-ZTzeVPo6MQPKSog/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.19.59.png&quot; imageanchor=&quot;1&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQaPMFUqaJtSpyF0rQI9EQYp9b66u8PIhbIqwCyGJpWfQdtcxQu0d3jE4qqQg9Jgy0Q5B9pQnRZHlLOVxYAJy8lfOYXOcP3ZYDjNm0Omo1Jx5K7njj5Ntr4wmCCaZGGpg89EE7wFcG4fQ/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.20.55.png&quot; imageanchor=&quot;1&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEik8Fa_thh-aRlPFua-4IzVQr800s2K4opHS2VexQt7as3_wkP9dGGITRfpn9w38B8UqHAJiFsdGGoDyk1v_pYj1sPgh20ooxNPTe7YKqzW7g36K70SXrWXoJMIGD8YP-5U11NVb4WYmU8/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.21.49.png&quot; imageanchor=&quot;1&quot;&gt;&lt;/a&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;設定Guest OS的網路卡介面&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
進入到虛擬主機的設定畫面，將介面卡2卡開啟，並選用[僅限主機]附加方式，而介面卡1選用NAT附加方式喔，接著就可以開啟虛擬主機。&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq__PGnUDSh0cyR2aWp2HGMi3laXuo_REnHMByjg1zUL_M7yOC3Mb88TDBXJR4RA34gbLSQPMUe7gQB0JmaAMYnHU7vJUp7idXE93C51TRWgkxbagNwfKUTdzJjQfNSm1_zQaXoZxQNx0/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.38.41.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;307&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiq__PGnUDSh0cyR2aWp2HGMi3laXuo_REnHMByjg1zUL_M7yOC3Mb88TDBXJR4RA34gbLSQPMUe7gQB0JmaAMYnHU7vJUp7idXE93C51TRWgkxbagNwfKUTdzJjQfNSm1_zQaXoZxQNx0/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.38.41.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;啟用guest os的第二張網卡&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
[步驟二：CentOS網路設定]&lt;/h3&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;登入CentOS後輸入&quot;ip addr show&quot;命令，得知系統多了一張網路卡(如enp0s8)，但是並未分配任何IP。&lt;/li&gt;
&lt;/ul&gt;
&lt;table align=&quot;center&quot; cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhdaPGmH84KL0cbC6XEZDxpy573ZRx8Hz4VttprmYIKLxg1S_-HeedStQTsnDtkq8d19D1wthNkzB5CW2AMsYZjqBVkKOA9BA8iv97Oy8UHxByDp27vCZMTL77EZn8jy_7ox7a9V20vhU/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.47.16.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhdaPGmH84KL0cbC6XEZDxpy573ZRx8Hz4VttprmYIKLxg1S_-HeedStQTsnDtkq8d19D1wthNkzB5CW2AMsYZjqBVkKOA9BA8iv97Oy8UHxByDp27vCZMTL77EZn8jy_7ox7a9V20vhU/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.47.16.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;CentOS已經有了一張新的介面卡&lt;br /&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;li style=&quot;font-size: medium;&quot;&gt;網卡進行設定：先透過uuidgen enp0s8指令取得新的UUID資訊，並將此資訊記錄下&lt;/li&gt;
&lt;li style=&quot;font-size: medium;&quot;&gt;進行網路卡設定：先到/etc/sysconfig/network-scripts目錄，將ifcfg-enp0s3複製為ifcfg-enp0s8檔案，並且透過vim來編輯該檔案(如下圖簡單的設定即可)，其中UUID就填入上一個步驟所得的值，並記得千萬&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;不要&lt;/b&gt;&lt;/span&gt;填上Gateway資訊喔，這樣會造成設備上有兩個gateway，會有機會造成無法上網，這部分下面會在詳細說明。而設定中得幾個重點包含&lt;/li&gt;
&lt;/div&gt;
&lt;blockquote style=&quot;border: none; margin: 0 0 0 40px; padding: 0px;&quot;&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;NAME：網路卡要顯示的名稱&lt;/li&gt;
&lt;li&gt;UUID：唯一識別值(我不確定這個值是否一定要使用uuidgen)&lt;/li&gt;
&lt;li&gt;DEVICE：設備辨識名稱&lt;/li&gt;
&lt;li&gt;ONBOOT：是否要在開啟的時候啟動網路卡&lt;/li&gt;
&lt;li&gt;IPADDR：固定IP資訊&lt;/li&gt;
&lt;li&gt;NETMASK &amp;nbsp;：網路遮罩&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;/blockquote&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC7tpVgs2cBeF5yLTx5kK82ME9YgsEsK5WhmDjwWPUtsWLJhaMBSlzApoee8jdsNDSsWPb4HtD1B9kw5jSsFUV_tzxyBblJ9AEJE_86TU1Fr-VktwQVpP-vroJzvUtgYQP96jMYpoUrt4/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258B%25E5%258D%25883.08.08.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;210&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhC7tpVgs2cBeF5yLTx5kK82ME9YgsEsK5WhmDjwWPUtsWLJhaMBSlzApoee8jdsNDSsWPb4HtD1B9kw5jSsFUV_tzxyBblJ9AEJE_86TU1Fr-VktwQVpP-vroJzvUtgYQP96jMYpoUrt4/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258B%25E5%258D%25883.08.08.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;ul&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;重新啟用網卡：在命令模式下輸入ifdown ifcfg-enp0s8，代表將enp0s8這張網卡關閉，然後再輸入ifup ifcfg-enp0s8來重新啟動&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;font-size: small;&quot;&gt;使用ip addr show指令來確認一次所得到的IP是否正確，應該可以看到如以下的資訊，代表主機有一個192.168.10.11的IP&lt;/span&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;============================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;







&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;2: enp0s3: &lt;broadcast&gt; mtu 1500 qdisc pfifo_fast state UP qlen 1000&lt;/broadcast&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; link/ether 08:00:27:86:5a:e0 brd ff:ff:ff:ff:ff:ff&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; inet 10.0.2.15/24 brd 10.0.2.255 scope global dynamic enp0s3&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; valid_lft 85247sec preferred_lft 85247sec&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; inet6 fe80::a00:27ff:fe86:5ae0/64 scope link&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; valid_lft forever preferred_lft forever&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;3: enp0s8: &lt;broadcast&gt; mtu 1500 qdisc pfifo_fast state UP qlen 1000&lt;/broadcast&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; link/ether 08:00:27:2f:14:24 brd ff:ff:ff:ff:ff:ff&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;span style=&quot;background-color: #9fc5e8;&quot;&gt;inet 192.168.10.11/24 brd 192.168.10.255 scope global enp0s8&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; valid_lft forever preferred_lft forever&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp; &amp;nbsp; inet6 fe80::a00:27ff:fe2f:1424/64 scope link&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; valid_lft forever preferred_lft forever&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;============================================&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;測試網路連線：請輸入ping 168.95.1.1 及ping www.hinet.net來確認都有得到正常的值，如以下範例報表有成功連線囉。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
============================================&lt;/div&gt;
&lt;br /&gt;
















&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;ping 168.95.1.1&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;PING 168.95.1.1 (168.95.1.1) 56(84) bytes of data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #9fc5e8;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;64 bytes from 168.95.1.1: icmp_seq=1 ttl=63 time=24.8 ms&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;ping www.hinet.net&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #9fc5e8;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;PING hinet-hp.cdn.hinet.net (210.71.222.166) 56(84) bytes of data.&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #9fc5e8;&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;64 bytes from 210-71-222-166.HINET-IP.hinet.net (210.71.222.166): icmp_seq=1 ttl=63 time=17.8 ms&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;64 bytes from 210-71-222-166.HINET-IP.hinet.net (210.71.222.166): icmp_seq=2 ttl=63 time=76.2 ms&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: x-small;&quot;&gt;64 bytes from 210-71-222-166.HINET-IP.hinet.net (210.71.222.166): icmp_seq=3 ttl=63 time=80.5 ms&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
============================================&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;h3&gt;
[CentOS路由資訊確認]&lt;/h3&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li style=&quot;text-align: left;&quot;&gt;小弟開始的時候手賤在CentOS上多設定了Gateway資訊，在開始的時候都可以正常運作，但在某些時候卻無法進行網路連線，而這個問就是所謂的雙路由造成的問題，如果你依照上述的設定方法來設定後，你應該會得到如下圖的route table。其中的Flags=UG，U代表服務界面是開啟的，G代表是gateway。整張路由表代表所有的流量都會往10.0.2.2(就是NAT模式的網卡)這個Gateway來送，包含了區域網路或上網際網路這邊的需求都是。&lt;/li&gt;
&lt;/ul&gt;
&lt;br /&gt;
&lt;table cellpadding=&quot;0&quot; cellspacing=&quot;0&quot; class=&quot;tr-caption-container&quot; style=&quot;margin-left: auto; margin-right: auto; text-align: center;&quot;&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;text-align: center;&quot;&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitv-0RK5BgWsUbnkC012Q4Kb_CSf4YY69-4nUGbnMmbIL9KbPPDmnndvvT-cumdV4ntIaZnmYeSskT3Ig5xG_xuJyIDU0UKIiVTB5fx4QIRXrGsEPRq199KcttZD5vJk31BG4dYB58ZPg/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258B%25E5%258D%25883.25.33.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: auto; margin-right: auto;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;96&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEitv-0RK5BgWsUbnkC012Q4Kb_CSf4YY69-4nUGbnMmbIL9KbPPDmnndvvT-cumdV4ntIaZnmYeSskT3Ig5xG_xuJyIDU0UKIiVTB5fx4QIRXrGsEPRq199KcttZD5vJk31BG4dYB58ZPg/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258B%25E5%258D%25883.25.33.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;tr-caption&quot; style=&quot;text-align: center;&quot;&gt;正常情況下的路由表&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;如果你在enp0s8的網卡上面設定gateway後，你看到的route table應該是如下的圖。其中會有兩個Flags會有UG，代表你有兩個Gateway的設定，因此系統會看後面的Metric值哪一個比較&quot;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;小&lt;/b&gt;&lt;/span&gt;&quot;，就預設優先走這個Gateway&amp;gt;_&amp;lt;，而目前還是10.0.2.2這個Gateway的Metric值比較小，因此網路可以正常運作。但在系統重新啟動或者網卡重新啟動的情況，就會有機率變成192.168.10.1這個Gateway變成優先，會造成網路無法連線的情況。當然可以手動解決這個問題，透過route del/add指令重新指派Metric的優先順序，並加他加入.bashrc中在每次登入後自動執行，相關完整概念請參考 [&lt;a href=&quot;http://linux.vbird.org/linux_server/0140networkcommand.php#network_setup_ip&quot; target=&quot;_blank&quot;&gt;鳥哥的linux私房菜&lt;/a&gt;]。但我覺得最好的方法就不要加入Gateway資訊，如此就不會有因為route的問題造成無法連線，然後自己又要再調整半天的情況。&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwA8X8aLXF4wrIwyVgfAI9dKauIF8sR-tEVqdhtibN2XYWbz1yX-yBDOkB98EyEE5aZCkGCmnUMWpLxEuwiX_AxoXI6-1JvR1QrT1UDOOAjnoaZ-vkixwxhY69zeY1tD37M3bToYTHGTk/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258B%25E5%258D%25883.32.16.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;122&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwA8X8aLXF4wrIwyVgfAI9dKauIF8sR-tEVqdhtibN2XYWbz1yX-yBDOkB98EyEE5aZCkGCmnUMWpLxEuwiX_AxoXI6-1JvR1QrT1UDOOAjnoaZ-vkixwxhY69zeY1tD37M3bToYTHGTk/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258B%25E5%258D%25883.32.16.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;h3&gt;
[回顧及結論]&lt;/h3&gt;
&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;為了讓Host與Guest能後上網及互聯，簡單使用&quot;橋接模式&quot;方法就可以達到需求，但會因為不同Wifi AP所配發的DHCP網段不同，所以再host與guest所得的IP都會持續的變動，因此每次再使用MAC SSH連入guest之前都需知道配發的網路IP(比較麻煩)，且無法使用免認證登入之方式。&lt;/li&gt;
&lt;li&gt;如果依照網路的route行為來看，其實guest設定gateway為192.168.10.11到host的話，理論上host(mac)也應該可能將封包轉到Wifi AP上，然後可以進行上網？但小弟測試了許多方法我發現只要使用&quot;僅限主機&quot;方法的話，且route metric預設走僅限主機這邊的路由的話，就無法透過host將封包網外送，我最後的猜測是virtualBox的僅限主機這個方法的限制。&lt;/li&gt;
&lt;li&gt;總結來說，如果你要能夠透過host連取有固定IP的guest，且guest能夠正常上網的話，建議你測試看看本文章的方法，再guest上設定兩張網卡，一張走NAT，一張走僅限主機的方法。&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/4405310539440569812/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/10/virtualboxcentos.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/4405310539440569812'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/4405310539440569812'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/10/virtualboxcentos.html' title='如何解決移動裝置上的virtualBox與Centos網路規劃設定'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiNEHt6oGESvv1UwzBpTpjGj0NWGk_ghbDP94lLrSTWPnouiVjyqY3yoRpaZAwBZSPGWhJJHdNAKasovvce1_gHfRVWkkuxGXX8REPDLpOhVpwuSilAl5kQIIgg8VOhdOt7UjA2udt8nWo/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-05+%25E4%25B8%258A%25E5%258D%258811.25.17.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-1302660755376557939</id><published>2016-09-30T10:40:00.001-07:00</published><updated>2016-10-04T23:59:12.299-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="實驗室環境"/><title type='text'>VirtualBox的快照 刪除 匯出 再製的操作應用時機</title><content type='html'>小弟是個VirtualBox新手，最近花了一點時間測試驗證，因此將心得記錄並分享主要的應用時機。通常當你在Virtual安裝了某個OS後就會開始在上面進行一些系統上的軟體安裝或設定，會需要使用快照 刪除 匯出 再製的情境大致如下：&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;需求情境一：像Windows系統跑一陣子後都會越來越慢，而你就會想要恢復到美好單純快速的一開始!&lt;/li&gt;
&lt;li&gt;需求情境二：想要在Windows安裝某些網路上下載的破解版本，但又有點擔心安裝了後系統是否會出問題？是否會跳出一推廣告？&lt;/li&gt;
&lt;li&gt;需求情境三：在Linux下安裝軟體後出現library相容性問題，甚至造成系統某些功能無法正常運作？&lt;/li&gt;
&lt;li&gt;需求情境四：需要將原本設定好的主機複製成多個類似的主機，尤其是在大資料運用上，快速建置HDFS DataNode主機之需求&lt;/li&gt;
&lt;li&gt;需求情境五：我要將做好的虛擬主機搬移到其他host os上運行？要如何做到？&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
這些需求都可以使用VirtualBox(version 5.1.6)的快照，匯出，再製的功能幫你達到目的喔。&lt;/div&gt;
&lt;div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;h3&gt;
[快照]適用需求情境(一)(三)&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
當你在安裝軟體前 或 &amp;nbsp;系統變更前，都&lt;span style=&quot;color: red;&quot;&gt;強烈建議&lt;/span&gt;你進行快照的動作，這項操作其實就如名稱的字義一樣，幫你的系統拍一張照片永遠保存年輕(這是要付出代價的)，將系統目前的狀態儲存下來，像是程式版本控制的狀態寫入動作，讓你可以進行反悔的恢復動作(如下圖)。&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJS-X9iy1IpBmZWE_iP9yr_T0sTDBO7WygQN4OwKxmQA2xDxFGtg16_9P3u8BgP23KBOfsQwhPyhDffo4TD1uSU86-WI0Pj2Bgl4PHPLbGv2YUnZ6Ev65uwh4orLmp5zCw16RDldtKXdk/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-30+%25E4%25B8%258B%25E5%258D%258811.48.26.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;132&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJS-X9iy1IpBmZWE_iP9yr_T0sTDBO7WygQN4OwKxmQA2xDxFGtg16_9P3u8BgP23KBOfsQwhPyhDffo4TD1uSU86-WI0Pj2Bgl4PHPLbGv2YUnZ6Ev65uwh4orLmp5zCw16RDldtKXdk/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-30+%25E4%25B8%258B%25E5%258D%258811.48.26.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
如果你覺得安裝軟體後覺得心理毛毛，或是安裝後發現有問題系統無法正常運作，想要回到先前的狀態，那麼你就可以選擇還原動作(如下圖)，我想&quot;快照&quot;及&quot;恢復&quot;應該是很容易理解及操作的，難不倒聰明的大家啊。&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib8q-YPdlnqILbia8pKlZRyEr_0Qut0Y6bbP_ArpObUwKGidhsbPfP6Po5ryfw7XyKgGZonYfuLn9kEW1iiiOvVMVd1uwzd5WNLNbppDCw-d8Qx2Ge9QAaHMUBd1g1NguZuiqG1j7K1tk/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-30+%25E4%25B8%258B%25E5%258D%258811.56.37.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;194&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEib8q-YPdlnqILbia8pKlZRyEr_0Qut0Y6bbP_ArpObUwKGidhsbPfP6Po5ryfw7XyKgGZonYfuLn9kEW1iiiOvVMVd1uwzd5WNLNbppDCw-d8Qx2Ge9QAaHMUBd1g1NguZuiqG1j7K1tk/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-30+%25E4%25B8%258B%25E5%258D%258811.56.37.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
不過，當你執行VirtualBox很長一段時間，而且你也善用快照功能，常常自我照相保持青春的&lt;strike&gt;肉體&lt;/strike&gt;系統後，你會發現你的硬碟空間越來越少了，怎麼會這樣呢？因為為了讓你像多拉Ａ夢的時光機，神奇的讓你能夠恢復到歷史保存的任何一個快照，VirtualBox都會使用你的硬碟空間來記錄這些資訊，時間越久，快照越多硬碟吃的空間就越多。例如以下兩個圖是小弟的系統快照及使用的空間資訊，其中DevCentOS3的虛擬主機系統大約也才2.1G左右，但是整體VirtualBox空間使用到大約5.3G&amp;gt;__&amp;lt;。你可以看到為了保存快照使用的空間有多少，而且我才使用3天而已說，空間已經超過一倍了，果然保持青春是要付出代價的。&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiapfnnyqD09PCPLZszZkgProDSnJvmAt3E3ToYlKRZLPhj4fvnV84WDNL5yt6OiRpPMOPU8z5sGxJ5Op84eEDfanuHhxfE-LgyCY2bKaU9a0FwwXW_a_nlK0k-3KI3UnRG46VB3N36zIA/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.03.42.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiapfnnyqD09PCPLZszZkgProDSnJvmAt3E3ToYlKRZLPhj4fvnV84WDNL5yt6OiRpPMOPU8z5sGxJ5Op84eEDfanuHhxfE-LgyCY2bKaU9a0FwwXW_a_nlK0k-3KI3UnRG46VB3N36zIA/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.03.42.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiruEoAltP_i424LSyLgM9xWu73wNK_jxOALc6LqWIF5Pk5e3bZq4S1ikTegnm6sPyCnr1tEO6xbNnpGZ6ygvs4HLRps4BcC-EXXGay7nddrLTOlYPEb6Vv67uzodcVogtVMgYxD6W1EdI/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.00.54.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;226&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiruEoAltP_i424LSyLgM9xWu73wNK_jxOALc6LqWIF5Pk5e3bZq4S1ikTegnm6sPyCnr1tEO6xbNnpGZ6ygvs4HLRps4BcC-EXXGay7nddrLTOlYPEb6Vv67uzodcVogtVMgYxD6W1EdI/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.00.54.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
DevCentOS3這個虛擬主機上的空間整體約5.3G，為了減少這個問題可以進行快照的刪除動作，系統將會你刪除的狀態與下一個保存的狀態合併在一起，如此就可以減少系統的使用空間了。例如小弟將原本照片中的&quot;python3_make&quot;快照刪除，就會併入到&quot;vim_make_config_well&quot;的狀態(從5個快照變成4個)，而空間就會變少到4.12GB空間大小，少了快要1G左右喔(如下圖)。也就是說當你已經確認中間某些快照的狀態已經不需要的時候，就可以將他刪除，可以節省下來的空間是很可觀的喔。&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiOkjNVaV09GaFnTbJGHgmxvrF98TQOkLJ8jkEGN4qajKN9YPfSAyd9FyXdN16F7fcC5HghoQsczhfK0q2JSI_-dq8QIG3zAaGZXpVHYFRcqLAJofvoJEfTm8SZ6AXcmXDrTqgdRiGH448/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.12.38.png&quot; imageanchor=&quot;1&quot;&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR0oZoRcEobvlJZn_zl8Jty2WlfdZFxUGbhYxO6ybM0I_QDmveXTgtXY2BW0CknVxEro0-GVe-xIFxzOSTOTKreNmSDs9SYp5OOVevLkps9vtrCrEYtY0gCXhVPWswbQxcYYzUwD1UGDo/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%25881.14.24.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;216&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiR0oZoRcEobvlJZn_zl8Jty2WlfdZFxUGbhYxO6ybM0I_QDmveXTgtXY2BW0CknVxEro0-GVe-xIFxzOSTOTKreNmSDs9SYp5OOVevLkps9vtrCrEYtY0gCXhVPWswbQxcYYzUwD1UGDo/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%25881.14.24.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuPr9dS0gx7X5m8IMusRdFNYX8qjpr0FVrRJDaV5tdVV3JB-oW-KzEa_YcqfykpGkpMTG3tl8o613pwuhq4J_s3JSJKSC8qXeZzQeYsMPGxaDeUEhwz-MTR3VV5ihkRyDvuupvC_kVoV4/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.12.38.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;144&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiuPr9dS0gx7X5m8IMusRdFNYX8qjpr0FVrRJDaV5tdVV3JB-oW-KzEa_YcqfykpGkpMTG3tl8o613pwuhq4J_s3JSJKSC8qXeZzQeYsMPGxaDeUEhwz-MTR3VV5ihkRyDvuupvC_kVoV4/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.12.38.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;h4&gt;
[再製]適用需求情境(二)(四)&lt;/h4&gt;
&lt;div&gt;
使用快照就會吃到硬碟的儲存空間，當你在系統初始完美狀態(就像18歲美好的年代)，或者你覺得已經將系統設定到一個完美境界想要保存下來時(老婆說任何年齡都是#__^)，作為日後發展的基石時，就很適合使用&quot;再製&quot;。其實他的動作是將你所選取的快照，另外儲存成一個虛擬主機，有點像是寫程式版本控制上的release動作。而我自己的用法是在系統安裝到一個階段後，就使用再製產生一個新的虛擬主機，作為一個基礎(如圖中的CentOS7Release主機)，並在這個基礎上額外產生一個測試驗證的虛擬主機(如圖中的CentOS7Work主機)，讓自己在測試的過中可以時時互相比對照應。&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpBX2Xc0Y_lD7LNtwNIgDe38HXg7pefIsAWEjoaB23Rr0KnUbasEN-d6HXAkqTxenAc9HijUTXXfzyJDxlAbUQnCvYDa8TcllTtzcSnGlGv9A41p6LWTgpdpbP4wc7NHr8H288dN4IxD4/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.24.50.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;178&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgpBX2Xc0Y_lD7LNtwNIgDe38HXg7pefIsAWEjoaB23Rr0KnUbasEN-d6HXAkqTxenAc9HijUTXXfzyJDxlAbUQnCvYDa8TcllTtzcSnGlGv9A41p6LWTgpdpbP4wc7NHr8H288dN4IxD4/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.24.50.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3&gt;
[匯出/匯入]適合應用情境(一)(五)&lt;/h3&gt;
&lt;div&gt;
目前的VirtualBox已經發展倒有滿完整的功能，讓你可以輕鬆將設定的虛擬主機轉移到其他作業系統上運行，而這個功能就是使用匯出來達到(路徑是&quot;檔案/匯出應用裝置&quot;)，而且還可以一次匯出多個虛擬主機裝置，實在非常方便啊。小第自己是將這個匯出的檔案(.ova)上傳到雲端上保存，如果我的小NB發生問題時，就可以到其他環境上恢復我的虛擬主機。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5_ijiEUlbimiLUUBpg7hAorE5jST1eVa1Rpc6OTq6YKjXZCfk8_BMyeHgvHcAQq_-tOm_szlUb5IpkXWmXlDTkONUo9PuQ1y6cfOUCjXCN6eVVRJf7-1YEc9pRvT6i1_YMogVQ3yvLJA/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.38.28.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;223&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj5_ijiEUlbimiLUUBpg7hAorE5jST1eVa1Rpc6OTq6YKjXZCfk8_BMyeHgvHcAQq_-tOm_szlUb5IpkXWmXlDTkONUo9PuQ1y6cfOUCjXCN6eVVRJf7-1YEc9pRvT6i1_YMogVQ3yvLJA/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.38.28.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUHgmWr0DkN7jggsHrT3ddWOChDMrarSB_xhYGPzBsDkX6cyfjZ9crOgk-oP2xJAJ06b2sc9N37jt3e6JCvulaN12JZlu048fOzClKt0XgesMK00wp2zljR-N2ZF_PVR0XXpGfa2k-zIc/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.44.24.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;244&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhUHgmWr0DkN7jggsHrT3ddWOChDMrarSB_xhYGPzBsDkX6cyfjZ9crOgk-oP2xJAJ06b2sc9N37jt3e6JCvulaN12JZlu048fOzClKt0XgesMK00wp2zljR-N2ZF_PVR0XXpGfa2k-zIc/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.44.24.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
當然本機也可以讀取自己先前匯出的ova檔案喔，也可以達到類似再製的目的，讓你有一個新的虛擬主機可以測試驗證，程序是選擇&quot;檔案/匯入應用裝置&quot;，然後在畫面中設定一下新的主機名稱(如下圖的DevCentOS3_1名稱)，然後點選匯入後，系統就會產生一個新的名為DevCentOS3_1的主機。&lt;/div&gt;
&lt;div&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxhBkzxBTo8Rhw1bO59-nkhvWZ86fNx4CTax9nO30nmP2Dhl-LLPCEi8cvsppmda81pk12iEQUyCtiDGaXwbPGQc4v0rDb2ifho0zwsfVp1ygfEnBTTpUdKnO3HP0VDTQSmtva-WdaJz8/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.49.54.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;276&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhxhBkzxBTo8Rhw1bO59-nkhvWZ86fNx4CTax9nO30nmP2Dhl-LLPCEi8cvsppmda81pk12iEQUyCtiDGaXwbPGQc4v0rDb2ifho0zwsfVp1ygfEnBTTpUdKnO3HP0VDTQSmtva-WdaJz8/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.49.54.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZbn9J6vizjBYseRaPWDIBOQkammWQzi3VZQSvOpXUQbEoSfAR8a3-wgjD6XNE8PcxJjRsygN8Tzu8gqkJVSGhzRo3ZUGd7CsIgWLHs8FSlhBAS6L53SHsIpsWCdMblZQZm_bJrKIcoBI/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.55.08.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;208&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiZbn9J6vizjBYseRaPWDIBOQkammWQzi3VZQSvOpXUQbEoSfAR8a3-wgjD6XNE8PcxJjRsygN8Tzu8gqkJVSGhzRo3ZUGd7CsIgWLHs8FSlhBAS6L53SHsIpsWCdMblZQZm_bJrKIcoBI/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-10-01+%25E4%25B8%258A%25E5%258D%258812.55.08.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[結論]&lt;/div&gt;
&lt;div&gt;
恩，VirtualBox是免費的，發展至今已經算是滿足虛擬化的大多功能，推薦給大家使用拉。再寫這個分享文的時候，讓小弟想到一本很值得推薦的書--&lt;a href=&quot;http://www.books.com.tw/products/0010448791&quot; target=&quot;_blank&quot;&gt;Replay重播&lt;/a&gt;，這本書是1980年代出版的書籍，然後2009年重新發行，到現在已經快要40年了，還是受到許多讀者的喜愛，許多人都覺得很值得審思自己的人生，雖然目前也已經絕版了，但圖書館還借得到[&lt;a href=&quot;http://book.tpml.edu.tw/webpac/bookSearchList.do?search_field=FullText&amp;amp;search_input=replay%E9%87%8D%E6%92%AD&amp;amp;Submit=%E6%9F%A5%E8%A9%A2#search_field=FullText&amp;amp;search_input=replay%E9%87%8D%E6%92%AD&amp;amp;Submit=%E6%9F%A5%E8%A9%A2&amp;amp;resid=189005870&amp;amp;nowpage=1&quot; target=&quot;_blank&quot;&gt;點我&lt;/a&gt;]，請大家除了努力工之外(應該有吧)，也多想想自己是否有將某些重要及值得的時刻記錄下來，人的腦袋真的很特別，什麼都可以遺忘(這也算是好事，讓自己可以淡忘難過傷心的事情)，即使你在覺得自己年輕記憶力佳，但長久下來，許多美好的回憶就會慢慢的稍稍的走開。&lt;/div&gt;
&lt;div&gt;
人生，可以重來嗎？像是virtualBox一樣讓你可以輕易回到某個生命中的時刻點，你會想要重來嗎？其實我覺得人生是自己早已經選好的劇本，只不過我們都太過專注於劇場的演出，全心的投入到忘記自己其實是在經歷這自己選擇的一切，不管是後悔還是滿意，其實這，早就屬於自己的一部分。&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/1302660755376557939/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/09/virtualbox.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/1302660755376557939'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/1302660755376557939'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/09/virtualbox.html' title='VirtualBox的快照 刪除 匯出 再製的操作應用時機'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEiJS-X9iy1IpBmZWE_iP9yr_T0sTDBO7WygQN4OwKxmQA2xDxFGtg16_9P3u8BgP23KBOfsQwhPyhDffo4TD1uSU86-WI0Pj2Bgl4PHPLbGv2YUnZ6Ev65uwh4orLmp5zCw16RDldtKXdk/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-30+%25E4%25B8%258B%25E5%258D%258811.48.26.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-6822190314248095793</id><published>2016-09-29T02:47:00.000-07:00</published><updated>2016-10-05T03:04:55.056-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="數字實驗室"/><title type='text'>安裝CentOS 7，Python 3.5，VIM的過程記錄</title><content type='html'>小弟目前在進行財務報表分析的時候都透過excel的web query功能抓取個家公司財務報表，然後再依據相關準則進行excel畫圖表及邏輯自我解析，這樣的方法其實還滿不錯的，可以在很短的時間內達到分析之目的，而且圖表的方式可以讓人家更直覺的了解資訊的好壞。通常，我會有一個最新版的excel內建了web query及相關圖表，當我看到一家有興趣的公司時，我會複製此excel進行驗證後另存成新檔案，藉此跟別人分享這家公司的看法。但我遇到下列的問題：&lt;br /&gt;
&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;當自己學習到新的檢驗方法時，並加入excel後，要逐一調整舊有已存excel設定，無法修正後就應用到先前所儲存的公司分析檔案，如要一一更新其實滿辛苦的&lt;/li&gt;
&lt;li&gt;excel的分享有時候會跟用戶的環境有關，有時候會需要花時間告知對方，沒有像網頁如此般的方便&lt;/li&gt;
&lt;li&gt;無法達到自動化驗證功能，這功能在目前個大網站上又沒有類似的，或者是需要額外加入會員收費的。例如我想要找出3個月的營收平均數剛好突破12個月營收平均數的公司，這類資訊我無法透過excel一家家公司來計算(那會瘋掉)&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
以上第三個問題是我最想要改善的，因為台灣雖小但2千多間公司要一家家看，那真的實在太沒有效率了，因此我想要將這部分的功能自動化。初期的目標是能夠先將資料抓下來，然後計算財務報表相關數字，並將自己選股的概念部份實作來;長期目標是能夠將分析的作業透過big data技術運算，並透過網站的方式跟大家分享。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
哈哈，短期目標定下來了，因此我就將MAC安裝VM來進行實驗，而今天要跟大家分享的就是環境安裝及設定的過程拉。這些程序大致分成：&lt;/div&gt;
&lt;div&gt;
&lt;ol&gt;
&lt;li&gt;Centos 7安裝(version 7.2.1511)&lt;/li&gt;
&lt;li&gt;python安裝(version 3.5.2)&lt;/li&gt;
&lt;li&gt;vim安裝及設定(version 8.0.16)&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
python是程式語言，可以跨平台且是一個簡潔有效率的語言，而我會選擇他主要是因為未來big data這邊有許多模組也都支援python。而vi是linux系統中內建的文字編輯器，vim就是他的加強版，而vim的官方網站也認為他是很棒的程式語言編輯器，因為他有許多plugin可以進行編輯時的加強作業，基本的包含了關鍵字識別，auto completion ，還有debug及語法檢查功能。好吧～這就是我的基本作業組成，請繼續往下看^_^&lt;/div&gt;
&lt;h3&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;/h3&gt;
&lt;h3&gt;
[CentOS 7安裝]&lt;/h3&gt;
&lt;/div&gt;
&lt;div&gt;
環境上是在MAC，因此我希望透過vm的方式來進行測試驗證，可以跑的vm包含了，virtualBox,vmware fusio,parallel三套，只有virtualBox不用錢，因此首選就是它了。至於要選用的作業系統，其實ubuntu或centos都可以。我自己是首選ubuntu，但很難過的是他在安裝的過程中竟然一直在VM環境上裝不起來，而centos7是可以一次到位的。網路上描述透過virturlbox安裝作業系統的文章許多，小弟就將自己參考的Link分享出來。&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;&lt;a href=&quot;http://blog.aidec.tw/post/virtualbox-install-linux-centos&quot; target=&quot;_blank&quot;&gt;透過virtualbox安裝&lt;/a&gt;，過程中有兩個關於網路設定的注意事項是：&lt;/li&gt;
&lt;ol&gt;
&lt;li&gt;在網路與主機設定的功能上，請要點選&quot;開啟&quot;，不然預設安裝完畢後是不會開啟網路的。你就必須要透過cmd的方式來開啟，如果你不小心沒有開啟網路，請你參考 [&lt;a href=&quot;http://yenpai.idis.com.tw/archives/240-%E6%95%99%E5%AD%B8-centos-6-3-%E5%AE%89%E8%A3%9D-2%E7%B6%B2%E8%B7%AF%E8%A8%AD%E5%AE%9A%E7%AF%87&quot; target=&quot;_blank&quot;&gt;這裡&lt;/a&gt;] 來手動開啟網路。&lt;/li&gt;
&lt;li&gt;預設vitualbox上的網路是使用NAT設定，如果你的host os是可以上網的話，vm內的的作業系統就可以上網。但，在virtualBox的終端不是很好操作，包含貼上複製及操作上很不順手，因此我建議直接使用其他的ssh工具，例如putty或者Mac上的終端機登入到guest os進行作業。 因此你在virtual上的網路設定建議使用bridge(橋接介面卡，如下圖)，這樣可以方便的連線了。在使用橋接模式後guest OS起來後會得到一個與host os同網段的IP，因此只要知道guest OS的IP後就可連線囉。不過，我發現只要每次到不同的環境時，我的Guest OS與Host OS都會拿到不同的IP網段，因此我每次都必須要再確認一次IP網段才有辦法連線。小弟有另外一個取得固定IP的方法，請參考[&lt;a href=&quot;https://valueinvetorproject.blogspot.tw/2016/10/virtualboxcentos.html&quot; target=&quot;_blank&quot;&gt;如何解決移動裝置上的virtualBox與Centos網路規劃設定&lt;/a&gt;]文章。&lt;/li&gt;
&lt;/ol&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhhWTHJpMCucwYKihvxyjLAhsvzGk3Z2RIA1jPwDw1IT13okUuDvBoNyfHKyi1-nJZ-uPpmRqoo_UKu8gteNrFSPvZXu5qaZiUJfERnbDR-aI-HzGBP_9_kwZ4VlV50maRHGGA98hp_50/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25883.02.25.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;312&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhhWTHJpMCucwYKihvxyjLAhsvzGk3Z2RIA1jPwDw1IT13okUuDvBoNyfHKyi1-nJZ-uPpmRqoo_UKu8gteNrFSPvZXu5qaZiUJfERnbDR-aI-HzGBP_9_kwZ4VlV50maRHGGA98hp_50/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25883.02.25.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;centOS 7的iso檔案請按 [這裡] 下載，建議使用DVD iso(大約4G)。小弟手賤選擇了minimal iso(不到700MB)，然後自己要透過手動yum來安裝自己需要的軟體。不過minimal雖然基本，但是裡面的vim已經是7.4.16版本，而Python也已經是2.7.5的版本了。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
我想在OS上面的安裝應該不會有什麼大問題，但建議大家在安裝後也使用virtualBox的快照功能新存起來一份，然後再進行後續的系統異動，並且每次設定後如果測試OK的話，也請記得快照起來喔，這樣你可以在安裝軟體時不用擔心系統亂七八糟&amp;gt;＿&amp;lt;。只要自己想要返回先前的系統的話，都可以先將guest os關機後，再透過virtualBox的快照功能恢復喔。&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUKM2dx9_AYx3CYtdSfU5Fp1f8b3K1YCJaCYfH-APVTYIt-9B9YKIu8WwO6h3cxXZhRa-Pv5BB4zmKyUa9AymudpkXLBhMIzDKCK7-Evl8BI-Ne4NxbsJJO4Cdf9Ka17JmAx-fDalotjI/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25883.19.51.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;224&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjUKM2dx9_AYx3CYtdSfU5Fp1f8b3K1YCJaCYfH-APVTYIt-9B9YKIu8WwO6h3cxXZhRa-Pv5BB4zmKyUa9AymudpkXLBhMIzDKCK7-Evl8BI-Ne4NxbsJJO4Cdf9Ka17JmAx-fDalotjI/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25883.19.51.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-weight: normal;&quot;&gt;[python 3安裝]&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
啊～不是有python2.7.5了？為什麼還要裝python3? Python是一個很特別的語言，當時出了3的版本以後，竟然來一個&quot;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;不&lt;/b&gt;&lt;/span&gt;&quot;向下相容，這是我第一次看到的事情，也代表作者的理念，你可以google一下大致就知道了，請看 [&lt;a href=&quot;http://www.ithome.com.tw/voice/104207&quot; target=&quot;_blank&quot;&gt;這裡&lt;/a&gt;]。我認為python是一個好語言，我喜愛他的語法，因此打算直接使用最新的版本，因此就直接使用3.5.X版本。&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: left;&quot;&gt;
進入作業系統後打入python，可以得到系統的python資訊。如下：&lt;/div&gt;
&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
=====================================&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;Python &lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;2.7.5 &lt;/b&gt;&lt;/span&gt;(default, Nov 20 2015, 02:00:19)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)] on linux2&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;=====================================&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
基本就可以知道CentOS 7已經內建了python2.7版本，但python3呢?很抱歉再minimal ISO上面是沒有內建的，必須自己手動安裝。因此我找尋了一下網路安裝python的文章，請看 [&lt;a href=&quot;http://ask.xmodulo.com/install-python3-centos.html&quot; target=&quot;_blank&quot;&gt;這裡&lt;/a&gt;] ，這篇文章描述了安種安裝python3的方法，我看了一下，覺得2~3的方法比較簡單，因為不用自己編譯(第一種方法)，因此直覺就使用第2方法(Install Python3 from EPEL Repository)，基本的指令如下：&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;sudo yum install epel-release&amp;nbsp;&lt;/li&gt;
&lt;li&gt;sudo yum install python34&amp;nbsp;&lt;/li&gt;
&lt;li&gt;curl -O https://bootstrap.pypa.io/get-pip.py&amp;nbsp;&lt;/li&gt;
&lt;li&gt;sudo /usr/bin/python3.4 get-pip.py&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
以上這四個指令都可以正常運作，也可將python3安裝到centos上，一點問題也沒有。但，我在vim的整合上卻發現問題，使用centOS內建的vim 7.4.16版本時，他並不支援python2及python3，至於檢查的方法可以輸入vim --version，他會告訴你他有支援哪些語言。你可以發現預設的vim並不支援Python，包含2~3都沒有，圖中的&lt;span style=&quot;color: red;&quot;&gt;-python3&lt;/span&gt;代表不支援python3。#__@，哭哭。那我的vim整合Python要怎麼辦啊?&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw8EgJ7uqCZPv1BXdhPEqtj5eBvJNVfBRmX_Tcnq2YjjcfCCSodd5MHNOFZEm3LnXr4ggK-1H0XraPtDYJaBQASHyJaQcgK3wBMkFbHEXYflczpUmTvgzC4Zo8TFJ5tXr36qRPa4wc5fs/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25883.47.38.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;568&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjw8EgJ7uqCZPv1BXdhPEqtj5eBvJNVfBRmX_Tcnq2YjjcfCCSodd5MHNOFZEm3LnXr4ggK-1H0XraPtDYJaBQASHyJaQcgK3wBMkFbHEXYflczpUmTvgzC4Zo8TFJ5tXr36qRPa4wc5fs/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25883.47.38.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div style=&quot;text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
好吧，那我自己重新安裝vim總可以吧？因此依照官方網站的安裝方法，請看 [&lt;a href=&quot;http://www.vim.org/download.php#unix&quot; target=&quot;_blank&quot;&gt;這裡&lt;/a&gt;] 執行以下指令(這些指令執行後取得最新版本8.0)：&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;git clone https://github.com/vim/vim.git&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;cd vim/src&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;make&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;make install&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div&gt;
哈哈～悲慘的事情還是持續著，因為vim還是無法認識python?!&lt;/div&gt;
&lt;div&gt;
就這樣子小弟一直安裝，一直測試終於搞定了！基本上的程序是這樣的，需要先安裝python後在安裝vim，這樣vim才可以認識python&amp;gt;_&amp;lt;，而且建議都是使用make install的方式執行，只不過官方的文件都以&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;最簡單&lt;/span&gt;&lt;/b&gt;的設定來安裝，因此忽略了許多個人化的設定。小弟將最後成功的指令提供如下：&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;sudo yum install yum-utils&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;sudo yum-builddep python&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;curl -O &amp;nbsp;&lt;span class=&quot;s1&quot;&gt;https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tar.xz&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;tar xf&amp;nbsp;&lt;span class=&quot;s1&quot;&gt;Python-3.5.2.tar.xz&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;cp Python-3.5.2&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;./configure &lt;b&gt;&lt;span style=&quot;color: red; font-size: large;&quot;&gt;--enable-shared&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;make&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;make install&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;br /&gt;
&lt;div&gt;
以上的第6步驟的參數非常重要，一定要加上enable-shared，因為這樣建出來的library才可以讓其他的應用程式參考執行！小弟一開始建立的時候都沒有輸入此參數，在安裝完python後可以透過python --version來確認版本且執行，而且在vim的configure階段也可以看到他認出python3，以為已經OK了，沒有到在後續vim整合設定的時候還是出錯。因此請記得一定要加入--enable-shared喔。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
基本上如果你沒有加入此參數並進行安裝的話，在/usr/local/lib下看到的檔案會是libpython3.5m.&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;a.&lt;/b&gt;&lt;/span&gt;1.0，而非libpython3.5m.&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;so&lt;/b&gt;&lt;/span&gt;.1.0。因此你可以自己檢查一下喔。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
但，以上的步驟安裝完後你執行python3的時候，會出現以下的錯誤。&lt;/div&gt;
&lt;div&gt;
================================================&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;$ python3&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;python3: &lt;span style=&quot;color: red;&quot;&gt;error while loading shared libraries: libpython3.5m.so.1.0: cannot open shared object file: No such file or directory&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;================================================&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
你可以輸入以下command來檢查python3的library連接情況，你可以發現系統無法找到libpython3.5m.so.1.0這個檔案。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
================================================&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;$ ldd /usr/local/bin/python3&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;linux-vdso.so.1 =&amp;gt;&amp;nbsp; (0x00007ffdfe367000)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;b&gt;&lt;span style=&quot;background-color: #fff2cc; color: red;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;libpython3.5m.so.1.0 =&amp;gt; not found&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;libpthread.so.0 =&amp;gt; /lib64/libpthread.so.0 (0x00007fcbf15cb000)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;libdl.so.2 =&amp;gt; /lib64/libdl.so.2 (0x00007fcbf13c7000)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;libutil.so.1 =&amp;gt; /lib64/libutil.so.1 (0x00007fcbf11c4000)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;libm.so.6 =&amp;gt; /lib64/libm.so.6 (0x00007fcbf0ec1000)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;libc.so.6 =&amp;gt; /lib64/libc.so.6 (0x00007fcbf0aff000)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;Apple-tab-span&quot;&gt; &lt;/span&gt;/lib64/ld-linux-x86-64.so.2 (0x00007fcbf17f1000)&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;================================================&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
這個問題主要是因為系統不會去usr/loccal/lib目錄下找尋檔案，因此你可透過以下的指令來設定，最簡單是直接在bash下執行export LD_LIBRARY_PATH=/usr/local/lib，然後你的python3就可以執行了，但這樣的問題是你每次重新登入後都會發生問題，因此建議你將此指令加入到/etc/bashrc檔案中，這樣不管是哪個用戶都可以享用這個福利拉。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
以上說明到這裡已經完成了python3的安裝，那python2怎麼辦？可以這樣重新安裝2嗎?小第想說一不做二不休，就給他依樣畫葫蘆完成了python2.7.12版本安裝了，在vim的整合上一點問題也沒有。但，另一個災難發生了，因為CentOS的軟體安裝套件yum是使用python寫的，而且是基本是設定依存2.7.5版本，而我手賤更新後，yum就無法執行了。情況如下：&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
================================================&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;$ yum&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;There was a problem importing one of the Python modules&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;required to run yum. The error leading to this problem was:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&amp;nbsp;&amp;nbsp; No module named yum&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;Please install a package which provides this module, or&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;verify that the module is installed correctly.&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;It&#39;s possible that the above module doesn&#39;t match the&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;current version of Python, which is:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;2.7.12 (default, Sep 27 2016, 00:25:08)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;If you cannot solve this problem yourself, please go to&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;the yum faq at:&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;&amp;nbsp;&amp;nbsp;http://yum.baseurl.org/wiki/Faq&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;================================================&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;以上這個問題雖然網路上有些解法，但我這邊試不出來，因此只好GG放棄了，也就是說我的系統中依然使用預設的2.7.6版本，因此在後續的vim設定中，只專注在python3上的整合。&lt;/span&gt;&lt;/div&gt;
&lt;h3&gt;
[vim 8安裝]&lt;/h3&gt;
&lt;div class=&quot;p1&quot;&gt;
哇～～好棒棒，終於進展到最後一個vim的步驟了，基本上依照官方做法是一定會失敗的，因此請你依據以下的方法來安裝。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
如果你先前已經有安裝vim的話，請你進入下載的vim目錄，並輸入rm src/auto/config.cache，將先前的設定暫存檔案清除，然後再執行以下的步驟喔。&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;ol&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;git clone https://github.com/vim/vim.git&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;cd vim&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;./configure --prefix=/usr/local --enable-multibyte &lt;span class=&quot;s2&quot;&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;--enable-python3interp&amp;nbsp;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;--with-features=huge&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;make&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;&lt;span style=&quot;background-color: #fff2cc;&quot;&gt;make install&lt;/span&gt;&lt;/li&gt;
&lt;/ol&gt;
&lt;div&gt;
基本上再第三個步驟的時候你應該要可以看到以下的文字，代表vim認得python3的相關資訊，並且會支援他喔，如下圖&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdJCWd-dj16c_vfwXGlXc3kDEFPlCI9bLtZeKwDIzUR0eTZg-SVuskuIIET_BN7WoGOr2wX_E_tVoPyh_NYAZ_NFTqD9wYXU-qK3jxZyzKJJBgJXsjssHr-Ul5Oh-medHFEFZYxs0RS-c/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25885.21.57.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;134&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdJCWd-dj16c_vfwXGlXc3kDEFPlCI9bLtZeKwDIzUR0eTZg-SVuskuIIET_BN7WoGOr2wX_E_tVoPyh_NYAZ_NFTqD9wYXU-qK3jxZyzKJJBgJXsjssHr-Ul5Oh-medHFEFZYxs0RS-c/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25885.21.57.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
完成以動作後，你可以進入vim然後執行&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;:python3 import sys; print(sys.version)&lt;/b&gt;&lt;/span&gt;指令，你應該可以看到以下的內容，那就真是恭喜你完成了相關設定。&lt;/div&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;3.5.2 (default, Sep 27 2016, 09:15:11)&amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: #fff2cc;&quot;&gt;[GCC 4.8.5 20150623 (Red Hat 4.8.5-4)]&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/6822190314248095793/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/09/centos-7pythonvim.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/6822190314248095793'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/6822190314248095793'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/09/centos-7pythonvim.html' title='安裝CentOS 7，Python 3.5，VIM的過程記錄'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjhhWTHJpMCucwYKihvxyjLAhsvzGk3Z2RIA1jPwDw1IT13okUuDvBoNyfHKyi1-nJZ-uPpmRqoo_UKu8gteNrFSPvZXu5qaZiUJfERnbDR-aI-HzGBP_9_kwZ4VlV50maRHGGA98hp_50/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-29+%25E4%25B8%258B%25E5%258D%25883.02.25.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-6863346234092202705</id><published>2016-09-21T01:35:00.000-07:00</published><updated>2016-09-21T05:45:29.238-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="數字觀察"/><title type='text'>崑鼎(6803)105年Q1財務報表閱讀</title><content type='html'>&lt;h3&gt;
[說明]&lt;/h3&gt;
&lt;div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot; style=&quot;background-color: yellow;&quot;&gt;&amp;nbsp;(本文並非投資建議，內容謹是小弟自我紀錄用途，如數字如有誤差的話，請以公開資訊觀測站為主，本部落格不負任何盈虧之責！) &amp;nbsp;&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;崑鼎是一家控股公司，本身主要是由中鼎投資成立的(58%)，投資有許多子，孫公司，進行廢棄物回收，電源回售，設許焚化爐營運服務費。以2015年的營收比重如下，主要營收是在&lt;span style=&quot;background-color: #ffe599;&quot;&gt;垃圾處理&lt;/span&gt;及&lt;span style=&quot;background-color: #ffe599;&quot;&gt;處理後的電力回售&lt;/span&gt;，並加上焚化爐的經營維運收入。而目前垃圾量維持約420頓，且在環保觀念上量可能會持續下降，因此如要增加營收的話，就必須在其他服務項目上增加營收，或者開發其他國家地區，如瑞鼎(澳門區)的營收貢獻大約都有10%~13%左右，但在105Q1卻貢獻出7.6億的營收，比平常的6億多的營收，一下子拉升到47%。小弟認為這應該不是一般性營收，因為在105 Q2其相關月份營收就恢復到日常的水準，後續會在探討一下。&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;31%處理政府保證垃圾量之處理費&lt;/li&gt;
&lt;li&gt;32%回售保證垃圾量的電力收入&lt;/li&gt;
&lt;li&gt;15%特許服務(管理焚化爐)&lt;/li&gt;
&lt;li&gt;3%清運管理&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;子孫公司非常多，一定要畫圖才看得懂，圖一是從moneydj上的文字自己繪圖出來的，並且加上了主要的服務項目內容，還有許多關係我並沒有畫出來，信鼎＋暉鼎＋瑞鼎＋倫鼎＋裕鼎這五間公司的營收佔了集團的99%營收，大部份是處理國內業務(約86%)，處理國外的業務應該有瑞鼎(沒有加入)，而其中信鼎還有投資祥鼎及廣鼎分別負責大陸業務。並提供一張從財報上擷取出來的投資關係如圖二，這張圖的關係還真的有點像是蜘蛛網，看的看得眼睛好花。另外，就如圖二所說的，這些公司都有列入財務報表內容喔。&lt;/li&gt;
&lt;/ul&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6qOb9XVF-i1SCsNjSADGDNDdZWLv81mNZvUis1ILrG2_Z5tvHVFGuYmIbRok_5NooGLd3QuxjGB7vIuLXHjL4YWV5yLcxQN4pu-fFDvfJ-SL0EZo7w8nL_Hqj14qWSGpNEOubJRIOsFU/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258A%25E5%258D%258810.58.35.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;361&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6qOb9XVF-i1SCsNjSADGDNDdZWLv81mNZvUis1ILrG2_Z5tvHVFGuYmIbRok_5NooGLd3QuxjGB7vIuLXHjL4YWV5yLcxQN4pu-fFDvfJ-SL0EZo7w8nL_Hqj14qWSGpNEOubJRIOsFU/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258A%25E5%258D%258810.58.35.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
(圖一)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;/div&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8LQvxNLInLIwQkCI7ExujdQ7FAIT_2bYFG0gZUcIfS223tocoCy0C7evNJZVZH-DPprSJoOVjLpRinpOIaOH4lGkmp1NqwpyQHjoYSsxuCdW7SVUj5u1zLeKDdKnwT8fsW3loc6KZ20M/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25882.43.55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;408&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg8LQvxNLInLIwQkCI7ExujdQ7FAIT_2bYFG0gZUcIfS223tocoCy0C7evNJZVZH-DPprSJoOVjLpRinpOIaOH4lGkmp1NqwpyQHjoYSsxuCdW7SVUj5u1zLeKDdKnwT8fsW3loc6KZ20M/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25882.43.55.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
(圖二，來源公司財務報表)&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;clear: both; text-align: left;&quot;&gt;
[財報條件分析]&lt;/h3&gt;
&lt;div&gt;
財報的分析規則請參考 &lt;a href=&quot;https://valueinvetorproject.blogspot.tw/2016/09/blog-post.html&quot; target=&quot;_blank&quot;&gt;這裏&lt;/a&gt;&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;ROE分析(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;年ROE從100年以來下降到20以下後就一直維持在17~18之間，而季的ROE數值也都很穩定，除了105 Q2突然應為瑞鼎營收大大上升，而ROE的變化主要也是因為營業利益的減緩。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglYpXF7IfF7oNQPNzfqZwfoc4AAyYI7H8KkNyRLXmGh3zWWWHeiw8CtMWM0hCqm3KTcSCx6ZqwyUXd0nn3J1jhVC96RvpoXslw6Fzszc1UCapeNBAFPLM-atJh85x6Mj5KcZpWa5qNCw4/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.27.26.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEglYpXF7IfF7oNQPNzfqZwfoc4AAyYI7H8KkNyRLXmGh3zWWWHeiw8CtMWM0hCqm3KTcSCx6ZqwyUXd0nn3J1jhVC96RvpoXslw6Fzszc1UCapeNBAFPLM-atJh85x6Mj5KcZpWa5qNCw4/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.27.26.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;營收年增加率(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;這兩年多來都持續小幅增加，是個很穩定的現象。至於105年3月的營收應該是子公司瑞鼎所貢獻的，小弟猜測應該是某個工程結束後的款項營收(如果有人知道答案的話，再請分享一下吧)。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_pveGWF5HGEsIuOmIzc8_XES5WpLpdPkFB6lOcvAqTn9VNlAYZPK48ARYwRWUTc1I8XATiD9iVd7P6SWB0slPVXUGxhQtBRder389Uyl-4IXcOLwH6ac1f7l4omeXbbrBVia6HM8QQZI/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.32.51.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;153&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi_pveGWF5HGEsIuOmIzc8_XES5WpLpdPkFB6lOcvAqTn9VNlAYZPK48ARYwRWUTc1I8XATiD9iVd7P6SWB0slPVXUGxhQtBRder389Uyl-4IXcOLwH6ac1f7l4omeXbbrBVia6HM8QQZI/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.32.51.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;ul&gt;
&lt;li&gt;營收年增加率動能(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;雖然每月的營收年增加率都是正數，但都僅是小幅增加，因此整體的營收動能並未有強勁的提升，直到105年3月份，不過還是必須要看後續的表現喔。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVoSd3H3D4EngFJDWG3Iq81JXNhPF-hzqzZcCBIS0XV5BIk4_cBjT-FT0WFferCApp-CK9KEAfnfdfRUTivtrJGXFuLcqqjrrS-mTa60lvKV40bh_EH71NjqVc32kofjS4AirmFIJ2SQk/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.36.27.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;118&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhVoSd3H3D4EngFJDWG3Iq81JXNhPF-hzqzZcCBIS0XV5BIk4_cBjT-FT0WFferCApp-CK9KEAfnfdfRUTivtrJGXFuLcqqjrrS-mTa60lvKV40bh_EH71NjqVc32kofjS4AirmFIJ2SQk/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.36.27.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;盈餘品質(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;公司不管是季 或 年的營收現金流量都大於營收及稅後淨利，代表有實質的現金流入&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ9SJoQWy-tnDSmxhID3sKKOT7-5vYyumVskp9DOl219xzounhV6PEN_V8ntFHyRSQ9fPo4FDaI7A26s-5woh79IYOgcqLl53yKu0endYZ9O0JrdihCf5Tw9V_S_VrV6uPUwtJpVxKHrM/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.43.55.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;184&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjZ9SJoQWy-tnDSmxhID3sKKOT7-5vYyumVskp9DOl219xzounhV6PEN_V8ntFHyRSQ9fPo4FDaI7A26s-5woh79IYOgcqLl53yKu0endYZ9O0JrdihCf5Tw9V_S_VrV6uPUwtJpVxKHrM/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.43.55.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;自由現金流量(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;在季及年的自由現金流量都是正數，除了105 Q1因為多了一個&quot;其他流動負債&quot;的調整項(5.8億)造成營業現金流量成為負數。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0pXxLqgs0v0Zk4FlabVvWoOTT64FekLEh_-dwczhRM8P_sdQU5yF276ItFai2e481nlTQbqmphU5G3pZyfM06UyMGDYxeVwOen2ejW6peesPC2jdazD0WiK6x9YAOy3nmrxmzHWPk7rs/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.45.44.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;160&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEi0pXxLqgs0v0Zk4FlabVvWoOTT64FekLEh_-dwczhRM8P_sdQU5yF276ItFai2e481nlTQbqmphU5G3pZyfM06UyMGDYxeVwOen2ejW6peesPC2jdazD0WiK6x9YAOy3nmrxmzHWPk7rs/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.45.44.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;每股自由現金配股率比(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;這幾年都在門檻值以內，代表所發出的股利能夠由營收來支付。數值在100以內都算ＯＫ喔。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguLMv_ZFYCGjRsDjJtpa6URnawtM0H8lVkVROECbYUMKAuk5fQ3wJYppbX-vV8gbkO3M8z0itR2rVenxyDwsz1eCXJqdnsDAqgK1GdmtHcFz6xebGa7faZ2vewwoR50MxPX5fGZAS88KE/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.52.23.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;305&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEguLMv_ZFYCGjRsDjJtpa6URnawtM0H8lVkVROECbYUMKAuk5fQ3wJYppbX-vV8gbkO3M8z0itR2rVenxyDwsz1eCXJqdnsDAqgK1GdmtHcFz6xebGa7faZ2vewwoR50MxPX5fGZAS88KE/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.52.23.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;淨值分析(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;崑鼎的股東權益可使用資金算是滿豐富的，而其中的資本公積比保留盈餘還要來得多，代表該公司的營收主要都是由業外營收而來，這主要的原因是崑鼎本身就是一家控股公司，因此營收主要都來自於子孫公司，因此在資本公積這邊會超過保留盈餘應該是正常的。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwjKiH1NXzZ9P8it-H3ExnfJHItkPHq0hy9vYcE8FKLhla9gAz-Kdzbz50ycZcngV7SsmD-ZR-G6EXvNoMKzcZGpcxf1KWyGrV6Sl8zzQZhmtuLNJkO_nliH76LHoQiIxi6I-ZquuJf88/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.55.17.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;148&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgwjKiH1NXzZ9P8it-H3ExnfJHItkPHq0hy9vYcE8FKLhla9gAz-Kdzbz50ycZcngV7SsmD-ZR-G6EXvNoMKzcZGpcxf1KWyGrV6Sl8zzQZhmtuLNJkO_nliH76LHoQiIxi6I-ZquuJf88/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25883.55.17.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;長短期負債(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;公司從100年開始就陸續減少負債，到102年負債佔資產的比例就低於40以下了。&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb6UtPgDx-ZSE8pc8v6XRRUoIoB8CazUuKswhyphenhyphenRemWYnm4S5arcr5KnV3BNQxCEoMdOmXlvYknD9jN6TXi_wursnd6Of42NIkjzJKfnP_0AKpf61Y-9qMiKv811GqxgwdIrSlt8csvyjs/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25884.01.47.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;207&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjb6UtPgDx-ZSE8pc8v6XRRUoIoB8CazUuKswhyphenhyphenRemWYnm4S5arcr5KnV3BNQxCEoMdOmXlvYknD9jN6TXi_wursnd6Of42NIkjzJKfnP_0AKpf61Y-9qMiKv811GqxgwdIrSlt8csvyjs/s400/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25884.01.47.png&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;償債能力(通過)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;公司的償債能力也是沒有話說，從103年起就小於一年&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAvYg1NYj9KjDdtDTgtCWdjbiK1sYh8QnuD_AOnxSGEXBeChgmzSo38wzew18rv0fd-iEii3FYNsjQ4EMKpavztOe5yCfNNmP3oJbEbGQPQWXQPhYk8tDZsUpQ21Gi2r2yu50HLsuUFdE/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25884.08.02.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;168&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhAvYg1NYj9KjDdtDTgtCWdjbiK1sYh8QnuD_AOnxSGEXBeChgmzSo38wzew18rv0fd-iEii3FYNsjQ4EMKpavztOe5yCfNNmP3oJbEbGQPQWXQPhYk8tDZsUpQ21Gi2r2yu50HLsuUFdE/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25884.08.02.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
[結論]&lt;/div&gt;
&lt;div&gt;
&lt;ul&gt;
&lt;li&gt;以下的圖表是以105年9月19日的盤後資訊及最近四季財報資料來估算的，相關數值主要是參考用，並非投資建議喔，任何的投資行為請自行決策及考量風險喔。從歷史的高低本益比，彼得林區評價法來看，目前的股價尚未進入安全邊際的購買區間。&lt;/li&gt;
&lt;li&gt;崑鼎的營業特性其實並不會受到大環境的改變而有太激烈的變化，而且在部分服務上還有特許權，我自己覺得算是有護城河的意味，日後其他區域的服務業如果也能開發的話，是還算是個滿不錯的公司，因為垃圾是一定需要且要人來處理的拉...^_^。只不過，這是一家以控股公司成立的型態，我比較不偏向這類的投資標的。&lt;/li&gt;
&lt;li&gt;公司的現金股利發放率都超過85成，代表將大多的營收都歸還給股東，在成熟產業上就看這個發放率多寡囉。&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2zvzaTPOfY00INOho41NmVND51ti4xTUu5V9DDtcPjSV2puCQcu_JDPibtc0INfBdOp95Y-48uapPYakoBZr2NrV5q_DYmOxxbS5nBicXPxcFUMuN-eON_18g8MikX5wn2QNbyfbUfx0/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25884.13.37.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;92&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj2zvzaTPOfY00INOho41NmVND51ti4xTUu5V9DDtcPjSV2puCQcu_JDPibtc0INfBdOp95Y-48uapPYakoBZr2NrV5q_DYmOxxbS5nBicXPxcFUMuN-eON_18g8MikX5wn2QNbyfbUfx0/s640/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25884.13.37.png&quot; width=&quot;640&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3N-y5iQBr-PRirV2SOMeEISyfJ0hfVOTMo1sxFXaqoMaaFWjqN6qXdBUkFUX_J1-SLifuztc6SMDLK05YUgkyaPEXEKJzz7ZBGu0KjVAauljARnexfgc4YkFES3z2rzsB73qPBPu83Is/s1600/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25884.20.40.png&quot; imageanchor=&quot;1&quot; style=&quot;margin-left: 1em; margin-right: 1em;&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;200&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEj3N-y5iQBr-PRirV2SOMeEISyfJ0hfVOTMo1sxFXaqoMaaFWjqN6qXdBUkFUX_J1-SLifuztc6SMDLK05YUgkyaPEXEKJzz7ZBGu0KjVAauljARnexfgc4YkFES3z2rzsB73qPBPu83Is/s320/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258B%25E5%258D%25884.20.40.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/6863346234092202705/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/09/6803.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/6863346234092202705'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/6863346234092202705'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/09/6803.html' title='崑鼎(6803)105年Q1財務報表閱讀'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEg6qOb9XVF-i1SCsNjSADGDNDdZWLv81mNZvUis1ILrG2_Z5tvHVFGuYmIbRok_5NooGLd3QuxjGB7vIuLXHjL4YWV5yLcxQN4pu-fFDvfJ-SL0EZo7w8nL_Hqj14qWSGpNEOubJRIOsFU/s72-c/%25E8%259E%25A2%25E5%25B9%2595%25E5%25BF%25AB%25E7%2585%25A7+2016-09-21+%25E4%25B8%258A%25E5%258D%258810.58.35.png" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-2400835634719877045</id><published>2016-09-20T07:47:00.002-07:00</published><updated>2016-09-21T05:39:43.530-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="核心觀念"/><title type='text'>財務報表分析的核心概念</title><content type='html'>&lt;br /&gt;
&lt;h2&gt;
&lt;b&gt;&lt;span style=&quot;font-size: large;&quot;&gt;[說明]&lt;/span&gt;&lt;/b&gt;&lt;/h2&gt;
財務報表分析的書很多，有很扎實的在三個報表中依序介紹說明，有的著重在觀念上的說明，每一本都很有特色及內涵，每次的閱讀都會獲得不同的心得，本篇文章是相關的摘要節錄，也是我進行分析時的審視條件。&lt;br /&gt;
&lt;br /&gt;
這些審視條件(Ａ～Ｃ區)就像是健康檢查時的項目，當有不符合的地方就像體檢紅色項目，越多就代表情況越糟糕。要投資就要找越健康且自己能夠瞭解的公司，然後再透過Ｄ區的內涵價值來瞭解不同計算方法下的合理價格，雖說每種方法論的價格都不一樣，&lt;span style=&quot;background-color: #ffe599;&quot;&gt;但可藉由與目前股價相比，如果股價都符合(低於)所有內涵價值的計算結果，那更說明目前公司的股價是個風險低的價格區間，適合長期持有&lt;/span&gt;。&lt;br /&gt;
&lt;br /&gt;
&lt;a name=&#39;more&#39;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
這篇文章的內容我主要儲存在evernote，方便我更新。&lt;a href=&quot;https://www.evernote.com/shard/s50/sh/f34bc5dc-cb46-4417-a89a-1eebcebbb9f2/49ed3371c59156b98220b7ad811872f2&quot; target=&quot;_blank&quot;&gt;link請點我&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;h3&gt;
[A 整體-核心指標］ &lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;股東權益報酬率要致少達到12%(最近一年)，歷年來的數值應該是要平穩的&amp;nbsp;&lt;/li&gt;
&lt;li&gt;營收年增率 ，如果持續三個月由負轉正就可以買入，由高轉低就需離手（黃國華，財務自由的講堂，p34）&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;可以看累積營收年增率與去年的差值，如果小於0的話代表成長動能已經下降(郭恭克)&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;營業利益的高低及穩定性，如果突然下降超過30%則是個警訊（黃國華，財務自由的講堂，p71）&amp;nbsp;&lt;/li&gt;
&lt;li&gt;盈餘品質指標：營業現金流/稅後淨利，代表有多少比例是營業活動賺進的現金，100%以上是好公司應該要有的表現(雷浩斯P 88)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;股本的增減與股本的形成，比較好的是保留盈餘增資，再來是基本公積，再來才是現金增資。且股東權益內的保留盈餘應是最主要的組成，當資本公積比保留盈餘多的時候就代表非本業的經營較多，本業產生現金之能力不足。&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;h3&gt;
［B 損益及資產負債］ &lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;盈再率(盈餘再投資率)： 小於40是優的， 大於80不好，大於200代表就是爆了&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;(長投4+固資4-長投0-固資0)/(淨利1+淨利2+淨利3+淨利4).&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;金融負債，意指短期借款，應付商業本票，一年內到期長期負債 ，長期負債。這四個數字的累積所佔總負債的變化才是重點。(財富的自由，黃國華)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;負債償還年數：公司負債總額(或長期負債)/當年淨利，數字可以看出負債大約要多少年才可以償還，越少代表公司償債能力很強。基本上小於3年的話就算是滿不錯的喔。(巴菲特的媳婦)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;折舊比例 ，折舊通常分佈在銷貨成本 與 營業費用。當折舊比例低的時候，營收的上升就可以比較直接反應到獲利上。 (黃國華)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;折舊負擔比率=當期折舊 ／當期營收(或當期毛利)&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;未折舊比例=1-（累積折舊／廠房設備(房屋及建築成本+機器及儀器設備成本+其他設備成本)）&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;存貨營收比＝當季存貨/該季的收入，越小越好。存貨的增加會對現金流量是減少的&amp;nbsp;&lt;/li&gt;
&lt;li&gt;無形資產，無形資產在臺灣往往不大具有實質的營收效果，因此突然變大的話，往往都是日後認列虧損的開始 。計算方法=無形資產／淨值比例，超過30就不要碰。&amp;nbsp;&lt;/li&gt;
&lt;li&gt;轉投資的種類中是否有許多的［備供出售］，此種投資法的虧損都不會反應到EPS，而是直接天長股東權益中扣除。&amp;nbsp;&lt;/li&gt;
&lt;li&gt;流動負債突然增加的時後，有可能是股東會決議發放現金股利，發放將造成股東權益之減少，並在應付現金的地方造成增加。&amp;nbsp;&lt;/li&gt;
&lt;li&gt;應收帳款及存貨(財報秘密P95)，以下是檢查方法。毛利較低的中下游公司更應該要注意應收及存貨的數字，不然很容易有流動周轉的危機&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;應收及存貨之年增率是否大於營收增加之比例(應收及存貨佔營收的比例是否上升)&amp;nbsp;&lt;/li&gt;
&lt;li&gt;應收及存貨加總的比例超過總資產60%&amp;nbsp;&lt;/li&gt;
&lt;li&gt;超過150天收現天數(應收款項*365/銷貨)&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;負債安全性高底檢視(財報的秘密P123)，越後面越嚴重&amp;nbsp;&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;第一級：長期資金(長期負債及股東權益)無法支應長期投資與固定資產淨額，代表以短支長，營運資金將手到侵蝕&amp;nbsp;&lt;/li&gt;
&lt;li&gt;第二級：營業現金流量不足支應融資本金及利息&amp;nbsp;&lt;/li&gt;
&lt;li&gt;第三級：長短期金融負債佔總資產超過40%，且短期金融負債大於長期金融負債&amp;nbsp;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;h3&gt;
［C 現金］&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;投資活動現金可以看出公司是否有大量的資本投入，長期的投入並不能帶來相對的營收，與盈再率相同的意涵，營運現金➕理財現金就是［自由現金流量］，所賺的錢能否支援本業的擴張。巴菲特投資中一項非常重要的識別值。&lt;/li&gt;
&lt;li&gt;如果自由現金流量是長期負值，就代表公司許要透過理財活動來取得資金，通常不外乎是使用現金增資、公司債等活動，長期將造成股本增加，股價自然會下降&lt;/li&gt;
&lt;li&gt;現金股利/每股自由現金量的數值應該介於0~100%間，如果超過100%代表是所賺的錢其實無法發出股利，通常都透過其他借貸方法達到發股利之目的，當然了，如果是負數的話，就更要小心了。(雷浩斯)&lt;/li&gt;
&lt;li&gt;成長階段公司應具備的現金特色(財報秘密P84)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;當期現金為正，且大多來自營業活動&lt;/li&gt;
&lt;li&gt;營業活動現金流量為正，且大於營業利益 或 稅後淨利&lt;/li&gt;
&lt;li&gt;營業活動現金足以支付投資活動支出 或 長期股權投資(這個應該就是自由現金流量的概念)&lt;/li&gt;
&lt;li&gt;營業活動現金流入金額能夠支付投資與融資活動淨流出金額&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;h3&gt;
［D 內涵價值］&lt;/h3&gt;
&lt;ul&gt;
&lt;li&gt;實質報酬率(K值)(郭恭克)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;K=ROE/(P/B)，P是股價，B是淨值，基本的概念是由P/B值得值你所買入的股票是原始股東(淨值)的多少倍成本，然後再去除ROE(ROE/PB)就代表你的實質報酬率，通常ROE可以想像成是股東當年的投資報酬率。&lt;/li&gt;
&lt;li&gt;P=ROE/K*B，這公式可以經由你預期的K值報酬率，透過ROE及B來得到適當的股價&lt;/li&gt;
&lt;li&gt;這個方法跟使用本益比換算出投報率的方法非常類似，主要都是看歷年來最高及最低K值得平均來得到一個數值，然後藉此換算出&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;高登公式：預期報酬率=現金股利殖利率+保留盈餘成長率。(雷浩斯)&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;現金股利殖利率=現金股利/買進價格&lt;/li&gt;
&lt;li&gt;保留盈餘成長率=ROE*(1-現金股利發放率)&lt;/li&gt;
&lt;li&gt;透過[高登公式/本益比]可以得到數值來衡量目前的股價是否有反應出報酬率&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;2以上代表還沒有反應&lt;/li&gt;
&lt;li&gt;1.5~2代表還可已買進部分&lt;/li&gt;
&lt;li&gt;1代表沒有甜頭#_#;&lt;/li&gt;
&lt;/ul&gt;
&lt;/ul&gt;
&lt;li&gt;高登公式預估EPS*100=預估股價，建議高登公式*0.85*EPS(折衷價格)以下都可以買入&lt;/li&gt;
&lt;ul&gt;
&lt;li&gt;高登公式*1.2*EPS*100=高點價格：過高，建議賣出&lt;/li&gt;
&lt;li&gt;高登公式*1*EPS*100=合理價格：跟實際的價值差不多，可以減低持股&lt;/li&gt;
&lt;li&gt;高登公式*0.5*EPS*100=低點價格：已經具有邊際效益，因此可以買入&lt;/li&gt;
&lt;/ul&gt;
&lt;li&gt;過去5年平均的ROE;估算出較可能的ROE值*NAV*12倍本益比=預估股價(洪瑞泰)&lt;/li&gt;
&lt;/ul&gt;
&lt;h3 style=&quot;font-family: &amp;quot;Helvetica Neue&amp;quot;, Arial, sans; font-size: 16px;&quot;&gt;
&lt;strong&gt;［E 股票買賣法則&lt;/strong&gt;&lt;strong&gt;］&lt;/strong&gt;&lt;/h3&gt;
&lt;ol&gt;
&lt;li&gt;是否已經審視excel並確認相關項目都符合準則？&amp;nbsp;&lt;/li&gt;
&lt;li&gt;是否已經完整看過財務報表？&amp;nbsp;&lt;/li&gt;
&lt;li&gt;股價是否已經到歷史平均低本益比位置？或者滿足其他內涵價值計算值？&amp;nbsp;&lt;/li&gt;
&lt;li&gt;股票是否長期持有而不賣出，除非股價高到離譜、大環境不適經營、經營者搞爛、營收月營收年增率下降且長期走勢往下&lt;/li&gt;
&lt;/ol&gt;
&lt;div style=&quot;font-family: gotham, helvetica, arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;ol class=&quot;ol1&quot;&gt;
&lt;/ol&gt;
&lt;/div&gt;
&lt;ol style=&quot;font-family: gotham, helvetica, arial, sans-serif; font-size: 14px;&quot;&gt;
&lt;/ol&gt;
</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/2400835634719877045/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/09/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/2400835634719877045'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/2400835634719877045'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2016/09/blog-post.html' title='財務報表分析的核心概念'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-665927268800247908</id><published>2011-05-03T18:37:00.000-07:00</published><updated>2011-05-03T18:37:52.855-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="貨幣觀察"/><title type='text'>通貨膨脹與貨幣貶值之關係</title><content type='html'>&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;時間回到2010/07/14，從書籍及課程中我瞭解到貨幣如同血液般重要，支撐著整體經濟流動的重要元素，但人們往往感受不到他的存在，而銀行家們卻靜悄悄地靠著貨幣來產生現金流，這樣的過程中其實延伸出了許多可以探討之方向，在這邊跟大家分享自己的看法。&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;====================================================================&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;這文章源頭火花來自巴菲特的股東大會上的一句話，巴菲特提到：&lt;wbr&gt;&lt;/wbr&gt;身處在全球政府競相擴張信用的時期，希臘爆發的問題，&lt;wbr&gt;&lt;/wbr&gt;只不過是主權債務危機的序曲而已；巴菲特補充，&lt;wbr&gt;&lt;/wbr&gt;無論是美元或英鎊，他對各國貨幣匯率都抱持著長期趨貶的看法。 接著，巴菲特更明顯的警告隨即出現，&lt;wbr&gt;&lt;/wbr&gt;在評論對於通貨膨脹的看法時，他更是直指，目前在世界各地，&lt;wbr&gt;&lt;/wbr&gt;出現通膨的機會已經顯著升高。他認為各國大力寬鬆貨幣，&lt;wbr&gt;&lt;/wbr&gt;很可能是導致「通膨怪獸」重新肆虐的主要原因。&lt;wbr&gt;&lt;/wbr&gt;巴菲特在股東會時提到因為各國信用擴張及寬鬆貨幣政策將導致【&lt;wbr&gt;&lt;/wbr&gt;通貨膨脹】問題浮現，今日其他的訪問巴菲特文章中又提到【&lt;wbr&gt;&lt;/wbr&gt;貨幣開始貶值】。巴菲特是為非常智慧且幽默的投資者，&lt;wbr&gt;&lt;/wbr&gt;也非常樂於跟大眾分享他自己成功的投資過程，其相關精神可以透過&lt;a href=&quot;http://stasis.pixnet.net/blog/category/list/1352930&quot; style=&quot;color: #005488;&quot; target=&quot;_blank&quot;&gt;&lt;wbr&gt;&lt;/wbr&gt;波克夏股東會的股東信&lt;/a&gt;件中一覽無遺，&lt;wbr&gt;&lt;/wbr&gt;也會藉由股東會提出他個人對公司經營及大環境之考驗說明；&lt;wbr&gt;&lt;/wbr&gt;也因為如此，我認為如果沒有錢到美國去朝聖巴菲特股東會，&lt;wbr&gt;&lt;/wbr&gt;也因該要盡量的閱讀其信件，&lt;wbr&gt;&lt;/wbr&gt;藉此經由偉大投資者的心態及思維來增加自己的投資智慧。&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;講了一推巴菲特的五四三，其實我也知道你們根本就沒有太注意，&lt;wbr&gt;&lt;/wbr&gt;但這沒有關係。本次的文章是小弟閱讀相關書籍及報導後對於【&lt;wbr&gt;&lt;/wbr&gt;貨幣】的簡短分享，希望能夠讓你有所收穫。&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;【序曲】&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;font-size: medium;&quot;&gt;通貨膨脹=貨幣貶值&lt;/span&gt;，這是件相同的事情，&lt;wbr&gt;&lt;/wbr&gt;且隨時發生在你我的周圍，但卻很少人了解其中的原因及其影響，&lt;wbr&gt;&lt;/wbr&gt;正如經濟學家&lt;u&gt;凱因斯&lt;/u&gt;所說：通貨膨脹&lt;span style=&quot;font-family: 新細明體;&quot;&gt;潛在地積聚了各種經濟規律中的&lt;wbr&gt;&lt;/wbr&gt;破壞因素，一百萬人中也不見得能有一個人看得出問題的根源&lt;/span&gt;。&lt;wbr&gt;&lt;/wbr&gt;或許對我們來說僅覺得通貨膨脹就是物品越來越貴，&lt;wbr&gt;&lt;/wbr&gt;例如小時候養樂多僅要5塊錢，現在變成8塊錢，&lt;wbr&gt;&lt;/wbr&gt;這似乎就是通貨膨脹。但其實通貨膨脹小則如你我對養樂多的看法，&lt;wbr&gt;&lt;/wbr&gt;大則如列寧所說的：&lt;wbr&gt;&lt;/wbr&gt;顛覆資本主義制度最好的辦法就是使其貨幣貶值，&lt;span style=&quot;font-family: 新細明體;&quot;&gt;通過連續的通貨膨&lt;wbr&gt;&lt;/wbr&gt;脹過程，政府可以秘密地、不爲人知地沒收公民財富的一部分。&lt;wbr&gt;&lt;/wbr&gt;用這種辦法可以任意剝奪人民的財富，在使多數 人貧窮的過程中，卻使少數人暴富。&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: 新細明體;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: 新細明體;&quot;&gt;當感受到物價上漲時，&lt;wbr&gt;&lt;/wbr&gt;是否覺得這僅是供需或天然災害所造成的問題呢？&lt;wbr&gt;&lt;/wbr&gt;例如原油漲價帶動相關產品價格上漲，&lt;wbr&gt;&lt;/wbr&gt;大多數的人都覺得這只是一時的現象，慢慢就會感善。但，&lt;wbr&gt;&lt;/wbr&gt;現在我自己似乎有點不這樣子認為了！&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;span style=&quot;font-family: 新細明體;&quot;&gt;&lt;/span&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;【第一部分】了解通貨膨脹發生原因及其過程&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;就小弟目前的閱讀書籍中，許多書籍都有定義通貨膨脹，&lt;wbr&gt;&lt;/wbr&gt;如果非官的書籍中我認為經由1976年諾貝爾經濟學家-傅利曼【&lt;span&gt;&lt;a href=&quot;http://www.books.com.tw/exep/prod/booksfile.php?item=0010395109&quot; style=&quot;color: #005488;&quot; target=&quot;_blank&quot;&gt;&lt;wbr&gt;&lt;/wbr&gt;選擇的自由&lt;/a&gt;&lt;/span&gt;】定義的最好，&lt;wbr&gt;&lt;/wbr&gt;其第9章通貨膨脹文章提供發生通貨膨脹原因始末，其重點是：&lt;span style=&quot;color: red; font-size: medium;&quot;&gt;通貨&lt;wbr&gt;&lt;/wbr&gt;膨脹其實是一種貨幣現象，&lt;wbr&gt;&lt;/wbr&gt;主因是在於貨幣供給速度超越了商品或勞務生產之速度&lt;/span&gt;。就是說，&lt;wbr&gt;&lt;/wbr&gt;其實通貨膨脹發生原因是貨幣發行速度超越的商品產生速度，&lt;wbr&gt;&lt;/wbr&gt;因此造成多數的錢追逐少數產品，&lt;wbr&gt;&lt;/wbr&gt;物價上漲是所謂的通貨膨脹產生的現象而非原因。&lt;wbr&gt;&lt;/wbr&gt;傅利曼書章節提到的相關重點程序整理如下：&lt;/div&gt;&lt;ol style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;li style=&quot;margin-left: 15px;&quot;&gt;起始原因：政府不當支出、強調充分就業、&lt;wbr&gt;&lt;/wbr&gt;貨幣政策錯誤造成貨幣供給過量。&lt;wbr&gt;&lt;/wbr&gt;最棒的例子就是美國的金融爛蘋果發生問題時，就舉債、紓困、&lt;wbr&gt;&lt;/wbr&gt;金援等方式，透過列印紙鈔來應付所發生的問題。&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;過程：短暫經濟回升現象，且伴隨著匯率變動、WPI、&lt;wbr&gt;&lt;/wbr&gt;CPI物價指數變動，發生時間約當1發生後7個月左右。&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;造成結果：失業率上升、經濟成長率下降。&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;改善方法：政府減少不當支出，改善國家貨幣及負債結構。&lt;/li&gt;
&lt;/ol&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;簡單來說就是政府印的鈔票太多才會造成通貨膨脹，&lt;wbr&gt;&lt;/wbr&gt;通常都是因為發生危機或問題時，政府就提出XX方案來紓困，&lt;wbr&gt;&lt;/wbr&gt;短期間內確實會看起來有好轉的現象，但接著就會發生WPI、&lt;wbr&gt;&lt;/wbr&gt;CPI物價指數上升，&lt;wbr&gt;&lt;/wbr&gt;接著就會有失業率上升及經濟成長率下降情況，&lt;wbr&gt;&lt;/wbr&gt;雖然看起來能夠改善，&lt;wbr&gt;&lt;/wbr&gt;但傅利曼提到要政府減少不當之出就有如要毒癮著戒毒一樣，&lt;wbr&gt;&lt;/wbr&gt;非常的困難，這點不難從全世界國家的負債情況就可看出端倪。&lt;wbr&gt;&lt;/wbr&gt;而就我目前對貨幣的認知，其實真的還不容易改善，&lt;wbr&gt;&lt;/wbr&gt;這點我日後有機會再跟大家說明。&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;【第二部分】貨幣貶值代表意義&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;貨幣原本主要目的是提供民眾對於貨品便利交易用途，&lt;wbr&gt;&lt;/wbr&gt;改善原本以物易物之耗時、無效率之作法。&lt;span style=&quot;color: #000066;&quot;&gt;貨幣像是流通的購買票劵&lt;wbr&gt;&lt;/wbr&gt;，藉由人民生產及交易過程轉換在民眾手中，換句話說，&lt;wbr&gt;&lt;/wbr&gt;貨幣的總值應該等同民眾所生產及提供之勞務總質，&lt;wbr&gt;&lt;/wbr&gt;而政府扮演保證貨幣支付角色，也從事[印製鈔票]行業，&lt;wbr&gt;&lt;/wbr&gt;而你所生產的物品或提供的勞務才是有價值的物品&lt;/span&gt;。有趣的是，&lt;wbr&gt;&lt;/wbr&gt;人民總是扮演的積極角色，知道多生產產品後可以得到更多的貨幣，&lt;wbr&gt;&lt;/wbr&gt;因此人民的產品及勞務的產值是持續成長，相對的，&lt;wbr&gt;&lt;/wbr&gt;貨幣也需要持續的成長供給以維持貨品交易時的流通性。簡單來說，&lt;wbr&gt;&lt;/wbr&gt;政府的工作是控制貨幣供給量能夠提供民間交易所需；&lt;wbr&gt;&lt;/wbr&gt;但如果貨幣供給率超過生產成長比率，&lt;wbr&gt;&lt;/wbr&gt;發生貨幣多過於產品之情況時，如原本1:1變成2:1時，&lt;wbr&gt;&lt;/wbr&gt;代表原本物品價值需要2倍的貨幣才能購買等值產品，&lt;wbr&gt;&lt;/wbr&gt;這現象就是貨幣貶值。&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;個人認為，&lt;wbr&gt;&lt;/wbr&gt;在貨幣供給與產品供給可以使用M1B與GDP來作為對應的觀察指&lt;wbr&gt;&lt;/wbr&gt;標。&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;之前台灣發生災害、&lt;wbr&gt;&lt;/wbr&gt;美國金融風暴時美國政府提供了約8000億美元救援，&lt;wbr&gt;&lt;/wbr&gt;國家都紛紛提高貨幣供給率，因此M1B年增率數值都明顯增高，&lt;wbr&gt;&lt;/wbr&gt;這些多出來很多的錢是否有相對的產品供給呢？&lt;wbr&gt;&lt;/wbr&gt;答案很明顯的GDP並未有如對應的成長率，&lt;wbr&gt;&lt;/wbr&gt;代表政府透過貨幣供給系統直接印製出貨幣供給率超過產品，&lt;wbr&gt;&lt;/wbr&gt;因此將會有通貨膨脹情況發生，人民的貨幣價值相對的貶值，&lt;wbr&gt;&lt;/wbr&gt;這個過程其實你可以看成--&lt;span style=&quot;color: #000099;&quot;&gt;政府透過債務系統印製鈔票的同時，&lt;wbr&gt;&lt;/wbr&gt;你是變相的進行繳稅動作【所謂的影藏賦稅】，&lt;wbr&gt;&lt;/wbr&gt;因為你的貨幣價值減少了&lt;/span&gt;。&lt;wbr&gt;&lt;/wbr&gt;原本你的1元貨幣價值因為政府的不當支出，僅剩下0.9元，&lt;wbr&gt;&lt;/wbr&gt;減少的0.&lt;wbr&gt;&lt;/wbr&gt;1元是政府因為債務或應急所增加貨幣供給量造成的現象，&lt;wbr&gt;&lt;/wbr&gt;因此每個人都覺得錢越來越薄不是沒有道理的，&lt;wbr&gt;&lt;/wbr&gt;你的薪水在領到前就扣了所得稅，&lt;wbr&gt;&lt;/wbr&gt;除此之外你還必須為了政府的不當支出付出通貨膨脹的影藏稅。&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;【第三部分】【貨幣供給量對交易的影響】&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;貨幣供給可由利率及匯率來控制，&lt;wbr&gt;&lt;/wbr&gt;通常如果單存僅是由利率來調節供貨量其實是健康且良性的，&lt;wbr&gt;&lt;/wbr&gt;而你也簡單能瞭解到貨幣供給對股市、房市的影響，&lt;wbr&gt;&lt;/wbr&gt;就是低率時代時金錢會從銀行跑向獲利機會比較大的標的，如股票、&lt;wbr&gt;&lt;/wbr&gt;房市等投資標的。在【&lt;a href=&quot;http://www.books.com.tw/exep/prod/booksfile.php?item=0010184756&quot; style=&quot;color: #005488;&quot; target=&quot;_blank&quot;&gt;一個投機者的告白&lt;/a&gt;】&lt;wbr&gt;&lt;/wbr&gt;一書中提到股市指數的高底取決於【貨幣供給+民眾心理】，&lt;wbr&gt;&lt;/wbr&gt;當兩因素同時為正向時，股是指數將會往多頭方向進行。&lt;wbr&gt;&lt;/wbr&gt;這點其實在台灣也是可印證的，&lt;wbr&gt;&lt;/wbr&gt;銀行利率明顯決定了整體貨幣供給亮，&lt;wbr&gt;&lt;/wbr&gt;也間接的提供更多資金於股市之間交易。濃縮重點來說：&lt;wbr&gt;&lt;/wbr&gt;貨幣供給的變化提早於股市指數，約3~7個月，&lt;wbr&gt;&lt;/wbr&gt;同時貨幣供給率過高也會影響物價指數，&lt;wbr&gt;&lt;/wbr&gt;你應該關注的是轉擇點的位置，&lt;wbr&gt;&lt;/wbr&gt;例如去年2009年12月創下M1B 30.8%(實在是太超過了)，通常轉折點代表資金總量的改變，&lt;wbr&gt;&lt;/wbr&gt;也間接影響了股市資金將逐漸減少無法持續支撐高股價。&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;個人覺得跟貨幣有關且不錯的書單，如果有興趣可以買來一起討論&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;*貨幣戰爭&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;*富爸爸窮爸爸買賣貴金屬&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;*選擇的自由&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;*3/4債務世界：認清財富的本質&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/665927268800247908/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/blog-post_03.html#comment-form' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/665927268800247908'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/665927268800247908'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/blog-post_03.html' title='通貨膨脹與貨幣貶值之關係'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-7040197057546205555</id><published>2011-05-03T18:18:00.000-07:00</published><updated>2011-05-03T18:18:57.719-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="數字觀察"/><title type='text'>羅昇(8374)--個股看法</title><content type='html'>時間回到2010/08/04，在與朋友分享的信件中提到對羅昇(8374)之看法，貼在這邊作為紀錄。&lt;br /&gt;
&lt;br /&gt;
===============================================&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;套一句我兒子常講的話：羅昇 8374：這是甚麼東溪~~~？&lt;img goomoji=&quot;B56&quot; height=&quot;15&quot; src=&quot;https://mail.google.com/mail/e/B56&quot; style=&quot;margin-bottom: 0px; margin-left: 0.2ex; margin-right: 0.2ex; margin-top: 0px; vertical-align: middle;&quot; width=&quot;15&quot; /&gt;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;股票幾千支，我相信在座的各位應該真的沒有聽過(&lt;strong&gt;羅昇&lt;/strong&gt;)吧&lt;img goomoji=&quot;361&quot; height=&quot;12&quot; src=&quot;https://mail.google.com/mail/e/361&quot; style=&quot;margin-bottom: 0px; margin-left: 0.2ex; margin-right: 0.2ex; margin-top: 0px; vertical-align: middle;&quot; width=&quot;12&quot; /&gt;！&lt;wbr&gt;&lt;/wbr&gt;是羅生門嗎？還是賣鑼的？太沒有名氣了拉&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;老實講我也是在8/3(二)晚上才知道的，&lt;wbr&gt;&lt;/wbr&gt;但我想應該不會妨礙我跟大家介紹這家公司&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;我將推薦的理由寫在下面，&lt;wbr&gt;&lt;/wbr&gt;並在附件上加入一個元大評鑑的內容提供給大家參考&lt;/div&gt;&lt;ul style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;li style=&quot;margin-left: 15px;&quot;&gt;&lt;div clear=&quot;all&quot;&gt;連續四個月營收創新高，沒有意外的話今年的Q2~&lt;wbr&gt;&lt;/wbr&gt;Q4營收應該會破表創紀錄&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;&lt;div clear=&quot;all&quot;&gt;公司的ROE股東權益報酬率之前都有20%左右，&lt;wbr&gt;&lt;/wbr&gt;金融風暴時也有15%的表現&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;&lt;div clear=&quot;all&quot;&gt;公司負債低、現金流量充足不須額外股東借錢營運&lt;/div&gt;&lt;div clear=&quot;all&quot;&gt;*(2011/05/04補充)公司盈餘再投資率非常低，因為其公司是以代理工業自動化機具為主，無須投入資金建立廠房，代表能夠自由應用的盈餘比率高&lt;/div&gt;&lt;div clear=&quot;all&quot;&gt;*(2011/05/04補充)股本中現金增資的比率低，大多是盈餘轉增資，代表其經營能力不錯，無須透過公開市場在向股民拿錢&lt;/div&gt;&lt;div clear=&quot;all&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;總結來說，這家公司符合小弟研讀巴菲特選股相關特質，&lt;wbr&gt;&lt;/wbr&gt;獲利長久且穩定成長&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;而&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: blue;&quot;&gt;近期的營收能夠大幅成長事件值得注意的好事，&lt;wbr&gt;&lt;/wbr&gt;通常營收成長是會直接與股價相關&lt;/span&gt;，&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;唯一的稍差是目前的股價(41.65)所提供的【安全邊際空間】&lt;wbr&gt;&lt;/wbr&gt;不大高，我認為安全的價格是26~28左右&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;至於未來股價會到多少？這點你們可以去看元大的分析文件，&lt;wbr&gt;&lt;/wbr&gt;在自行判斷是否合理&lt;img goomoji=&quot;35E&quot; src=&quot;https://mail.google.com/mail/e/35E&quot; style=&quot;margin-bottom: 0px; margin-left: 0.2ex; margin-right: 0.2ex; margin-top: 0px; vertical-align: middle;&quot; /&gt;&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;以我而言，8/17的除權息將配發2元，&lt;wbr&gt;&lt;/wbr&gt;這點是在目前表現上我認同其風險及報酬算是相當合理的&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;另外，許多書籍及股市作手都將營收作為第一個辨別法則，&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;這點可以在金融怪傑一書首訪者：威廉•歐尼爾 的CANSLlM選股法一探究竟&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;而許多名不見經傳的小小股票大咖也是以營收為選股前提，&lt;wbr&gt;&lt;/wbr&gt;外加扎實的基本財務分析&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;因此，提供至99/6月的相關營收創新高連結給大家&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;而你會發現某些股票會飆漲不是沒有理由的&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;而且還有一件值得慶幸的事情，因為上市公司營收是每月公布的&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;而財報是最小單位是以每季為主，&lt;wbr&gt;&lt;/wbr&gt;在茫茫股海中其實你有機會因為月月觀察營收資訊後&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;提前早出有機會的股票喔，&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&amp;nbsp;&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;建議使用 【&lt;a href=&quot;http://2330.tw/record-h1/#more-121&quot; style=&quot;color: #005488;&quot; target=&quot;_blank&quot;&gt;績優股觀測站&lt;/a&gt;】&amp;nbsp;來了解每月公司的營收資訊，&lt;wbr&gt;&lt;/wbr&gt;羅昇就是這樣找出來的。&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;羅昇的關鍵分析，請參考【&lt;a href=&quot;http://luckylong.pixnet.net/blog/post/6143000&quot; style=&quot;color: #005488;&quot; target=&quot;_blank&quot;&gt;投資家日報&lt;/a&gt;】，&lt;wbr&gt;&lt;/wbr&gt;裡面有許多對羅昇相當不錯的評比&lt;/div&gt;&lt;div clear=&quot;all&quot; style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;威廉•歐尼爾 的&lt;a href=&quot;http://www.bigmap.us/sinopac/research/marvels/10_1.htm&quot; style=&quot;color: #005488;&quot; target=&quot;_blank&quot;&gt;CANSLlM選股法介紹&lt;/a&gt;，也值得大家一看。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/7040197057546205555/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/8374.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/7040197057546205555'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/7040197057546205555'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/8374.html' title='羅昇(8374)--個股看法'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-5588833823422766204</id><published>2011-05-03T18:08:00.000-07:00</published><updated>2011-05-03T18:08:12.040-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="數字觀察"/><title type='text'>羅昇(8374)如何從營收預估EPS</title><content type='html'>時間回到2010/8/10，自己與朋友分享對羅昇(8374)的營收分析，現在看起來一家經營穩定且持續成長之公司確實能透過財務報表及每月營收來估算EPS，進而作為是否買進之參考依據。&lt;br /&gt;
&lt;br /&gt;
==============================================&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;在自己看書的過程中總是可以發現一些小小值得注意的地方，&lt;wbr&gt;&lt;/wbr&gt;然後在經由這些發現來審視自己所購買的股票，&lt;wbr&gt;&lt;/wbr&gt;現在就透過信件來記錄自己所發現的小內容&lt;/div&gt;&lt;ul style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;li style=&quot;margin-left: 15px;&quot;&gt;羅昇是家跨國分公司，台灣與大陸的收入比例大約是1:3~4，&lt;wbr&gt;&lt;/wbr&gt;在台灣所呈現的相關資訊都僅是台灣的收入資訊。&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;99Q1大陸貢獻的投資收入約當0.4億，&amp;nbsp;約當貢獻EPS：&lt;wbr&gt;&lt;/wbr&gt;0.64，預估整年大陸的投資收入應可以貢獻1.2~1.4億，&lt;wbr&gt;&lt;/wbr&gt;換算後預估稅前EPS可貢獻2.5塊，稅後為2元。&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;99Q2的台灣營收爆表成長，單獨一季就可以有4.2億營收，&lt;wbr&gt;&lt;/wbr&gt;用保守的稅後淨利比17%預估則能夠有EPS 1.12元貢獻(此算法已經將大陸營收算在內)，&lt;wbr&gt;&lt;/wbr&gt;加上Q1的畫應該有接近EPS 1.8塊；如果單獨用台灣之營業利益率9%換算，&lt;wbr&gt;&lt;/wbr&gt;可得大約EPS約為0.598+外加大陸最少每季貢獻EPS0.&lt;wbr&gt;&lt;/wbr&gt;375來看，Q2最差也應該會有EPS0.975~1塊左右。&lt;wbr&gt;&lt;/wbr&gt;如此Q1+Q2大約就可以有1.6~1.8的保守估算。&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;以目前台灣的營收來看，本年度應該最少可達到13~15億，&lt;wbr&gt;&lt;/wbr&gt;這是創公司以來最屌的紀錄，大約可以有1.8~2的EPS貢獻，&lt;wbr&gt;&lt;/wbr&gt;但可不要因為這樣子就呆呆的愛上這家公司(其實我已經被騙了)，&lt;wbr&gt;&lt;/wbr&gt;大陸公司的營收貢獻才是重點，&lt;wbr&gt;&lt;/wbr&gt;如果平均每季可以達到4千萬的貢獻額那就真的才叫做屌，&lt;wbr&gt;&lt;/wbr&gt;這樣雙光環貢獻下就可以達到4塊EPS。&lt;wbr&gt;&lt;/wbr&gt;簡單的採用本益比12計算的話，股價48元是非常有機會的。&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;8/31是個重要的日子，因為半年報公布的日子，&lt;wbr&gt;&lt;/wbr&gt;藉此可以瞭解羅昇的價值是否真有如自己所評估。如果沒有的話，&lt;wbr&gt;&lt;/wbr&gt;你自己知道應該怎麼做了吧？！&lt;img goomoji=&quot;361&quot; height=&quot;12&quot; src=&quot;https://mail.google.com/mail/e/361&quot; style=&quot;margin-bottom: 0px; margin-left: 0.2ex; margin-right: 0.2ex; margin-top: 0px; vertical-align: middle;&quot; width=&quot;12&quot; /&gt;&lt;/li&gt;
&lt;li style=&quot;margin-left: 15px;&quot;&gt;如果有機會可以先知道天津羅昇的營收資訊，&lt;wbr&gt;&lt;/wbr&gt;那又可以更快的確認這些資訊的估算是否合理喔。&lt;wbr&gt;&lt;/wbr&gt;但很可惜的是似乎沒有內線交息可以得到。&lt;/li&gt;
&lt;/ul&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;&lt;br /&gt;
&lt;/div&gt;&lt;div style=&quot;border-collapse: collapse; font-family: arial, sans-serif; font-size: 13px;&quot;&gt;基本上一個簡易換算到EPS計算方法，就是採用&lt;strong&gt;年預估營收*&lt;wbr&gt;&lt;/wbr&gt;稅後淨利率/股本*10&lt;/strong&gt;=EPS。&lt;wbr&gt;&lt;/wbr&gt;從這個算法的精神就是營收為觀察重點。&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/5588833823422766204/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/8374eps.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/5588833823422766204'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/5588833823422766204'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/8374eps.html' title='羅昇(8374)如何從營收預估EPS'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-2351209335067665336</id><published>2011-05-03T09:55:00.000-07:00</published><updated>2011-05-03T09:55:24.501-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="核心觀念"/><title type='text'>股價與價值</title><content type='html'>股價是由股市公開市場經許多買賣家議價後的結果，代表價格是由雙方認同的交易價格，這其中牽涉到許多【解讀】的方式，每個人都會因為自己對價格之認定及外在環境錯綜複雜的因素而有的心理決策。簡單來說，十個股市或經濟專家對某家公司股價解讀都不大可能一致，更何況是一般的股市買賣者更難有一致的價格看法，因此就像葛拉漢說的：股價就像是一個無理頭銷售員，每天都登門造訪拿詢問你是否要買或賣股票，但這跟一家公司實際的價值其實無關。&lt;span style=&quot;color: blue;&quot;&gt;股價是由於市場上起伏不定的價格決定，公司價值是綜合企業經營績效及策略之成果&lt;/span&gt;。兩者其實不相關，也無法能用數學公式轉換計算股價套用到所有公司，但，股價就像是蒼蠅一般圍繞在公司價值旁，一下子因為市場的熱絡股價跑到上頭去，一下子因為美國烙賽跌到屁股去，但始終脫離不了公司價值。 &lt;br /&gt;
股票市場中提到的本益比、淨值比、殖利率等數值雖然有參考價值，但卻不是核心，&lt;u&gt;&lt;span style=&quot;color: red;&quot;&gt;購買股票是因為經過自己有邏輯系統的分析公司，如透過財務報表、經營者歷史表現、產業分析等過程，認定某家公司是有購買價值&lt;/span&gt;&lt;/u&gt;，此程序還可以評定出一價格區間代表公司在股票市場的可能價格，但這評定方法也因為評定者的喜好而有所差異，巴菲特、葛拉漢、某某大師的方法都不一，每個購買股票的人都應該有價值區間，接著，就是等待、耐心等待、長時間等待，等待市場因為驚慌下跌至認定的價格區間下，然後進行買入動作，如巴菲特說的【別人恐慌你貪婪】，接著就是長期持有，每月審視公司的經營方向、績效是否變質，並且固定閱讀公司半年報、參加股東會，然後，更耐心的等待市場因為俇熱希望帶動股價遠超過價值區間，【當別人貪婪時你就應該恐懼戒慎】，考慮降低你的持股。&lt;br /&gt;
&lt;br /&gt;
對我來說，購買一家公司的股票，就如巴菲特說的：等同擁有一家公司，你更應該注重的是公司質的發展，而非專注在股價的漲跌。當公司價值持續成長時，自然你的獲利也不差，長期持有下來的成果遠勝過短期的股票買賣行為。&lt;br /&gt;
&lt;br /&gt;
簡單來說：&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;審視公司價值&lt;/li&gt;
&lt;li&gt;設定安全邊際價格&lt;/li&gt;
&lt;li&gt;耐心等待買入&lt;/li&gt;
&lt;li&gt;更耐心等待賣出&lt;/li&gt;
&lt;/ol&gt;乎~~說的容易，但做起來卻一點都不簡單，真的很考驗人性。</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/2351209335067665336/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/2351209335067665336'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/2351209335067665336'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/blog-post.html' title='股價與價值'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-3730459848047771558</id><published>2011-05-03T09:43:00.000-07:00</published><updated>2011-05-03T09:43:42.516-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="年報"/><title type='text'>2010年報</title><content type='html'>&lt;strong&gt;&lt;span style=&quot;font-size: large;&quot;&gt;2010年報&lt;/span&gt;&lt;/strong&gt;&lt;br /&gt;
&lt;br /&gt;
巴菲特曾經提到：【擁有一家公司的股票，就等同是在經營一家公司，應以公司經營的角度去審視，而非股價來衡量公司的好壞】。因此，我在想何不自己當公司的經營者呢？公司的主要業務就是買賣股票，在2010年初以部分自有資金，加上舉債籌得部分資金(列入負債)後，就將自己視為一家公司，且規定在每年4月20日進行結算，盡量以財務報表的方式將自己的經營績效呈現出來。&lt;br /&gt;
&lt;br /&gt;
今年算是豐收的一年嗎？在買賣的過程中我有堅持自己的法則來進行交易嗎？數字應該是一個很不錯的回應方式：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;EPS 9.26：股本以自有資金計算(小股本)，舉債籌得資金部分約是股本的兩倍，自己的負債簡單來說就是75%。&lt;/li&gt;
&lt;li&gt;7檔公司買賣：持股超過一年的一家，3~5個月的一家，其他都是兩個月內完成買賣交易，老實說，這其實是非常糟糕的買賣方式，流於短期買賣行為，我自己解釋為--投機，在過程中我並未堅守內含價值評定方法買入，買入後也未能耐心等待，也因此造就許多短期兩個月內完成交易的情況。&lt;/li&gt;
&lt;li&gt;約3萬元交易及手續費：在不同的換手交易程序中最賺的就是政府，透過建立交易平台機制後，平凡交易結果就是增加自己的成本。&lt;/li&gt;
&lt;/ul&gt;總結來說，自己的EPS比太多上市櫃公司經營的好，雖然自己的經營方式有缺失，但還能整理出造就此結果之成功因素。我將方法歸納如下:&lt;br /&gt;
&lt;ol&gt;&lt;li&gt;注意每季證劵公司整理出來的上市櫃EPS、ROE摘要資訊，從中&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;選擇ROE值大於15%公司&lt;/span&gt;&lt;/strong&gt;。&lt;/li&gt;
&lt;li&gt;進一步審視公司的整體價值，包含歷年&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;ROE、盈再率、歷史配股息比例、負債償還年數、營收成長情況&lt;/span&gt;&lt;/strong&gt;。&lt;/li&gt;
&lt;li&gt;計算出公司內含價值，並加入安全邊際(取比較低的本益比)。&lt;/li&gt;
&lt;li&gt;審視目前股價是否能買入。&lt;/li&gt;
&lt;li&gt;買入後注意營收變化，如果公司發展不如預期則考慮是否賣出。&lt;/li&gt;
&lt;li&gt;耐心、更耐心、更更耐心等待著配息，或某天股價變貴了後賣出。&lt;/li&gt;
&lt;/ol&gt;&lt;span style=&quot;color: red;&quot;&gt;公司股價就像蒼蠅黏著糖果一像，總是隨著內含價值上下起伏，如果你找到值得購買的公司，且在安全邊際下買入後，給他1~2年的時間，相信你會豐收的。&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/3730459848047771558/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/2010.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/3730459848047771558'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/3730459848047771558'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2011/05/2010.html' title='2010年報'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-4752691765121669215</id><published>2010-05-05T21:15:00.000-07:00</published><updated>2010-05-05T21:15:25.543-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="核心觀念"/><title type='text'>交易原則-檢核而非預測</title><content type='html'>多數的投資人在進行交易股票或基金時，應該都是持有【有利可圖】的認定，合理推想著買入後多久時間可以產生多少利潤，而這些投資標的往往都來自周邊可以接觸到的資訊，例如朋友報名牌、雜誌、新聞等，但你仔細審視字語後不難發現對於公司或產業的報導都會提到【&lt;span style=&quot;color: blue;&quot;&gt;預期&lt;/span&gt;】、【&lt;span style=&quot;color: blue;&quot;&gt;新題材&lt;/span&gt;】、【&lt;span style=&quot;color: blue;&quot;&gt;未來市場規模&lt;/span&gt;】、【&lt;span style=&quot;color: blue;&quot;&gt;建議目標價&lt;/span&gt;】等字眼，而人們通常看到這些後就會有美好的感覺，對於目前股價及卷商外資所建議的買入價產生溢價感覺，或是對產業未來產生夢想。&lt;br /&gt;
&lt;br /&gt;
或許外資或卷商的評估是對的，未來也有可能達到建議目標價，但這畢竟是自己的辛苦錢，在投資時為什麼要用確定性不高的未來消息來作為交易的依據呢？巴菲特曾說過：&lt;span style=&quot;color: red;&quot;&gt;沒有人能夠準確的預測未來走勢，股市預測專家存在的唯一價值， 就是使算命先生更體面而已&lt;/span&gt;。因此我較喜好投資交易需採用【檢核】法則，對於感興趣的公司或投資標的進行驗證程序，包含日往公司管理者的經營方法、策略分析，到公司財務報表分析，如最重要的股東權益報酬率、毛利、償債能力等資訊進行評估，當你認定此公司基本面及日往表現都符合你的投資標準後，你需要再決定公司的合理價格多少，可應用歷史本益比法、折現法來推斷合理價格，並且加入你認定的安全邊際原則至推斷價格中。例如：耕興(6146)在個人檢核後確實符合交易投資條件，使用平均低本益比方法計算出來的合理買進價格為56，加入安全邊際原則20%，56*.8=44.8。&lt;br /&gt;
&lt;br /&gt;
再來是最考驗人類貪婪個性的時候，你需耐心等待此合理價格出現才能夠進行交易行為，並且能在大多頭呈現的高股價上揚時期拒絕誘惑，對於別人評估的建議買入價格的溢價空間不為所動。我個人認為這樣的法則非常的嚴謹，有可能須等待2~3年才有交易時機出現，跟一般在股市交易短暫進出行為差異很大，但也因為採用檢定而非預測溢價的交易法則，進行交易買入是依據現有明確之分析，而非不確定之未來預測消息，在市場發生不可預料反轉而下情況時，交易虧損的機率也將比較少。交易中最主要的風險來自於你對此交易的確定性，當你不明白為何而進行交易，或憑藉著不確定的消息而進行交易時，隱含著你的風險提高許多。&lt;br /&gt;
&lt;br /&gt;
此後，當你看到一篇報導提到本文章所提到的關鍵字時，請不要因為未來能漲到多少錢而感到興奮，你應該像葛拉漢所提到的菜市場買菜觀念：詢問說【多少錢？怎麼賣？】然後再經由評估後覺得確實有其價值後買入。</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/4752691765121669215/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2010/05/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/4752691765121669215'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/4752691765121669215'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2010/05/blog-post.html' title='交易原則-檢核而非預測'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-7328506145266557354</id><published>2010-04-26T09:10:00.000-07:00</published><updated>2010-05-05T20:21:31.122-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="核心觀念"/><title type='text'>投資 或 投機？</title><content type='html'>在許多巴菲特相關書籍中都有提到【投資】及【投機】兩名詞，個人認為了解兩者之間的差異能有許多好處，能讓自己在買入股票時立即明白辨別何種交易行為。Graham曾經定義：&lt;span style=&quot;color: blue;&quot;&gt;&lt;strong&gt;投資就是在經過完整的分析研究之後，認為可以確保本金的安全，並能得到令人滿意的報酬。不符合這些要求的操作便屬於投機&lt;/strong&gt;&lt;/span&gt;。在其他書籍中提到：如果你僅是考慮合理價位買入持有即是投資，如果是以賺取價差為出發點就是投機。&lt;br /&gt;
&lt;br /&gt;
在我觀念裡Graham之定義非常清楚明白指出投資應是【&lt;span style=&quot;color: red;&quot;&gt;1&lt;/span&gt;】經過完整分析後，認為標的物符合其價值，在【&lt;span style=&quot;color: red;&quot;&gt;2&lt;/span&gt;】適合的安全邊際下買入此股票，然後【&lt;span style=&quot;color: red;&quot;&gt;3&lt;/span&gt;】長期持有著享有滿意之回饋報酬；而其他不符合上述條件之交易都應當稱為投機。藉由此觀念來回想自己過往的交易模式，我發覺自己95%都屬於投機，而當時動機往往如：產業前景看好、法人大量買進、報紙雜誌建議買進、朋友內線消息..等，至於結果大多都是虧損收場，在交易過程中自己內心更容易因為股價的漲跌而感到貪婪及恐懼，每天都不自覺被數字吸引而擾亂心情。&lt;br /&gt;
&lt;br /&gt;
至目前為止，自己是巴菲特投資法的幼稚園小班生，懂得觀念不算多，但我卻發現自己以往對股價神經兮兮的反應減少了，對法人及內線消息更是左耳進右耳出，漸漸能夠將心情由自己來掌握，其原因很簡單，每當我有交易衝動時便反問自己：這是投資 或 投機？如果是屬於投資是否有符合Graham的三項投資要素？經由簡易的反問句，不需幾秒鐘便能夠讓自己冷靜下來，漸漸的讓自己符合投資的定義。&lt;br /&gt;
&lt;br /&gt;
自己再將Graham的三項條件轉換成自己的執行Work Item，：&lt;br /&gt;
&lt;ul&gt;&lt;li&gt;【1】是否已經完整看過財務報表，且公司符合自己設立之滿足條件？&lt;/li&gt;
&lt;li&gt;【2】股價是否已經到歷史平均低本益比位置？&lt;/li&gt;
&lt;li&gt;【3】股票是否長期持有而不賣出，除非股價高到離譜、大環境不適經營、經營者搞爛&lt;/li&gt;
&lt;/ul&gt;&lt;br /&gt;
雖然很簡單的條件，但親自實踐起來卻是一點也不簡單。</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/7328506145266557354/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2010/04/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/7328506145266557354'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/7328506145266557354'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2010/04/blog-post.html' title='投資 或 投機？'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-7165708461836011142</id><published>2010-04-01T08:15:00.000-07:00</published><updated>2010-05-05T20:21:48.171-07:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="核心觀念"/><title type='text'>內涵價值-Intrinsic Value</title><content type='html'>Intrinsic Value翻譯成中文應該可稱為【真實價值】 或 【內涵價值】，使用Google輸入Intrinsic Value可得到許多解釋及計算方式，簡單來說就是一家公司可運用的自由現金流量總和，雖然能夠想辦法從財務報表的現金流量表中了解，但我認為巴菲特所提到的Intrinsic Value可以轉換成他的想法而應用到選股上。就小弟對Intrinsic Value之見解應該可以解釋成一家公司在競爭力、營收獲利、品牌上的價值總合，其價值表現可透過財務報表之歷史及相關數據來瞭解評選。&lt;br /&gt;
&lt;br /&gt;
當然，我不明白要如何才能夠精確計算出一家公司Intrinsic Value值為何？那這樣為何還要討論這個話題呢？&lt;br /&gt;
&lt;br /&gt;
其實這個理念我想要這樣表達：每家上市櫃公司都有一個【真實價值】 及 【股價】兩個數值，這兩個數值應該也要非常接近，但股價是非常容易隨著大環境、消息面、炒作而有超漲跌的情況發生，相對的真實價值是比較穩定的狀態，雖然偶而股價會被高低估，但長期來看兩個價值曲線應該是一致的。透過此想法，代表著在&lt;span style=&quot;color: blue;&quot;&gt;&lt;strong&gt;選股時應該要著重在公司的Intrinsic Value評鑑，其方法是透過財務報表來進行篩選及比較選擇適當的公司，並且等待公司股價被嚴重低估時選擇購入其股票，耐心堅持的等待著股價回到相對應的真實價值&lt;/strong&gt;&lt;/span&gt;。&lt;br /&gt;
當然每家公司都會有兩價值差異的情況，因此&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;重點是如何評選出優良的投資公司，瞭解股價與真實價值之差異，並選擇介入時間長期持有&lt;/span&gt;&lt;/strong&gt;。這些觀念其實不是我想的，是股神巴菲特的書籍提出來的，會在這邊描述且選擇為第一篇是個人認為他是整個系統的核心理念。&lt;br /&gt;
&lt;br /&gt;
公司的真實價值是否完全從財務報表中得知？我的答案是【否】，但卻能表現出公司約概的價值分析，進一步搭配產業特性及公司產品分析等動作後會比較全面，但我想從財務報表分析是最基本且重要的步驟，雖然不保證賺大錢，但會讓自己對風險比較有點瞭解。</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/7165708461836011142/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2010/04/intrinsic-value.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/7165708461836011142'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/7165708461836011142'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2010/04/intrinsic-value.html' title='內涵價值-Intrinsic Value'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-1872724577421122730.post-7574097009150356875</id><published>2010-03-30T19:13:00.000-07:00</published><updated>2016-09-20T18:45:50.336-07:00</updated><title type='text'>網誌成立目的說明</title><content type='html'>這個網誌規劃是自己對股票投資的學習紀錄網誌，這幾年買賣股票的過程中總覺得少了些系統理論來支撐自己對買進 或 賣出的看法，直到同事在某次的機會裡介紹了巴菲特對股票的投資看法後，我覺得這應該是自己想要的理念，也因此逐步的閱讀其相關書籍，也漸漸的套用其觀念來審視股票是否有價值持有，以及何時開始持有？雖說沒有賺到大錢，但卻能夠讓自己更清楚明白這種投資方法是可行的，而且長期來看是很有價值的。&lt;br /&gt;
&lt;br /&gt;
當然我不是一位巴菲特投資法專家，也不是股市的高級投資者，僅只是想將巴菲特的相關理念透過此網址整理出來，一方面是給自己留下學習歷程資訊，也想經由此紀錄的過程強迫自己閱讀更多書籍，如果有機會也可與朋友一同討論及投資觀念 或 個股的財報分析心得，總結來說我認為此網址應該具有以下內容及精神：&lt;br /&gt;
&lt;ul&gt;
&lt;li&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;描述及說明閱讀巴菲特相關書籍裡自認為重要之觀念&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;描述及建立自己的一套股票審視系統&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;描述及閱讀 有興趣之個股財報內容，並說明其重點&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;li&gt;&lt;strong&gt;&lt;span style=&quot;color: blue;&quot;&gt;分享及說明個人有興趣之書籍及網站&lt;/span&gt;&lt;/strong&gt;&lt;/li&gt;
&lt;/ul&gt;
簡單來說，我的投資方式主要是以基本面分析為主，分析方法是以巴菲特的價值投資法為主軸，透過此系統來審視自己有興趣之股票財務報表，並將其相關資訊透過此網誌記錄下來。&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://valueinvetorproject.blogspot.com/feeds/7574097009150356875/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://valueinvetorproject.blogspot.com/2010/03/blog-post.html#comment-form' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/7574097009150356875'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/1872724577421122730/posts/default/7574097009150356875'/><link rel='alternate' type='text/html' href='http://valueinvetorproject.blogspot.com/2010/03/blog-post.html' title='網誌成立目的說明'/><author><name>可樂貓</name><uri>http://www.blogger.com/profile/09804124642914845465</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>