摘要: 在CentOS系统下,主要有两种方法设置自己安装的程序开机启动。1、把启动程序的命令添加到/etc/rc.d/rc.local文件中,比如下面的是设置开机启动httpd。#!/bin/sh## This script will be executed *after* all the other init scripts.# You can put your own initialization stuff in here if you don't# want to do the full Sys V style init stuff.touch /var/lock/subsys/loc 阅读全文
posted @ 2012-07-29 16:58 透传云 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 文章来源:http://www.centos.bz/2011/04/reset-mysql-root-password/你可以按照以下简单的五步来重置MySQL数据库服务器密码。第一步,停止MySQL服务器。第二步,使用–skip-grant-tables选择启动mysqld进程以便解除要求密码登录提示。第三步,以root用户连接mysql服务器。第四步,设置一个新的mysql root用户密码。第五步,退出并重启mysql服务器。以下给出每步的具体命令。1、停止mysql服务/etc/init.d/mysql stop输出:Stopping MySQL database server: my 阅读全文
posted @ 2012-07-29 16:56 透传云 阅读(265) 评论(0) 推荐(0) 编辑