James's BLOG
顯示具有
CentOS
標籤的文章。
顯示所有文章
顯示具有
CentOS
標籤的文章。
顯示所有文章
curl (60) peer’s certificate issuer is not recognized.
›
更新 SSL 後 CURL 失效 1. 將新的 .crt 拷貝至 /etc/pki/ca-trust/source/anchors 2. 執行 update-ca-trust extract 3. 測試 curl 是否可以重新讀取 ref: https://ep.gnt.md/...
Install VirtualBox Guest Additions in CentOS
›
Step 1. update to last repo # yum -y install epel-release # yum -y update # yum install make gcc kernel-headers kernel-devel perl dkms bzip2...
CentOS 7 Install NFS Server / Client and Setting
›
NFS allows a linux server to share directories with other UNIX clients over network. NFS server exports a directory and NFS client mounts th...
如何使用 OpenSSL 建立開發測試用途的自簽憑證 (Self-Signed Certificate)
›
1. 建立 ssl.conf 設定檔 [req] prompt = no default_md = sha256 default_bits = 2048 distinguished_name = dn x509_extensions = v3_req [dn]...
VirtualBox cannot create symbolic link
›
關閉所有 VM 及 VirtualBox Windwos 10 使用管理員權限執行解開軟連結限制 VBoxManage setextradata "VM_NAME" VBoxInternal2/SharedFoldersEnableSymlin...
Windows 10 共享資料夾 CentOS 7 掛載
›
PHPStrom 對 samba 分享的資料夾掛載不友善 External file changes sync may be slow: Project files cannot be watched (are they under network mount?) 所以要反過...
fdisk add LVM to CentOS
›
Linux Fdisk 磁碟分割及格式化 列出 partition table(s) # fdisk -l 格式化 /dev/sdb # fdisk /dev/sdb # Command (m for help): n # Command action ...
CentOS7 Sendmail test send email
›
# Install sendmail sendmail-cf m4 yum install sendmail sendmail-cf m4 # edit local host name vi /etc/mail/local-host-names xxx.com # edit se...
CentOS 7 Systemd PHP
›
CentOS 7 Systemd 預設會打開 PrivateTmp 需要將它關掉才能與其他服務共用 /tmp Close Systemd PHP Private Tmp /usr/lib/systemd/system/php-fpm.service PrivateTm...
VirtualBox CentOS 加大硬碟空間
›
1. 關閉虛擬機器 poweroff 2. 以指令增加資料卷容量 VBoxManage modifyhd "D:\VDI\CentOS7.vdi" --resize 40960 (40G) 3. 虛擬機器設定 EFI 開機並掛載 GPart...
Change Nginx UID and GID
›
stop nginx stop php-fpm usermod -u 1500 nginx groupmod -g 1500 nginx find / -user 998 -exec chown -h 1500 {} \; find / -group 996 -ex...
CentOS 7 Install NFS Server and Windows 10 NFS Client to Connect
›
CentOS 1. yum install yum install nfs-utils 2. systemctl start and enable systemctl enable rpcbind systemctl enable nfs-server...
move file by date
›
find PATH_A -type f ! -newermt 2017-01-01 -exec mv {} PATH_B \;
SELinux 影響 MySQL 連結
›
MySQL local 連 remote 時, 要關閉 SELinux 或設定才能連線
PHP upgrade always breaks session folder permissions
›
PHP 升級後都會自動改成 session owner 回原本設定, 網路建議是為 owner 另建子資料夾對應, 下次就不會被更動. user = nginx ; Set session path to a directory owned by process use...
MariaDB Max connect
›
參考 https://pjstrnad.com/mariadb-raise-number-of-connections/ The issue is that you can’t have more max_connections than open_files_l...
mysql binlog too large
›
檢查硬碟空間 df -h 檢查資料夾大小 du -sh /home/james/* MySQL log 太大 設定 /etc/my.cnf 只保留七天的 Log [mysqld] expire-logs-days=7 重啟 mysql systemc...
MariaDB max_connections, table_open_cache stuck
›
copy my-hugh.cnf to /etc/my.cnf.d/ editing /etc/sysctl.conf fs.file-max = 2459688 editing /etc/security/limits.conf mysql ...
GeoIP Update
›
系統 CentOS https://github.com/maxmind/geoipupdate 先到官方 git clone $ git clone https://github.com/maxmind/geoipupdate $ cd geoipupdate ...
SELinux 影響 ssh with key login
›
如果沒有關閉 SELinux ssh 使用 rsa 登入時會遇到錯誤, 上傳 key 後時要記得更新資料夾權限 restorecon -Rv /folder 就可以正常使用了
›
首頁
查看網路版