如何在全新的CentOS系统中完成lnmp等的部署。
more
关闭密码登录及修改ssh端口
vi /etc/ssh/sshd_config中PasswordAuthentication项改为no,ssh端口改为25???
service sshd restart
vi /etc/sysconfig/iptables
添加-A INPUT -p tcp -m state --state NEW -m tcp --dport 25??? -j ACCEPT
service iptables restart重启防火墙
主域名博客
参考 https://oneinstack.com/install/ 完成lnmp的安装
建立虚拟继续阅读 »
MAC下.zshrc文件备份
more
``` python
Path to your oh-my-zsh installation.
export ZSH=/Users/lujianqiang/.oh-my-zsh
Set name of the theme to load.
Look in ~/.oh-my-zsh/themes/
Optionally, if you set this to "random", it'll load a random theme each
time that oh-my-zsh is loaded.
ZSH_THEME="tjkirch"
Uncomment the follo继续阅读 »
在Scrapy框架下
more
蚂蜂窝
```Python
coding=utf-8
import json
from urlparse import urljoin
import re
import logging
import scrapy
from scrapy.http import Request
from scrapy.selector import Selector
from andaman.utils.html import html2text, parse_time
from andaman.items.qa import QAItem
from andaman.items.jieban import Ji继续阅读 »