`
gyl868
  • 浏览: 167047 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论
文章列表

chattr -i

7、执行chattr #chattr -i /etc/passwd # lsattr -v /etc/passwd 2095582053 ------------- /etc/passwd # chattr -i /etc/shadow 8、同步文件 pwconv 9、成功修改密码 passwd Changing password for user root. New UNIX password: BAD PASSWORD: it is WAY too short Retype new UNIX password: passwd: all authen ...
Form1代码 public partial class Form1 : Form { public Form1() { InitializeComponent(); } private void Form1_Load(object sender, EventArgs e) { textBox1.Text = DateTime.Now.ToString(); Form2 fo ...

C#MysqlHelper

    博客分类:
  • C#
View Code MysqlHelper类 using System; using System.Collections; using System.Collections.Specialized; using System.Data; using MySql.Data.MySqlClient; using System.Configuration; using System.Data.Common; using System.Collections.Generic; using System.Text.RegularExpressions; ...
client denied by server configuration: 解决办法: <Directory "/var/www/html/xxx//ROOT"> AllowOverride None Options None Order allow,deny Allow from all </Directory>
http://www.google.com/search?domains=www.hello.com&sitesearch=www.hello.com&q=test http://www.baidu.com/s?si=www.hello.com&cl=3&ct=2097152&tn=baidulocal&word=test www.hello.com 是要搜索的站点 test是要搜索的关键字
此文来自:http://jardot.iteye.com/blog/762349 在数据库中查出来的列表list中,往往需要对不同的字段重新排序,一般的做法都是使用排序的字段,重新到数据库中查询。如果不到数据库查询,直接在第一次查出来的list中排序,无疑会 ...

update查询替换

    博客分类:
  • sql
UPDATE `table_name` SET `field_name` = replace (`field_name`,'from_str','to_str') WHERE `field_name` LIKE '%from_str%' 说明: table_name —— 表的名字 field_name —— 字段名 from_str —— 需要替换的字符串 to_str —— 替换成的字符串
Table Table用来定义entity主表的name,catalog,schema等属性。 元数据属性说明:     name: 表名     catalog: 对应关系数据库中的catalog     schema:对应关系数据库中的schema     UniqueConstraints:定义一个UniqueConstraint数组,指定需要建唯一约束的列       @Entity     @Table(name="CUST")     public class Customer { ... }    SecondaryTable 一个entity c ...

Spring3工具类

1) 请求工具类 org.springframework.web.bind.ServletRequestUtils //取请求参数的整数值: public static Integer getIntParameter(ServletRequest request, String name) public static int getIntParameter(ServletRequest request, String name, int defaultVal) -->单个值 public static int[] getIntParameters(ServletRequest reques ...

Map的value取得key

    博客分类:
  • java
转载http://hi.baidu.com/sonos/item/2510a3166cb377c838cb30a4 protected List getKeyByValue(Map map, Object value) { List keys = new ArrayList(); Iterator it = map.entrySet().iterator(); while (it.hasNext()) { Map.Entry entry = (Entry) it.next(); Object obj = entry.getValue(); if (obj != null & ...

mysql 查找替换

    博客分类:
  • sql
例句: UPDATE `products` SET `products_description` = replace (`products_description`,'cheap','discount'); 将products表中的字段products_description中的字符cheap替换成discount

springMVC 杂记

<mvc:mapping path="/user/*" />  <mvc:interceptors>      <bean class="com.excelsuperior.government.eims.action.LoggerInterceptor" /> </mvc:interceptors> JAVA_HOME:F:\Java\jdk1.6.0_16 path:%JAVA_HOME%\bin;
本文目录 linx查看系统配置常用命令 unix 环境高级编程 个人整理的Linux Shell语法速查表(用C语言语法来作对比) 如何使用gdb进行debug c程序 GDB调试精粹及使用实例 linx查看系统配置常用命令 系统 # uname -a               # 查看内核/操作系统/CPU信息 # head -n 1 /etc/issue   # 查看操作系统版本 # cat /proc/cpuinfo      # 查看CPU信息 # hostname               # 查看计算机名 # lspci -tv              # ...

CentOS自启动

# /etc/profile #/etc/rc.d/rc.local 用chkconfig配置linux自启动服务 要将一个服务变成自动启动的服务,可以利用chkconfig命令来完成。具体来说可以通过以下几个步骤实现: 例如要将httpd服务配置成开机即自启动的服务,可以 1.在/etc/rc.d/ ...
http://www.iteye.com/topic/730241
Global site tag (gtag.js) - Google Analytics