image
目前 CentOS 8.3 安裝iso 大約是 8G
如果是安裝實體機器,而不是安裝vm 
不大適合再使用傳統的安裝光碟片安裝
本文測試如何透過 internet 安裝 CentOS 8.x Linux
1. 找一個速度比較快的mirror 站下載 CentOS 8.x 開機iso 
該範例為 http://mirror01.idc.hinet.net/centos/8.3.2011/isos/x86_64/CentOS-8.3.2011-x86_64-boot.iso

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
環境:
CentOS 8.x
MySQL Server 5.x
在編譯的過程中出現以下錯誤
mysqld.cc:6503:1: error:narrowing conversion of 「18446744073709551615」 from 「long unsigned int」 to 「longlong」 {aka 「long long int」} inside { } [-Wnarrowing]

helloworld 發表在 痞客邦 留言(0) 人氣()


客委會與紙風車劇團攜手推出客家親子劇「雨馬」現在在國父紀念館展示
同時可以跟台北101 一同入鏡
趁這幾天天氣好,趕快去拍個照
另外
3月27日至28日的行動劇演出採實聯制,限制入場人數,一天預訂演出3場。紙風車劇團提醒觀眾,可提早到現場排隊,沒有排到的觀眾們仍可到廣場外欣賞。

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
進入 linode 管理介面
https://cloud.linode.com/linodes
點選需要設定反解紀錄的主機

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
[root@centos6 ~]# yum -y install net-snmp net-snmp-utils
Loaded plugins: fastestmirror, security
Setting up Install Process
Determining fastest mirrors
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
 Eg. Invalid release/repo/arch combination/
removing mirrorlist with no valid mirrors: /var/cache/yum/x86_64/6/base/mirrorlist.txt
Error: Cannot find a valid baseurl for repo: base

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
範例: 將 CentOS-8.3.2011-x86_64-dvd1.iso 分成每個為700MB 的檔案
[root@lab workdir]# split -b 700M CentOS-8.3.2011-x86_64-dvd1.iso "CentOS-8.3.2011-x86_64-dvd1.iso.part-"
預設會以小寫英文為流水號
[root@lab workdir]# ls -lh
total 18G
-rw-r--r-- 1 root root 8.7G Feb 25 10:55 CentOS-8.3.2011-x86_64-dvd1.iso
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-aa
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-ab
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-ac
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-ad
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-ae
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-af
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-ag
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-ah
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-ai
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-aj
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-ak
-rw-r--r-- 1 root root 700M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-al
-rw-r--r-- 1 root root 435M Feb 25 10:57 CentOS-8.3.2011-x86_64-dvd1.iso.part-am

helloworld 發表在 痞客邦 留言(0) 人氣()

mysql error log 顯示以下訊息
210203  9:20:44 [ERROR] /usr/local/mysql/libexec/mysqld: Table './mydb/mytable1' is marked as crashed and should be repaired
210203  9:20:44 [Warning] Checking table:   './mydb/mytable1'
解決方式
# mysqlcheck -u root -p --repair mydb mytable1

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
修復 mysql replication 失敗筆記
因為 master 資料庫無預警電源異常
導致 mysql 主從同步失敗

helloworld 發表在 痞客邦 留言(0) 人氣()

當你還有舊版mysql server 需要維護
用 phpmysqladmin 登入時,卻出現 "您應升級到 MySQL 5.5.0 或更新版本" 
先確認一下 mysql server 版號
進入mysql ,輸入以下sql
SHOW VARIABLES LIKE "%version%";

helloworld 發表在 痞客邦 留言(0) 人氣()

更新ports tree
# portsnap fetch update
安裝 postfix,目前最新版為 postfix-3.5.8
# cd /usr/ports/mail/postfix
# make install clean

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
mysqldump 在備份資料庫時預設不會把 trigger 也備份出來
如果要備份的話
利用下面語法
mysqldump -h servername -u root -pxxxx --no-data --routines --triggers --all-databases > mydb-schema.sql

helloworld 發表在 痞客邦 留言(0) 人氣()

undefined
# vi /usr/local/etc/apache24/httpd.conf
找到 ServerTokens 關鍵字
如果沒有的話,自己加一行
ServerTokens 有以下幾個選項,如果不願意暴露太多資訊,建議設定成 Prod

helloworld 發表在 痞客邦 留言(0) 人氣()

Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。