You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
2.2 KiB
48 lines
2.2 KiB
按照系统必备
|
|
#yum install libicu
|
|
备份表
|
|
#mysqldump -uroot -pDsideaL147258369 dsideal_db t_sys_dic_item>/root/t_sys_dic_item.sql
|
|
#mysqldump -uroot -pDsideaL147258369 dsideal_db t_base_person>/root/t_base_person.sql
|
|
升级数据库
|
|
#mysql -uroot -pDsideaL147258369 dsideal_db<update.sql
|
|
配置反向代理:
|
|
#nano /usr/local/openresty/nginx/conf/nginx.conf
|
|
添加
|
|
location ^~ /profile_ext/ {
|
|
proxy_pass http://10.0.15.106/profile_ext/;
|
|
}
|
|
#/usr/local/openresty/nginx/sbin/nginx -s reload
|
|
设置开机启动
|
|
#nano /etc/rc.d/rc.local
|
|
添加
|
|
/root/publish/TeacherExt>null &
|
|
|
|
|
|
部署测试:
|
|
#cd /root/publish
|
|
#wget https://iot.edusoa.com/publish.zip --no-check-certificate
|
|
#unzip publish.zip
|
|
#cd publish
|
|
chmod 755 TeacherExt
|
|
|
|
备份本地测试数据:
|
|
mysqldump -uroot -pDsideaL147258369 dsideal_db t_base_person_log2 t_sys_dic_item t_base_organization t_base_person t_sys_loginperson t_sys_person_role t_sys_role>/root/test.sql
|
|
还原到客户测试机
|
|
mysql -uroot -pDsideaL147258369 dsideal_db<test.sql
|
|
kill -3 [pid]
|
|
后执行
|
|
nohup ./TeacherExt>null &
|
|
|
|
|
|
|
|
|
|
$.ajax({
|
|
type:'get',
|
|
headers: {
|
|
//"Access-Control-Allow-Origin": "*",
|
|
Accept: "application/json; charset=utf-8",
|
|
Authorization: "Bearer "+"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9uYW1lIjoiZF9jaGVuZ3pob25ncXUiLCJodHRwOi8vc2NoZW1hcy54bWxzb2FwLm9yZy93cy8yMDA1LzA1L2lkZW50aXR5L2NsYWltcy9naXZlbm5hbWUiOiLln47kuK3ljLrnrqHnkIblkZgiLCJQZXJzb25JZCI6IjE4MTE4IiwiT3JnYW5JZCI6IjMwMjcwNSIsImh0dHA6Ly9zY2hlbWFzLnhtbHNvYXAub3JnL3dzLzIwMDUvMDUvaWRlbnRpdHkvY2xhaW1zL25hbWVpZGVudGlmaWVyIjoiMTgxMTgiLCJodHRwOi8vc2NoZW1hcy5taWNyb3NvZnQuY29tL3dzLzIwMDgvMDYvaWRlbnRpdHkvY2xhaW1zL3JvbGUiOlsi5Z-O5Lit5Yy65pWZ6IKy5bGA566h55CG5ZGYIiwi5Yy656CU5L-u5Z-56K6t54-t54-t5Li75Lu7Iiwi56CU5L-u5Yy6566h55CG5ZGYIiwi5Yy65Y6_5pWZ6IKy5bGA5pWZ6IGM5belIiwi5Yy65pWZ6IKy5bGA5pWZ6IGM5belIl0sImV4cCI6MTY0MzI1NTE2NSwiaXNzIjoiMTExMTExMTExMTExMTExMTExMTExMTExIiwiYXVkIjoiMTExMTExMTExMTExMTExMTExMTExMTExIn0.EY89aSzcjOcWB3h8oy7uXcDrPEBYgTwPpMzGGhEokaE"
|
|
},
|
|
url: 'http://10.10.15.12:8081/?pageNumber=1&pageSize=20&person_name=&bureau_id=302705&RequestEditStatus=&CheckStatus=&random_num=209321',
|
|
success: function(r){console.log(r);}
|
|
}); |