壹 安装Linux系统后调优及安全设置: 1 关闭SELinux功能: [root@localhost data]# sed 's#SELINUX=enforcing#SELINUX=disabled#g' /etc/selinux/config (先用sed命令修改输出内容,再加-i修改文件内容,生产环境中也是要这样操作的) # This file controls the state of SELinux on the system.# SELINUX= can take one of
//对日期中部分小于10的数字前边添加0 function zero(s){ return s < 10 ? '0' + s: s; } var date=new Date(), year = date.getFullYear(), month = date.getMonth()+1, day = date.getDate(), hour = date.getHours(), minute = date.getMinutes(), second = date.getSeconds(); var