CentOS7 入門實戰視頻課程筆記


 

http://zhongcl.blog.51cto.com/1389550/1902252

解決辦法:

 登入root

 進入/etc/resolv.conf

 

vim /etc/resolv.conf

 修改內容為下(將DNS地址改為google域名服務器)

nameserver 8.8.8.8 

nameserver 8.8.4.4

擴展:

resolv.conf是DNS域名解析的配置文件,它的格式很簡單,每行以一個關鍵字開頭,后接配置參數。resolv.conf的關鍵字主要有四個,分別是:

nameserver   #定義DNS服務器的IP地址 domain       #定義本地域名 search       #定義域名的搜索列表 sortlist     #對返回的域名進行排序

/etc/resolv.conf的一個示例:

domain test.com search www.test.com test.com nameserver 202.96.128.86 nameserver 202.96.128.166

最主要是nameserver關鍵字,如果沒指定nameserver就找不到DNS服務器,其它關鍵字是可選的。

 

scp index.html root@192.168.80.100: /root:意思是將剛才下載的index.html文件發送到遠程服務器上,目錄是root目錄

 

 

 

hostname:查看主機名

hostname abc.com:將主機名修改為abc.com但是這種更改只是更改當前的,電腦重啟后又恢復原來的。如果要做修改的話:vi /etc/hostname進去修改。

 

nslookup www.baidu.com

 

vi /etc/hosts:可以修改IP地址所對應的域名。

 

ssh 192.168.5.90 :遠程登錄一個主機

 

vi /etc/resolv.conf:修改DNSIP地址

 

 

 

--------------------------跟系統相關的命令--------------------------------

reboot:重啟服務器

shutdaown -r now

init 6

init 0:關閉服務器

shutdown -h now:馬上關機

shutdown -h 20:25:設置關機時間

mount /dev/cdrom /abc:掛載

 

umount /abc:取消掛載

 

df -h:查看掛載的情況

free:查看內存的情況

top:查看cpu的利用率

date:查看日期

cal:查看日歷

cal 2014 :查看某一年的日歷

 

date 030617002015:將日期設置為2015年的36日下午的5點鍾

 

rpm -aq:列出系統中安裝的所有程序

 

 

 

打印SQL:SELECT a.case_id AS caseNum, b.name AS custName, a.case_amount AS caseAmount, e.name AS case_overdue_name, a.late_days AS lateDays, a.entrust_start_date AS entrustStartDate, a.entrust_end_date AS entrustEndDate, 0 AS case_process, '' AS teamName, '' AS staffName, a.id AS caseId, a.handin_time AS handin_time, a.permanent_collection, a.temporary_collection, a.case_call_type, (case when a.case_status >=0 and permanent_collection is null then '未分案' when a.case_status >= 0 then '在催' when a.case_status = -1 then '出催' when a.case_status <= -2 then '流轉' end) as caseStatus, a.case_enter_date,a.case_end_time FROM dic_coll_consume.cf_case_info a, dic_coll_consume.cf_cust_essential_info b, dic_coll_consume.cf_case_stage_type e WHERE a.cust_id = b.id AND a.case_stage_type = e.id  and (a.permanent_collection in (3)  or a.temporary_collection in (3)) 

 

打印SQL:SELECT a.case_id AS caseNum, b.name AS custName, a.case_amount AS caseAmount, e.name AS case_overdue_name, a.late_days AS lateDays, a.entrust_start_date AS entrustStartDate, a.entrust_end_date AS entrustEndDate, 0 AS case_process, '' AS teamName, '' AS staffName, a.id AS caseId, a.handin_time AS handin_time, a.permanent_collection, a.temporary_collection, a.case_call_type, (case when a.case_status >=0 and permanent_collection is null then '未分案' when a.case_status >= 0 then '在催' when a.case_status = -1 then '出催' when a.case_status <= -2 then '流轉' end) as caseStatus, a.case_enter_date,a.case_end_time FROM dic_coll_consume.cf_case_info a, dic_coll_consume.cf_cust_essential_info b, dic_coll_consume.cf_case_stage_type e WHERE a.cust_id = b.id AND a.case_stage_type = e.id  and (a.permanent_collection in (3)  or a.temporary_collection in (3))

 

 

 

打印SQL:SELECT a.case_id AS caseNum, b.name AS custName, a.case_amount AS caseAmount, e.name AS case_overdue_name, a.late_days AS lateDays, a.entrust_start_date AS entrustStartDate, a.entrust_end_date AS entrustEndDate, 0 AS case_process, '' AS teamName, '' AS staffName, a.id AS caseId, a.handin_time AS handin_time, a.permanent_collection, a.temporary_collection, a.case_call_type, (case when a.case_status >=0 and permanent_collection is null then '未分案' when a.case_status >= 0 then '在催' when a.case_status = -1 then '出催' when a.case_status <= -2 then '流轉' end) as caseStatus, a.case_enter_date,a.case_end_time FROM dic_coll_consume.cf_case_info a, dic_coll_consume.cf_cust_essential_info b, dic_coll_consume.cf_case_stage_type e WHERE a.cust_id = b.id AND a.case_stage_type = e.id  and (a.permanent_collection in (2698,2704,2705,2707,2708,2709,2710,2716,2719,2720,2717)  or a.temporary_collection in (2698,2704,2705,2707,2708,2709,2710,2716,2719,2720,2717)) 

 

 

 

正常:

打印SQL:SELECT a.case_id AS caseNum, b.name AS custName, a.case_amount AS caseAmount, e.name AS case_overdue_name, a.late_days AS lateDays, a.entrust_start_date AS entrustStartDate, a.entrust_end_date AS entrustEndDate, 0 AS case_process, '' AS teamName, '' AS staffName, a.id AS caseId, a.handin_time AS handin_time, a.permanent_collection, a.temporary_collection, a.case_call_type, (case when a.case_status >=0 and permanent_collection is null then '未分案' when a.case_status >= 0 then '在催' when a.case_status = -1 then '出催' when a.case_status <= -2 then '流轉' end) as caseStatus, a.case_enter_date,a.case_end_time FROM dic_coll_consume.cf_case_info a, dic_coll_consume.cf_cust_essential_info b, dic_coll_consume.cf_case_stage_type e WHERE a.cust_id = b.id AND a.case_stage_type = e.id  and (a.permanent_collection in (2698,2704,2705,2707,2708,2709,2710,2716,2719,2720,2717)  or a.temporary_collection in (2698,2704,2705,2707,2708,2709,2710,2716,2719,2720,2717))

 

 

打印SQL:SELECT a.case_id AS caseNum, b.name AS custName, a.case_amount AS caseAmount, e.name AS case_overdue_name, a.late_days AS lateDays, a.entrust_start_date AS entrustStartDate, a.entrust_end_date AS entrustEndDate, 0 AS case_process, '' AS teamName, '' AS staffName, a.id AS caseId, a.handin_time AS handin_time, a.permanent_collection, a.temporary_collection, a.case_call_type, (case when a.case_status >=0 and permanent_collection is null then '未分案' when a.case_status >= 0 then '在催' when a.case_status = -1 then '出催' when a.case_status <= -2 then '流轉' end) as caseStatus, a.case_enter_date,a.case_end_time FROM dic_coll_consume.cf_case_info a, dic_coll_consume.cf_cust_essential_info b, dic_coll_consume.cf_case_stage_type e WHERE a.cust_id = b.id AND a.case_stage_type = e.id  and (a.permanent_collection in (3)  or a.temporary_collection in (3))

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM