标签:har inf root slist color convert json variable out
virtualbox as git client, pswd 123321:
git server:
adduser pswd online:
copy .pub to machine 192.168.101.72 used to be git server:
192.168.101.72:
add user git to sudo list, for have priority to create directory:
create bare git repository:
无法上外网,修改/etc/resolv.conf
删除dns,重启服务
cannot find static files
服务器上无法保存拓扑:
查看apache日志是权限不够创建目录:
由于.gitignore忽略该目录,需手动创建,类似于需要执行python manage.py collectstatic 创建静态目录一样:
创建目录:
依然无法保存,虚拟机上也是此权限但是可以保存:
除非不适用apache不是用ubuntu用户执行的:
添加其他用户的写权限:
保存成功了:
创建了两个文件:
不按ip分布保存,又多了一个文件,经过测试没存一次多一个json文件
/etc/apache2/sites-available/000-default.conf
修改importdb目录添加o+w权限,则能够正常下载
之后报错:
原因是数据库无法查出东西来:
连接数太多卡住了:
for i in $(mysql -uroot -p123456 -Bse "show processlist" | awk ‘{print $1}‘);do mysql -uroot -p123456 -e "kill $i";done
关闭连接后用root查询链接列表
关闭连接之后可以正常查询:
ok,部署成功。
140.31上安装ntp,系统17.04,直接sudo apt install ntp不成功,更换/etc/apt/sources.list
执行sudo apt update更新软件源列表,之后重新install ntp成功
配置:
ok,时间校准成功:
查看event是否开启 : SHOW VARIABLES
LIKE
‘%event_sche%‘
;
将事件计划开启 :
SET
GLOBAL
event_scheduler = 1;
将事件计划关闭 :
SET
GLOBAL
event_scheduler = 0;
解决中文乱码问题:
alter table terminalInfo CONVERT TO CHARACTER SET utf8;
#deviceinfo
insert into HostMonitorDataOp.terminalInfo(uniqueId,ip,time,action,description)
select
HostMonitorData.view_deviceinfo.uniqueId,
HostMonitorData.view_deviceinfo.ip,
HostMonitorData.view_deviceinfo.time,
‘deviceinfo‘,
JSON_OBJECT(
"description",
GROUP_CONCAT(
CONCAT("{deviceName:‘",HostMonitorData.view_deviceinfo.deviceName),"‘}")
)
from (HostMonitorData.view_deviceinfo JOIN HostMonitorData.view_lastest_baseinfo)
where HostMonitorData.view_deviceinfo.uniqueId = HostMonitorData.view_lastest_baseinfo.uniqueId
and UNIX_TIMESTAMP(HostMonitorData.view_deviceinfo.time) > UNIX_TIMESTAMP(DATE_ADD(NOW(),INTERVAL -7 MINUTE)) #定时为当前时间前3分钟的操作行为
group by HostMonitorData.view_deviceinfo.uniqueId,HostMonitorData.view_deviceinfo.time,HostMonitorData.view_deviceinfo.deviceName;
标签:har inf root slist color convert json variable out
原文地址:http://www.cnblogs.com/helenbj/p/7613830.html