绑定host su root vi /etc/hosts 1 2 3 4 5 6 7 8 9 10 # github 204.232.175.78 documentcloud.github.com 207.97.227.239 github.com 204.232.175.94 gist.github.com 107.21.116.220 help.github.com 207.97.227.252 nodeload.github.com 199.27.76.130 raw.github.com 107.22.3.110 status.github.com 204.232.175.78 training.github.com 207.97.227.243 www.github.com 安装神秘客户端 1 2 3 4 5 6 7 8 9 10 11 12 13 cd /opt/ wget https://nodejs.org/dist/v14.0.0/node-v14.0.0-linux-x64.tar.xz tar xvf node-v14.0.0-linux-x64.tar.xz echo "export NODE_HOME=/opt/node-v14.0.0-linux-x64"
由于centos停止维护了 , 这次彻底换个系统吧 要做的东西还是很多的 , 做个笔记 前提: 服务器ip 10.0.0.1 ssh的端口 10087 ssh的用户 root 安装文件在 /data/src/install; 防火墙
1 2 3 4 5 6 7 yum install google-chrome-stable pip install selenium yum install chromedriver.x86_64 # 如果版本不一致 , 则找到对应的版本 wget http://chromedriver.storage.googleapis.com/99.0.4844.51/chromedriver_linux64.zip; unzip chromedriver.zip
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 # nginx 配置 log_format tongji '$remote_addr - [$time_iso8601] "$request" '' - $status "User_Cookie:$guid" '; server { listen 80; server_name xxx.com; index index.html index.htm index.php; root /alidata/www/tongji; #将cookie中key为g
1 2 3 4 5 6 7 [
[email protected] yum.repos.d]# yum makecache Repository epel is listed more than once in the configuration CentOS-8 - AppStream 3.2 kB/s | 2.5 kB 00:00 Errors during downloading metadata for repository 'AppStream': - Status code: 404 for http://mirrors.cloud.aliyuncs.com/centos/8/AppStream/x86_64/os/repodata/repomd.xml (IP: 100.100.2.148) Error: Failed to download metadata for repo 'AppStream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried [
[email protected] yum.repos.d]# 查了各种资
背景 , 一个没权限保护的静态资源所有人可以访问 , 期望加一些密码 原来访问地址: static.mmfei.com 改正后的地址: static.mmfei.com/?doc_access_token=123456 没啥好说的 , 上配置 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15