作者文章归档:admin

htop 的使用心得


一、htop 比top的优势

可以通过鼠标操作
直接选择到进程直接kill进程
可以横向或纵向滚动进程列表,同时可以查看进程完整的命令行

二、下载安装

Centos 7

yum install epel-release -y
yum install htop -y

Centos 6

rpm -ivh https://mirrors.tuna.tsinghua.edu.cn/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL
yum install htop -y

Read more

nginx 部署


1、下载链接

wget https://tool-box.oss-cn-hangzhou.aliyuncs.com/nginx-1.10.0.tar.gz

2、安装

yum install gcc gcc-c++ net-snmp net-snmp-devel curl-devel perl-DBI libxml2 libxml2-devel openssl-devel libpng-devel freetype-devel libmcrypt libmcrypt-devel cmake bzip2-libs bzip2-devel libjpeg libjpeg-devel libxslt

Read more

CURL 指定后端HOST 下载文件,防止DNS轮询


最近碰到一个问题,在测试CDN缓存,每次上传更新一个同名文件,CDN后台并未做刷新缓存动作,但依旧能下载到新的文件,此时发现其实每次解析出来CDN节点都有很多个,怀疑我每次下载用的是不同的节点如下:

root@pc:~# nslookup cos.lejunwl.com
Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
cos.lejunwl.com canonical name = cos.lejunwl.com.cdn.dnsv1.com.
cos.lejunwl.com.

Read more

curl 指定IP 下载文件


最近碰到一个问题,在测试CDN缓存,每次上传更新一个同名文件,CDN后台并未做刷新缓存动作,但依旧能下载到新的文件,此时发现其实每次解析出来CDN节点都有很多个,怀疑我每次下载用的是不同的节点如下:

root@pc:~# nslookup cos.lejunwl.com
Server:         127.0.0.53
Address:        127.0.0.53#53

Non-authoritative answer:
cos.lejunwl.com canonical name = cos.lejunwl.com.cdn.dnsv1.com.
cos.lejunwl.com.

Read more

Let's encrypt 安装配置 Nginx on Ubuntu 18.04 LTS


1、SSH into the server

SSH into the server running your HTTP website as a user with sudo privileges.

2、Add Certbot PPA

You'll need to add the Certbot PPA to your list of repositories. To do so, run the following commands on the command line on the machine:

sudo apt-get update
sudo apt-get install sof

Read more

TeamViewer据称“被入侵”事件的研判及结论


2019年10月11日,火眼举办的FireEyeSummit大会上,几张演讲的PPT拍照被公开到网上,其中一张提及到一款非常流行的远程控制软件TeamViewer曾经疑似被黑客组织入侵,并称其可以访问安装了TeamViewer的任何系统。 由于TeamViewer的易用性、灵活性及强大的远控功能,其使用面非常大,此事件在国内安全圈中引起了极大关注。奇安信威胁情报中心红雨滴团队对TeamViewer相关的安全事件做了收集分析,FireEye所说的事件应该发生在数年前,新版本TeamViewer仍被受控的可能性较小,原因有以下两点。

第一、根据FireEye的报告,其中提到了他们认为的TeamV

Read more

Python安装jieba出现的问题以及解决办法


我是小菜鸟一个,用的是eclipse系统中的Python写的系统,但要用jieba库,我用的是全自动安装的:pip install jieba,也就是说打开cmd直接输入pip install jieba就可以了,但是可能会提示我们:You should consider upgrading via the 'pip install --upgrade pip' command.也就是说会出现下边的这种情况:

那么该怎么解决呢,我是问了问其他人,他们说用国内镜像的就行,我就用的国内镜像的,即打开cmd,输入:pip install -i https://pypi.tuna.tsinghua.e

Read more