forked from testxiaoming001/z
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzhuyi
executable file
·69 lines (48 loc) · 1.56 KB
/
zhuyi
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
sudo apt-get install zbar-tools
sudo apt-get install qrencode
mkdir /public/uploads/qr
vi /usr/local/php/etc/php.ini
php.ini 去掉 proc_open,proc_get_status,exec函数
nohup ./shell.sh &
//mysql 相关
mysqldump -h loacalhost -uroot -p www_zf_com >www_zf_com.sql
scp命令复制本地数据到服务器
scp /home/www_zf_com.sql [email protected]:/home/
scp -r /home/wwwroot/www.paofen.com/ [email protected]:/home/wwwroot/
create database www_zf_com;
create database www_pf_com;
use www_zf_com;
source /home/www_zf_com.sql;
use www_pf_com;
source /home/www_pf_com.sql;
vi /usr/local/mysql/my.cnf
去掉严格模式
vi /usr/local/php/etc/php.ini
php.ini 去掉 proc_open,proc_get_status,exec函数
//上传目录
scp -r test [email protected]:/home
git:
git config core.filemode false
find ./ -type f -name '*.js'|xargs sed -i 's#72.167.224.114#api.dabenpaofen.com#g'
//清空sql
delete from cm_balance where id > 1;
delete from cm_balance_cash where id > 1;
delete from cm_gemapay_order where id > 1;
delete from cm_user where uid > 1;
delete from cm_balance_change where id > 1;
delete from cm_api where id > 1;
location /h5/ {
root /home/wwwroot/www.vue.com/unpackage/dist/build/h5/;
index index.html index.htm;
try_files $uri $uri/ /index.html last;
}
//每天凌晨定时清除相关数据表数据
#!/bin/bash
0 0 */3 * * cd /home/wwwroot/www.zf.com && php think cleardata
记得重启crontab服务
apt-get install language-pack-zh-hans
locale-gen zh_CN.UTF-8
cd /etc
vim bash.bashrc
export LC_ALL='zh_CN.UTF-8'
source bash.bashrc