2015年9月24日 星期四

Centos 7 網路卡指令 nmcli , nmtui 簡介

指令 : nmcli

nmcli connection show  顯示所有連線

nmcli general status         顯示 NetworkManger 狀態

nmcli device status        顯示識別到裝置的連線狀態

範例如下 :






指令 : nmtui  GUI介面 模式

可以用 GUI 介面來設定,如下圖 。






















YUM 透過 Proxy Server 的設定

YUM若需要透過 Proxy只需在 /etc/yum.conf,加一行即可。 

proxy=http://ip:port

結束,超簡單 

2015年9月10日 星期四

SAP STMS 被 LOCK

STMS 做 Transport 在 STATUS 發現變成 Lock
狀況如下圖 :















這樣是無法運作。

點擊 LOCK Client,進去後上面功能表選如下圖紅框。







按 YES ,如下圖:











正常可以傳 Transport 的狀態如下圖 :















大功告成 。


2015年7月30日 星期四

WINDOWS 2012 註冊發生 0x8007007B 錯誤

官網的說明:
https://support.microsoft.com/zh-tw/kb/929826

註冊 windows2012 時發生錯誤訊息如下圖:


用系統管理員的權限執行命令提示字元
執行指令:slmgr /ipk xxxx-xxxx-xxxx-xxxx(序號)






大功告成:



2015年7月22日 星期三

HYPER-V 3.0 & OfficeScan 安裝時設定注意事項

我想應該不少人對於 windows server 沒有安裝防毒來防護總是會怕怕的。
我曾經在 HYPER-V 3.0 之前的版本安裝 SYMANTEC ENDPOINT 防毒軟體後發生慘狀
。系統重開機後 HYPER-V 的服務開不起來,出現許多錯誤。

經查微軟網站有關於 HYPER-V跟防毒系統有一篇文章,如下:

微軟文章 :


http://docs.trendmicro.com/all/ent/officescan/v11.0/en-us/osce_11.0_server_readme.htm


Scanning
  1. A Microsoft Hyper-V virtual machine might not be able to start if the host endpoint has OfficeScan agent installed. This is because the OfficeScan agent and Hyper-V virtual machine access the same Hyper-V xml file, which causes file access violation. As a workaround:
    • Set exclusion folder for the virtual machine xml file located in C:\ProgramData\Microsoft\Virtual Machine Manager\.
    • Turn off file mapping scan by modifying the TmFilter/TmxpFilter registry value.
      To turn off file mapping:
      1. On the server computer, open ofcscan.ini under the \PCCSRV folder.
      2. Modify the following setting under [Global Setting]: UseMapping=0
      3. Save the file.
      4. On the web console, go to Agents > Global Agent Settings and click Save to deploy the setting to all agents.
      The following registry information is added after the deployment completes:
      • Path: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\VSApiNt\Parameters
      • Key: UseMapping
      • Type: DWORD
      • Value: 0
A :
這次防毒程式是使用 Office Scan 11的版本,修改 regedit 如下圖 :
















B : 
修改 ofcscan.ini,路徑如下圖 :

修改 ofcscan.ini 裡面 UseMapping 的參數值為 0。
如下圖 :

















然後再排開 VM 所在的目錄和 VHD,VHDX,XML的檔案類型排開不要掃描,這樣應該萬無一失。









2015年6月25日 星期四

Eclipse 安裝 WindowsBuilder 簡易說明 for JAVA


WindowsBuilder 網站
https://eclipse.org/windowbuilder/download.php

A : 選擇 Eclipse 的版本後,按右鍵 (複製連結網址)
      如下圖:





















B: 打開 Eclipse。 功能表選 (Help) - (Install New Software)

a

C : 在 Work with 貼上複製的連結網址 後 按(Add),在 Name會有
元件出現。全選。如下圖 :

















C : Next 就安裝完成,如下圖





2015年6月23日 星期二

在 Eclipse 安裝 C \ C++ CDT 簡易步驟

用 MAC 為範例 :

CDT 下載點 :
https://eclipse.org/cdt/downloads.php

打開 Eclips -> Help -> Install New Software


Name 填上 CDT
Location 選剛剛下載的檔案位置




















在 Name 地方會顯示 CDT Package 內容,全選。



















顯示細項,下一步。



















按同意,Finish。



















開始安裝


安裝完成後重新啟動就完成








安裝 CDT 完畢