个人使用centos使用习惯

1.安装Centos 版本不限(查看CentOS版本方法 lsb_release -a)
2.设置简单容易记住的用户名和密码
3.开机root用户登录
4. 查看防火墙状态

service iptables status 
关闭防火墙 
chkconfig iptanles off 之后 reboot

5.setup 配置ip
6.vi 修改 /etc/sysconfig/network-scripts/ifcfg-eth0 配置文件 ONBOOT=no 修改为 yes
7.重启网卡

service network resatrt

8.yum 安装

wget yum -y install wget

9.wget 安装

vim  wget -qO-  | sh -x

10.安装中文支持

yum -y install "@Chinese support"

11.yum 安装

httpd yum -y install httpd

12.添加htttpd 自启

chkconfig --level 2345 httpd on

13.安装java jdk

  	tar -zxvf jdk 包名
  	vim /etc/profile  修改配置文件 添加环境变量
	在文件最后添加
	jdk1.8.0_131
	export JAVA_HOME=/usr/java/jdk1.8.0_131
	export PATH=$JAVA_HOME/bin:$PATH 
	export CLASSPATH=.:$JAVA_HOME/lib/dt.jar:$JAVA_HOME/lib/tools.jar
	jdk1.8.0_131改为你安装的jdk的文件夹名称
	重新编译文件:
	source /etc/profile  或者  reboot (需要重启) 

14.安装MySQL

	工具/原料
?	接入Internet的Centos计算机
	安装Mysql
	1.
	Centos 6.6下安装Mysql很简单,
	yum list mysql-server
	2.
	当只有一个时候就可以直接
	yum -y install mysql-server
	进行安装
 设置Mysql的服务
	1.
	先启动Mysql服务
	service mysqld start
	netstat -antp | grep mysqld
	service mysqld stop
	2.
	连接一下试一下,直接
	mysql
	然后
	\q
	关闭连接
	3.
	设置Mysql开机启动
	chkconfig --level 2345 mysqld on
	修改密码并设置远程访问
	1.
	mysql
	连接mysql数据库
	设置密码
	use mysql;
	update user set password=password('l') where user="root";
	update user set password=password('root') where user="root";
	SET PASSWORD = PASSWORD('root');
	SET PASSWORD = PASSWORD('en');
	flush privileges;
	//MYSQL.导入超过100M数据库方法,MYSQL命令行导入大数据库方法
	mysql -uroot -proot db_data_supporter

17.安装Webmin

	 tar -zxvf web*
	 cd  ./setup

18.装MyEclipse
19.装tomcat
19.安装dos2unix

	yum -y install dos2unix

20.安装Rar

	tar -zxvf rarlinux-x64-4.2.0.tar.gz
	cd rar #进入目录安装
	[root@localhost rar]# ls
	acknow.txt   makefile   rarfiles.lst  readme.txt    whatsnew.txt
	default.sfx  order.htm  rar_static    technote.txt
	license.txt  rar        rar.txt       unrar
	[root@localhost rar]# make
	mkdir -p /usr/local/bin
	mkdir -p /usr/local/lib
	cp rar unrar /usr/local/bin
	cp rarfiles.lst /etc
	cp default.sfx /usr/local/lib
	[root@localhost rar]# rar #出现如下信息表示rar已安装成功
	RAR 4.20   Copyright (c) 1993-2012 Alexander Roshal   9 Jun 2012
	Trial version             Type RAR -? for help
	Usage:     rar  - -  
		       <@listfiles...> 
	
	  a             Add files to archive
	  c             Add archive comment
	  cf            Add files comment
	  ch            Change archive parameters
	  cw            Write archive comment to file
	  d             Delete files from archive
	  e             Extract files to current directory
	  f             Freshen files in archive
	  i[par]=  Find string in archives
	  k             Lock archive
	  l[t,b]        List archive [technical, bare]
	  m[f]          Move to archive [files only]
	  p             Print file to stdout
	  r             Repair archive
	  rc            Reconstruct missing volumes
	  rn            Rename archived files
	  rr[N]         Add data recovery record
	  rv[N]         Create recovery volumes
	  s[name|-]     Convert archive to or from SFX
	  t             Test archive files
	  u             Update files in archive
	  v[t,b]        Verbosely list archive [technical,bare]
	  x             Extract files with full path
	
	  -             Stop switches scanning
	  @[+]          Disable [enable] file lists
	  ad            Append archive name to destination path
	  ag[format]    Generate archive name using the current date
	  ai            Ignore file attribut

21安装dbeaver

© 版权声明
THE END
喜欢就支持一下吧
点赞15 分享
评论 抢沙发

请登录后发表评论