摘要:
1 https://mirrors.ustc.edu.cn/repogen/ 2 3 apt-get update && apt-get install apt-transport-https -y 4 5 vi /etc/apt/sources.list 6 7 国内: 8 9 10 deb [h 阅读全文
posted @ 2020-06-15 15:41
xlsdg
阅读(933)
评论(0)
推荐(0)
摘要:
1 sudo vi /etc/sysctl.conf 2 3 添加下面3行 4 5 net.ipv6.conf.all.disable_ipv6 = 1 6 net.ipv6.conf.default.disable_ipv6 = 1 7 net.ipv6.conf.lo.disable_ipv6 阅读全文
posted @ 2020-06-15 15:38
xlsdg
阅读(1919)
评论(0)
推荐(0)
摘要:
1 server { 2 listen 81; 3 server_name xxxx.com; 4 root /xxxx/prod; 5 index index.html; 6 7 location ~ .*\.(htm|html)$ { 8 add_header "Cache-Control" " 阅读全文
posted @ 2020-06-15 15:35
xlsdg
阅读(158)
评论(0)
推荐(0)
摘要:
1 sudo aptitude update -y && sudo aptitude install unattended-upgrades apt-listchanges -y 2 3 sudo vi /etc/apt/apt.conf.d/50unattended-upgrades 4 5 在 阅读全文
posted @ 2020-06-15 15:33
xlsdg
阅读(208)
评论(0)
推荐(0)
摘要:
1 vi ~/.zshrc 2 export LC_ALL=C 3 source ~/.zshrc 阅读全文
posted @ 2020-06-15 15:32
xlsdg
阅读(162)
评论(0)
推荐(0)
摘要:
1 sudo vi /etc/hosts 删除【127.0.0.1 iZj6cc8l39iqt55wrhckymZ】 阅读全文
posted @ 2020-06-15 15:30
xlsdg
阅读(287)
评论(0)
推荐(0)
摘要:
LNMP下的错误需要在 /usr/local/php/etc/php-fpm.conf 里设置,加上 catch_workers_output = yes 错误信息就会记录到php-fpm.conf里error_log设置的文件里。或php-fpm.conf里加上php_admin_value[er 阅读全文
posted @ 2020-06-15 15:28
xlsdg
阅读(455)
评论(0)
推荐(0)
摘要:
1 vi ~/.screenrc 1 # Define Encoding 2 defencoding UTF-8 3 encoding UTF-8 UTF-8 阅读全文
posted @ 2020-06-15 15:27
xlsdg
阅读(243)
评论(0)
推荐(0)
摘要:
1 vi ~/.vimrc 1 set fileencodings=utf-8,gb2312,gb18030,gbk,ucs-bom,cp936,latin1 2 set enc=utf8 3 set fencs=utf8,gbk,gb2312,gb18030 阅读全文
posted @ 2020-06-15 15:26
xlsdg
阅读(165)
评论(0)
推荐(0)
摘要:
1 sudo vi /etc/hostname 2 sudo vi /etc/hosts 3 sudo /etc/init.d/hostname.sh start 4 sudo reboot 阅读全文
posted @ 2020-06-15 15:24
xlsdg
阅读(179)
评论(0)
推荐(0)