ubuntu 收集的命令
$ sudo /usr/sbin/apache2ctl start
sudo /usr/sbin/apache2ctl stop
重启Apache
$ sudo /usr/sbin/apache2ctl restart
export JAVA_HOME=/usr/local/jdk1.5.0_15
export CLASSPATH=$CLASSPATH:$JAVA_HOME/lib:$JAVA_HOME/jre/lib
export PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH:$JAVA_HOME/bin
/usr/local/apache-tomcat-5.5.26/bin# ./shutdown.sh
/usr/local/apache-tomcat-5.5.26/bin# startup.sh
cp source/ des/ -a
set password for 'root'@'localhost'=password('root'); //更改密码
mysql -root -p
mysqladmin -u root -p root create dbtest
mysql -u root -p test
CREATE TABLE `TheTable` (
`IDTheTable` int(11) NOT NULL auto_increment,
`Label` varchar(64) default NULL,
PRIMARY KEY (`IDTheTable`)
) ;
mysql -uroot -proot test<'/media/sda7/sql.txt'
mysqldump -u pivot -p pivot news > /home/gw/aa.sql 备份数据
mysql -u pivot -p pivot news < /home/gw/aa.sql 还原数据
mysqldump -uroot -proot test -R >/home/gw/bb.sql //带procudure
'/usr/local/tomcat/apache-tomcat-5.5.26/bin/shutdown.sh'