分类: LINUX
2012-08-03 15:18:21
1.查看端口8080
lsof –i:8080
2. crontab –e -l -r(删除) -v (显示任务)
分钟 小时 日 月 星期 执行命令
3. mysqldump –u super –p MM name>name.sql
mysql -u super –p MM name< name.sql
show databases;
show table;
use name.sql
select * from
create database name
mysql -u super -p MM passwd nMM
4. rsync source dist -avz
eg:rsync 192.168.0.22:/share/public/ . –avz -R
scp sourcefile(file) dist
5. setup NFS
setup server
mkdir /home/share
chown nobody.nogroup /home/share
vim /etc/exports (add the followings line)
/home/share *(sync,rw, no_root_squash)
exportfs –ra(设置使其生效)
exportfs –v (查看是否生效)
setup client
service nfs rstart
mkdir /mnt/share
mount –t nfs ip:/home/share /mnt/share
6. setup IP
vi /etc/sysconfig/networking-scripts/ifcfg-eth0
or
ifconfig eth0 IP
ifconfig eth0 down
ifconfig eth0 up
7. yum –e (delete) -i v h -uvh
yum install name
8. setup Samba
/etc/samba/smb.conf