mount /dev/cdrom /mnt/cdr 将/dev/cdrom挂载到/mnt/cdr上,以后读取光驱里的东西就从/mnt/cdr里读取,/dev/cdrom本身不能被读取
umount /dev/cdrom 或者 umount mnt/cdr卸载
load bios(hard information)->read MBR's config to find out the OS->load the kernel of the OS->init process starts...->execute /etc/rc.d/sysinit->start other modules(etc/modules.conf)->execute the run level scripts->execute /rc.d/rc.local->execute /bin/login->shell started...
在/rc.d/rc.local中写入tomcat等需要开机自启动的软件启动命令
0:系统停机
1:单用户工作状态
2:多用户状态(没有NFS)
3:多用户状态(有NFS)
4:系统未使用,留给用户
5:图形界面
6:系统正常关闭并重新启动
修改默认启动级别
vi /etc/inittab
useradd testuser 或者 adduser testuser 增加一个用户testuser,默认用户组也为testuser,但是这个时候testuser还没有激活,需要passwd testuser指定密码,激活这个用户,方可使用
一般用户创建密码不能太简单,否则系统不给与通过,但是root用户就可以创建123之类的简单密码,系统会给予提示,但不会拒绝
useradd testuser2 -g testuser增加一个用户testuser2,在testuser用户组中
usermod -g testg testuser2改变testuser2到名为testg的用户组中
su testuser切换到testuser用户su为switch user缩写
(1):ln /home/testuser 1 硬链接
(2):ln -s /home/testuser 1 软链接
区别在于删除了/home/testuser文件夹之后1还能访问,而2不能访问了,2比较像快捷方式,1是copy源文件并对其链接,如果源文件发生变化,1也同时变化,但是源文件删除的时候,1还保留着最后的备份
service vsftpd start启动vsftp,然后试着连接,用ftp *.*.*.*,如果无法连接,试着检查网络,防火墙,端口等因素
service iptables stop关闭防火墙
如果要用root上传文件,需要修改/etc下两个vsftp用户列表,将其中的root删除
在/etc/rc.local里面加入/usr/local/bin/vsftpd &即可实现以后台程序开机自启动
或者chkconfig vsftpd on实现开机自启动
chkconfig --list显示机器中各个软件的开机自启动情况列表
在ubuntu中sysv-rc-conf功能和chkconfig类似
ssh服务的启动和设置开机自启动
service sshd start
chkconfig sshd on
gzip 可以解压缩,也可以压缩 -1表示最快 -9表示压缩效果最好
gzip -d 要解压的文件
tar -zxvf 要解压的文件 z表示压缩过的格式 x表示解压 v表示显示解压时的信息 f表示使用档名
rpm全称resource package manager
rpm -qa显示所有装过的软件
rpm -e 软件名 卸载所指定的软件
rpm -ivh 包名 安装rpm包