3、 为单用户引导加上密码 在“/etc/lilo.conf”文件中加入三个参数:time-out,restricted,password。这三个参数可以使你的系统在启动lilo时就要求密码验证。a): 编辑lilo.conf文件(vi /etc/lilo.conf),假如或改变这三个参数:boo....
分类:
系统相关 时间:
2014-09-04 00:03:37
阅读次数:
251
:/alidata/www/default#?mysql?-u?root?-h?localhost?-p Enter?password:? ERROR?2002?(HY000):?Can‘t?connect?to?local?MySQL?server?through?socket?‘/tmp/mysql.sock‘?(2) 可能的解决方案...
分类:
数据库 时间:
2014-09-03 17:02:27
阅读次数:
208
CREATEPROCEDUREProGetPWD@usernamevarchar(20),@passwordvarchar(20)OUTPUTASBEGINSELECT@password=passwordFROMUsersWHEREusername=@usernameEND string sql =...
分类:
其他好文 时间:
2014-09-03 16:33:36
阅读次数:
253
1.Splunk接收器开启在Splunk服务器安装目录,执行./splunkenablelisten9997–auth<username>:<password>Username默认为splunkweb登陆用户名Password默认为splunkweb登陆密码./splunkenablelisten9997–authadmin:changme2.Splunk转发器安装(Linux下安装,Windows的..
分类:
其他好文 时间:
2014-09-03 15:08:37
阅读次数:
276
进入mysqlserver
如下:
Enter password: ******
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 810
Server version: 5.6.10 MySQL Community Server (GPL)
Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights rese...
分类:
数据库 时间:
2014-09-03 15:03:46
阅读次数:
243
host1:~#echomidware1|passwd--stdinmidwareChangingpasswordformidware.passwd:Haveexhaustedmaximumnumberofretriesforservice修改/etc/pam.d/common-passwordpasswordrequiredpam_pwhistory.soremember=5retry=3修改remember参数为1,修改完密码之后再将参数恢复。
分类:
其他好文 时间:
2014-09-03 13:18:17
阅读次数:
1296
要求:1、接受用户输入;2、判断用户是否是alex,如果不是重新接受输入;3、判断用户alex的密码是否是11111,若不是重新输入;代码如下:input=raw_input("yourname:")
whileTrue:
ifinput==‘alex‘:
print"welcomealex"
password=raw_input("yourpassword:")
p=‘111111‘
while..
分类:
编程语言 时间:
2014-09-03 02:45:16
阅读次数:
223
#yuminstallmariadb-server#(yuminstallmariadb)上步直接安装mariadb,#systemctlstartmariadb#mysql没有密码直接进入安全启动用:mysqld_safeselectuser,password,hostfromuser;这里可以用updateusersethost=‘%‘whereuser=‘root‘;替代:updateusersethost=‘%‘whereuser=‘root‘..
分类:
数据库 时间:
2014-09-03 02:39:16
阅读次数:
314
1、HttpClient 使用方式public static String loginByClientGet(String username,String password) { try { //打开浏览器 Ht...
分类:
移动开发 时间:
2014-09-02 22:39:25
阅读次数:
292
创建一个表:create table t1 (id int primary key,username varchar(20),password varchar(20)); 创建单个索引的语法:create index 索引名 on 表名(字段名) 索引名一般是:表名_字段名 给id创建索引:crea...
分类:
其他好文 时间:
2014-09-02 19:48:45
阅读次数:
213