Linux软件安装及常见问题.docVIP

  • 10
  • 0
  • 约8.83千字
  • 约 12页
  • 2017-05-28 发布于河南
  • 举报
Linux软件安装及常见问题

Linux软件安装及常见问题 1.查看端口:netstat -nat 2.查看环境变量:echo $JAVA_HOME 3.查看当前tomcat服务的进程 (如果要强制关闭该进程,用命令:kill id号): ps -ef | grep tomcat 4.查看在Linux下安装的所有的包:rpm -qa 如: rpm -q gcc binutils elfutils compat glibc libaio libstdc make sysstat 5.查看是否安装jdk或者安装了哪个版本:rpm -qa | grep jdk 6.卸载程序包:rpm -e 包名 7.安装文件:rpm -ivh 文件名 8.查看Linux下ip地址: ifconfig 9.关闭Linux防火墙服务:service iptables stop 10.让Linux防火墙开机关闭:chkconfig iptables off 11.在用vi编辑器时,在使用「last line mode」之前,请记住先按「ESC」键确定您已经处于「command mode」下后,再按「:」冒号即可进入「last line mode」。在文件中的每一行前面列出行号:set nu 12.从命令行模式切换回界面登录模式: startx 13.删除非空目录:rm -rf 文件名 14.挂载光驱: mount /media/cdrom;卸载光驱:umount /media/cdrom 15.查看当前某服务的状态:service 服务名 status 如:service iptables status 查看防火墙的服务状态 16.命令行上网:htmlview .hk -----------------------------解决Putty中文乱码问题-------------------------------------------------------- 在window-〉Appearance-〉Translation中, Received data assumed to be in which character set 中,把Use font encoding改为UTF-8 -----------------------------解决开机启动sendmail服务慢的问题---------------------------------------------------------- 修改/etc/hosts文件。 修改前: # Do not remove the following line, or various programs # that require network functionality will fail. localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 修改后: # Do not remove the following line, or various programs # that require network functionality will fail. # localhost.localdomain localhost 主机名(root@bogon) localhost.localdomain localhost bogon ::1 localhost6.localdomain6 localhost6 ----------------------------------------------------------------------------------------------------- -----------------------------修改Linux默认启动级别或模式------------------------------------------- 以管理员身份进入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 sam

文档评论(0)

1亿VIP精品文档

相关文档