1、初始化密码 >sudo bin/mysqladmin -u root password 'pwd string'2、ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO) 1)添加启动参...
分类:
数据库 时间:
2014-07-02 18:51:21
阅读次数:
172
修改script.bin 找到最后节点[led_para] 修改leds_used = 0script.bin 一般在系统盘的第一个分区 例如nand就在/dev/nanda sdcard就在/dev/mmcblk0p1修改需要bin2fex和fex2bin 这些都在sunxi-tools 具体安装...
分类:
其他好文 时间:
2014-07-02 18:41:01
阅读次数:
248
cd /usr/local/mysql/bin/grant all privileges on *.* to 'root'@'%' identified by '12345678';flush privileges;grant select on weixin.wx_tuijian to 'bbc....
分类:
数据库 时间:
2014-07-02 17:55:37
阅读次数:
229
#!/usr/bin/env python#coding=utf-8import traceback try: 1/0except Exception, e: print e print traceback.format_exc()
分类:
编程语言 时间:
2014-07-02 17:34:59
阅读次数:
266
系统安全最小服务法文件安全(suid/sgid/stick/chattr)升级系统和软件最小权限法(su/sudo)SSH安全建议最小服务法(systemv/xinetd)关闭不需要的服务:#vim/root/service.sh#!/bin/bashservicexinetdstopchkconfigxinetdoffservices="networksshdsysloglvm2-monitormessagebussendm..
分类:
其他好文 时间:
2014-07-02 16:18:01
阅读次数:
292
#!/usr/bin/pythonimportMySQLdbdefnew_mail_mysql(ak):printakconn=MySQLdb.connect(host=‘m3306.sae.sina.com.cn‘,user=‘sae_ol‘,passwd=‘7b149edb22ae7526‘,db=‘sae‘,port=3306)cur=conn.cursor()sql="selectnamefromappwhereaccesskey=‘%s‘"%akcur.execute(sql)app_name=cu..
分类:
数据库 时间:
2014-07-02 16:14:12
阅读次数:
285
useradd指令useradd创建用户。创建用户时的一些默认选项存放在/etc/default/useradd和/etc/login.defs文件中。/etc/default/userasdd文件的内容如下:[root@Server3tmp]#cat/etc/default/useradd
#useradddefaultsfile
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/ba..
分类:
其他好文 时间:
2014-07-02 16:05:03
阅读次数:
237
快速的ping网络中存活的主机,该脚本有并行执行的特点,能够在后台快速完成网络主机的检查。#!/bin/bash
#
#
foripin192.168.1.{1..255};
do
(
ping$ip-c2&>/dev/null;
if[$?-eq0];
then
echo$ipisalived
fi
)&
done
wait如果要出事255个地址,ping每一个IP的主机都..
分类:
其他好文 时间:
2014-07-02 15:59:11
阅读次数:
286
#!/bin/shmain(){clearecho‘------------------------------------------------------‘echo‘1.Createasoftwareraidarray‘echo‘2.Viewraidarraysyncstatus‘echo‘3.Viewraidarraydetail‘echo‘4.Createmdadm.conffile‘echo‘5.Addhotsparedeviceonraidarray‘echo‘6.Replaceafaultde..
分类:
其他好文 时间:
2014-07-02 15:32:20
阅读次数:
289
(一):目录结构 tomcat的目录结构如下:目录名 简介bin 存放启动和关闭tomcat脚本conf 包含不同的配置文件,server.xml(Tomcat的主要配置文件)和web.xmlwork 存放jsp编译后产生的class文件webapp 存放应用程序示例,以后你要部署的应用程序也要放到...
分类:
其他好文 时间:
2014-07-02 14:54:09
阅读次数:
238