Disk | Parition | MountPoint | Size | Descriptions |
---|---|---|---|---|
sda | sda1 | /boot/efi | 200MB | 開機磁區 |
sda | sda2 | /boot | 500MB | 開機磁區 |
sdc | swap | swap | 128GB | 記憶體交換區 |
sdc | home | /home | 3TB | 家目錄 |
sdc | root | / | 4TB | 根目錄 |
sdc | pkg | /pkg | 4TB | 公用程式 |
sdc | work | /work | 16TB+ | 工作目錄 |
User specific space, which stores tools, references and etc. for their own use.
Public tools share among users.
Always install packages by root.
Downloaded packages.
Working space, stores references and working directory for each projects seperately.
Stores references for projects.
#install EPEL library
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-8.noarch.rpm
sudo yum update
sudo yum install htop
系統測試工具,也可用來測試DataBase效率
sudo yum -y install sysbench
#CPU測試
#透過尋找質數的方式檢測CPU速度,設定在數字10萬的範圍內尋找質數
sudo sysbench –test=cpu –cpu-max-prime=100000 run
#記憶體測試
#測試記憶體扇區設定為8K,總記憶體設定為200G,執行測試。
sudo sysbench –test=memory –memory-block-size=8k –memory-total-size=200G run
#硬碟測試(檔案讀寫與同步效率測試)
#準備階段
sudo sysbench –test=fileio –num-threads=15 –file-total-size=4G –file-test-mode=rndrw prepare
#執行階段
sudo sysbench –test=fileio –num-threads=15 –file-total-size=4G –file-test-mode=rndrw run
#執行緒測試
#測定500個執行緒,每個執行序測試100次,其中每個執行緒有四個共享執行階段。
sudo sysbench –test=threads –num-threads=500 –thread-yields=100 –thread-locks=4 run
Error: libnsl not found
XAMPP: SELinux is activated. Making XAMPP fit SELinux…
chcon: 無法存取 '/opt/lampp/lib/mysql/*.so': 沒有此一檔案或目錄
Starting XAMPP for Linux 8.1.1-2…
XAMPP: Starting Apache…fail.
httpd: Syntax error on line 522 of /opt/lampp/etc/httpd.conf: Syntax error on line 6 of /opt/lampp/etc/extra/httpd-xampp.conf: Cannot load modules/mod_perl.so into server: libnsl.so.1: cannot open shared object file: No such file or directory
XAMPP: Starting MySQL…ok.
XAMPP: Starting ProFTPD…ok.
XAMPP: Starting Apache…ok.
XAMPP: Starting MySQL…already running.
XAMPP: Starting ProFTPD…already running.
https://docs.docker.com/engine/install/rhel/ #failed
https://linuxconfig.org/how-to-install-docker-in-rhel-8 #success
Server