James's BLOG
NGINX get filename and remove prefix
›
location ~ "^/downloads/files/[a-zA-Z0-9]{8}\-(.*\..*)$" { add_header Content-disposition 'attachment; filename="$1...
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...
Google Drive API 重新授權
›
1. 移除 json 2. 使手 CLI 取得網址,再取得 code 重新授權
CentOS 7 Systemd PHP
›
CentOS 7 Systemd 預設會打開 PrivateTmp 需要將它關掉才能與其他服務共用 /tmp Close Systemd PHP Private Tmp /usr/lib/systemd/system/php-fpm.service PrivateTm...
‹
›
首頁
查看網路版