- 浏览: 140606 次
- 性别:
- 来自: 北京
-
文章列表
永久打开或则关闭
chkconfig iptables on
chkconfig iptables off
即时生效:重启后还原
service iptables start
service iptables stop
开机默认VSFTP服务自动启动:
方法一:(常用\方便)
[root@localhost etc]# chkconfig --list|grep vsftpd ( 查看情况)
vsftpd 0:off 1:off 2:off 3:off 4:off 5:off 6:off
...
以管理员身份进入Linux,修改文件:/etc/inittab
找到“id:5:initdefault:”,其中的5就是X-Window,为默认运行级别,一般我们把5改为3即可。
一共有7种启动级别,分别为:
# 0 - halt (Do NOT set initdefault to this)
# 1 - Single user mode
# 2 - Multiuser, without NFS (The same as 3, if you do not have networking)
# 3 - Full multiuser mode
...
首先:打开你的MySql安装目录,找到一个my.ini文件,打开。建议用Editplus打开,因为可以看到第几行:打开如下:
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ------------------ ...
public boolean deleteSchedule(int number, String courseNum) throws SQLException {
// TODO Auto-generated method stub
boolean flag =false;
String sql1 = "delete from SC WHERE CNumber=? and CourseNum=?";
String sql2 ="delete from Schedule WHERE CNumber=? and CourseNum=? ...
<script>
var xmlHttpRequest;
function getXmlHttpRequset(){
try{
if( window.ActiveXObject ){
for( var i = 5; i; i-- ){
try{
if( i == 2 ){
xmlHttpRequest = new ActiveXObject( "Microsoft.XMLHTTP" );
}else{
xmlHttpReq ...
Save could not be completed.
Reason:
Some characters cannot be mapped using “ISO-8859-1″ character encoding. Either change the encoding or remove the characters which are not supported by the “ISO-8859-1″ character encoding.
很明显,是因为 js 文件里面有中文字符导致的,但是我的项目属性里面设置了以 utf-8 编码,而且用记事本打开另存为 utf-8 编码仍然解决不 ...
- 2009-09-08 10:39
- 浏览 3621
- 评论(0)
步骤如下:
1.CVS官方网站上下载最新版本并安装. 官方主页: http://www.march-hare.com/cvspro/
2.启动CVS服务,并创建CVS库.
3.在创建的CVS库下的CVSROOT目录下,新建文件并命名为passwd.在该文件里添加如下内容:
bluelazysb::Administrator
总共有三部分信息,用户名、密码、本地用户三部分之间使用冒号“:”来进行分割。
用户名:就是登陆CVS的用户名
密 码:用户的密码,需要经过加密的,如果为空,那么就是空密码
本地用户:CVS用户这个别名对应的本地用户,(跟本地用户没有任何其他关系,仅仅 ...
连接:mysql -h主机地址 db_name -u用户名 -p用户密码 (注:u与root可以不用加空格,其它也一样)
断开:exit (回车)
创建授权:grant select on 数据库.* to 用户名@登录主机 identified by \"密码\"
grant all on vote.* to vote@"%" identified by "votePWD";
修改密码:mysqladmin -u用户名 -p旧密码 password 新密码
删除授权: revoke select,insert,upda ...
public static char doVerify(String id)
{
char pszSrc[]=id.toCharArray();
int iS = 0;
int iW[]={7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2};
char szVerCode[] = new char[]{'1','0', 'X', '9', '8', '7', '6', '5', '4', '3', ...