-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinfo.txt
150 lines (109 loc) · 3.43 KB
/
info.txt
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
Update
----------------------------
cd /data/project/paper_plane/
git fetch --all
git reset --hard origin/master
service apache2 graceful
Path
----------------------------
root: /data/project/paper_plane/
git fetch --all
git reset --hard origin/master
<a href="http://mp.weixin.qq.com/s?__biz=MzIyMjI5NjA2Nw==&mid=506286079&idx=1&sn=7cf733e6f0c2cfeb136bed71b82e233e#rd">点击</a>
url
----------------------------
http://127.0.0.1:8000/admin/
http://127.0.0.1:8000/love_me/paper_plane/
http://127.0.0.1:8000/music_rss/one_page/
http://127.0.0.1:8000/subscription/weixin_entry/
http://127.0.0.1:8000/treasure/treasure/
http://115.159.81.50/admin/
http://115.159.81.50/love_me/paper_plane/
http://115.159.81.50/music_rss/one_page/
http://115.159.81.50/subscription/weixin_entry/
http://iready-go.com/love_me/paper_plane/
http://iready-go.com/lin/do_you_love_me/
http://iready-go.com/lin/you_are_the_one/
Apache
----------------------------
sudo apt-get install apache2
curl 127.0.0.1
configs:
/etc/apache2/apache2.conf
/etc/apache2/sites-enabled/paper_plane.conf
v-evn python path:
/data/project/magnifier/magnifier_env/lib/python2.7/site-packages/
log:
ErrorLog "|/usr/bin/cronolog /data/logs/error/errorLog-%Y-%m-%d.log --period='1 days'"
CustomLog "|/usr/bin/cronolog /data/logs/custom/customLog-%Y-%m-%d.log --period='1 days'" common
:: paper_plane config
<VirtualHost *:80>
DocumentRoot "/data/project/paper_plane"
ServerName lin-masterkang.com
CustomLog "|/usr/bin/cronolog /data/logs/custom/customLog-%Y-%m-%d.log --period=days" common
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / "/data/project/paper_plane/paper_plane/wsgi.py"
</VirtualHost>
::
:: magnifier config
<VirtualHost *:8000>
DocumentRoot "/data/project/magnifier"
ServerName magnifier.com
ErrorLog "/data/logs/magnifier_app_errlog.txt"
CustomLog "|/usr/bin/cronolog /data/logs/custom/magnifier_customLog-%Y-%m-%d.log --period=days" common
<Directory />
Options FollowSymLinks
AllowOverride None
Order deny,allow
Allow from all
</Directory>
WSGIScriptAlias / "/data/project/magnifier/magnifier/wsgi.py"
</VirtualHost>
::
curl lin-masterkang.com:8000/love_me/show_form/
curl lin-masterkang.com/love_me/show_form/
django
----------------------------
sudo apt-get install python-pip python-dev build-essential
pip install Django==1.7
log
----------------------------
cat /data/logs/apache2/error_log.txt
cat /data/app_log.txt
admin
----------------------------
python manage.py createsuperuser
wechat
----------------------------
media_id: OIM_czapzfW0gkjQg9SA-QEFc03Eoi6ZLxVq1r41uJbTz95Nv6OLL1wAPAOe6LaE
format: amr
media_id: RC6tQbAn94Hk2t6ceO9PmqHs7pqRPeS37udiaaIOwIfylQfyVVDnSAzTgOrbsdSF3sqhxgVCKXWY0nHG3H2nq8w
format: jpeg
SQL
---------------------------
kill `cat /usr/local/mysql/data/kangtian.local.pid`
mysqld_safe
alert database *** character set utf8
alter table *** convert to character set utf8
mysql -uroot -p
tiankang
use paper_plane_db;
spider
---------------------------
cd king_spider
scrapy crawl LuoWangJournal -o luowang.json
scrapy crawl LuoWangJournal
scrapy crawl LuoWangEssays
scrapy crawl YiKeEssays
lib requirements
---------------------------
# lxml
sudo apt-get install python-dev libxml2-dev libxslt1-dev zlib1g-dev
survey
---------------------------
http://wj.qq.com/s/478210/ff4d