學習三天(20180902-20180904)CentOS 總結

張澤校

Tuesday, September 4, 2018


1. 為什麼學習CentOS?

學會在Linux上開發,好處多。

首先,Linux,免費,開源,生態系統發達,使用成本低。

其次,眾多公司的選擇。

所以,學會此項技能後,可以創業,也可以找到好工作。

Linux不是面向普通用戶的,它至今沒能超過Windows(Ubuntu嘗試過)。

Linux是面向企業/公司的,作為伺服器。

企業伺服器要求「安全,高可維護,穩定,可預期,可靠」等特性。

這些特性要求發行版必須具備商業支持,社區支持肯定是不夠充分的。

有商業支持的發行版只有兩個,Canonical支持的Ubuntu,Red Hat間接支持的CentOS。

  • Ubuntu主攻桌面。
  • CentOS 源自Red Hat Enterprise Linux,而RHEL主攻伺服器。

所以,選擇CentOS理由非常充分。


2. 安裝CentOS

官方網站下載CentOS minimal ISO。

官方網站下載VMware Workstation Player,個人使用免費。

安裝文字用戶界面(text based user interface)


3. 使用VIM,MAN,INFO

使用escape鍵,一般用於退出某種模式(比如,VIM插入模式)

使用q鍵,一般代表quit,退出某個應用程序。

使用h鍵,一般代表help,顯示幫助。

使用space鍵,下一頁。

熟練使用MAN,INFO和HELP/h。


4. 安裝Development Tools

yum命令:yum group list

Available Environment Groups:

Minimal Install

Compute Node

Infrastructure Server

File and Print Server

Basic Web Server

Virtualization Host

Server with GUI

KDE Plasma Workspaces

Development and Creative Workstation

Installed Environment Groups:

GNOME Desktop

Installed Groups:

Development Tools

Available Groups:

Compatibility Libraries

Console Internet Tools

Graphical Administration Tools

Legacy UNIX Compatibility

Scientific Support

Security Tools

Smart Card Support

System Administration Tools

System Management

執行命令:yum group install 「Development Tools」


5. 編譯Hello World

Vim is vi improved text editor for programmer.

編寫一個helloworld.c

編譯helloworld.c

執行helloworld


6. 安裝GNOME Desktop

Yum group install 「GNOME Desktop」

Systemctl start graphical.target或者startx啟動經典界面。

推薦閱讀:

相關文章