perloader

python 学习

安装的是python 3.3 http://www.python.org/ftp/python/3.3.5/python-3.3.5.amd64.msi ‘Python’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。 需要手动添加环境变量:鼠标右键我的电脑 -> 属性 -> 点击高级系统设置 -> 点击环境变量 -> 点击PATH -> 在最后面加上我们的Python安装路径 -> 点击确定。 在这个过程中需要注意的问题是,添加PATH路径的时候,要在最后面添加一个分号。 下载pip-8.1.2.tar.gz至Python安装目录,解压 用CMD控制台进入解压目录 python setup.py install 显示 ImportError: No module named ‘setuptools’ 下载https://bootstrap.pypa.io/ez_setup.py C:\ChromeDL python ez_setup.py 再试一次 pip安装成功了 ‘pip’ 不是内部或外部命令,也不是可运行的程序 或批处理文件。 按照之前介绍的添加环境变量的方法,我们在PATH最后添加: C:\Python33\Scripts; 重启CMD,到现在才算完整安装好了pip。 pip install BeautifulSoup4 LDLE里面 import bs4 没有报错。    

.

Read more

download chrome version 24.9

Instructions: 1. First, download the Chrome version 24.0 installer file on THIS LINK 2. Next, you need to uninstall the current Chrome version. Do that in the Control Panel (Start > Control Panel > Uninstall a program) 3. Once uninstalled, you need to remove the Chrome user folder associated with that version as well. The […]

.

Read more

开启mysql的慢查询

开启mysql的慢查询 用命令开启慢查询 set global slow_query_log=ON; set global long_query_time=1; set global log_queries_not_using_indexes = 1; 查看是否成功 show variables like “%slow%”; show variables like ‘log_queries_not_using_indexes’; show global status like ‘%slow%’; 看看慢查询的记录数     或者 修改mysql的配置文件my.cnf long_query_time = 2 log-slow-queries = /usr/local/mysql/mysql-slow.log     MySQL查询缓存设置 select @@query_cache_type; show variables like ‘have_query_cache’; set @@global.query_cache_size=400000000; select @@global.query_cache_size; select @@global.query_cache_limit;   show […]

.

Read more

杀死包含某关键字的所有进程

httpd服务突然启动不了 (98)Address already in use: make_sock: could not bind to address [::]:80 (98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 no listening sockets available, shutting down Unable to open logs [FAILED]   ps -aux | grep http ps -ef|grep httpd|grep -v grep|cut -c 9-15|xargs kill -9 service httpd restart

.

Read more

命令行FTP上传

yum install lftp lftp xx.xx.xx.xx -u 用户名,密码 mput *.zip  上传 ls -l 文件列表 mget *.txt 下载 mrm *.zip 删除 bye  

.

Read more

Centos 安装 ifstat

wget  http://gael.roualland.free.fr/ifstat/ifstat-1.1.tar.gz tar xzvf ifstat-1.1.tar.gz cd ifstat-1.1 ./configure make make install

.

Read more

查找僵死进程并杀死

一台服务器出现几百个同一进程,都是僵尸进程。   使用命令找出僵死进程: ps -A -o stat,ppid,pid,cmd | grep -e ‘^[Zz]’ 一条简单的命令,直接查找僵死进程,然后将父进程杀死~ ps -A -o stat,ppid,pid,cmd | grep -e ‘^[Zz]’ | awk ‘{print $2}’ | xargs kill -9

.

Read more

install XFileSharing Pro 2.4 extra file server

#wget http://ftp.tu-chemnitz.de/pub/linux/dag/redhat/el7/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm #rpm -Uvh rpmforge-release-0.5.3-1.el7.rf.x86_64.rpm yum update yum install httpd iptables -F service httpd restart #systemctl restart httpd.service #sestatus setenforce 0 ip访问 “It works!” yum install php yum install perl-CGI perl-libwww-perl.noarch perl-DBI perl-DBD-MySQL perl-GD perl-Cache-Memcached 添加域名,/etc/httpd/conf/httpd.conf LimitRequestBody 10485760000 AddHandler cgi-script .cgi .py .sh .pl <VirtualHost *:80> ServerName ru01.jolinfile.com DocumentRoot /var/www/html/ru01 <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory […]

.

Read more

cinipac:罗马尼亚

2 CPUs 2 GB RAM Memory 50 GB HDD Unmetered Traffic 18.00 € /month 回Tk超慢,设置用了一星期,Bitcoin付款。VPS没有控制面板,只有root账号。 IO有点惨。。。 只允许放版权链接和种子,直接的文件甚至图片都不行,所以基本out. ———————————————————————- CPU model : Intel(R) Xeon(R) CPU X5550 @ 2.67GHz Number of cores : 2 CPU frequency : 2666.761 MHz Total amount of ram : 1840 MB Total amount of swap : 2047 MB System uptime : 0days, […]

.

Read more

开机自动运行.sh程序

vi /etc/rc.d/rc.local 这里可以看到服务器上面所有开机自动运行的程序,后面那个& 意思是后台运行。 iptables -F & service mysqld restart & service httpd restart & setenforce 0  &   service crond start 0 2 * * * /sbin/reboot

.

Read more
xyz