du -h[输出人类可读的格式] [指定目录] --max-depth=[指定搜索文件层级深度]
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$url = 'http://google.com'; | |
if ($argc > 1){ | |
$url = $argv[1]; | |
} | |
$ch=curl_init(); | |
// user credencial |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1、yum系统更新 yum update | |
--------------------- | |
2、查看系统版本 | |
cat /etc/redhat-release | |
输出如下则表示已升级到7.5或者更高版本 | |
CentOS Linux release 7.5.1804 (Core) | |
--------------------- | |
3、安装elrepo并升级内核 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. sudo -i | |
2. yum update 升级系统 | |
4. curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py" 下载pip | |
5. python get-pip.py 安装pip | |
6. pip install shadowsocks 安装ss |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* LIKE 查询系统配置变量 */ | |
SHOW VARIABLES LIKE '%Trans%'; | |
/* LIKE 查询系统状态 */ | |
SHOW STATUS LIKE '%变量名% '; |