linux_base_commond_two
1.linux privilege commond
a.throught ll commond can get follow picture

d directory - file l link , after nine number is three numbers a group
a.first group is user(属主) privileges b. second group is group(属组) privileges c.third group is other privileges
r read privilege 4 w writer privilege 2 x expression executalbe 1
b.modify privilege
chmod u=rwx, g=rw, o=r a.txt
chmod 764 a.txt
2.install soft commond
a.install JDK
NOTE:soft commond with rpm is equal to windows soft assisantor
1) look up current linux system whether or not installed JDK
rpm -qa |grep java
2)uninstalling jdk soft from one look up
rpm -e --nodeps unstall_soft_name

3)upload JDK to linux through SSH soft
4)decompression JDK soft
tar –xvf jdk-7u71-linux-i586.tar.gz –C /usr/local
5)config JDK environment variable,open /etc/profile and add following content
|
#set java environment JAVA_HOME=/usr/local/jdk1.7.0_71 CLASSPATH=.:$JAVA_HOME/lib.tools.jar PATH=$JAVA_HOME/bin:$PATH export JAVA_HOME CLASSPATH PATH |
6)reflush /etc/profile
source /etc/profile
b.installed MYSQL
1.look up centos with MYSQL
rpm -qa | grep mysql
2.unstall mysql
3.upload mysql to linux
4.decompression mysql
tar -xvf MySQL-5.6.22-1.el6.i686.rpm-bundle.tar -C /usr/local/mysql
5.installing mysql on /usr/local/mysql directory
install server-side:rpm -ivh MySQL-server-5.6.22-1.el6.i686.rpm
install client-side:rpm -ivh MySQL-client-5.6.22-1.el6.i686.rpm
6.startup mysql
service mysql start
7.link mysql services into system services and set start with boot
join system services:chkconfing --add mysql
auto start :chkconfig mysql on
8.login mysql
installed mysql will generate a random password in /root/.mysql_secret
mysql -u root -p
9.modify mysql password
set password=password('root')
10.started remote login
in default situation ,mysql isn't support to remote login,so you need set it. enabling remote login.
login mysql that you input follow command
grant all privileges on *.* to 'root' @'%' identified by 'root';
flush privileges;
11.open access ports 3306
/sbin/iptables -I INPUT -p tcp --dport 3306 -j ACCEPT
/etc/rc.d/init.d/iptables save ---(keep firewall all the time)
c.installed Tomcat
1.upload tomcat into linux
2.decompression tomcat into /usr/local
3.open ports 8080
/sbin/iptables -I INPUT -p tcp --dport 8080 -j ACCEPT
/etc/rc.d/init.d/iptables save
4.launch an close tomcat
in the bin directory: ./startup.sh
in the bin drecrory: ./shutdown.sh
linux_base_commond_two的更多相关文章
随机推荐
- Linux设置全局代理与yum代理
设置全局代理,方法如下: 修改 /etc/profile 文件,添加下面内容: http_proxy=http://username:password@yourproxy:8080/ ftp_prox ...
- 201521123002 《Java程序设计》第6周学习总结
1. 本周学习总结 1.1 面向对象学习暂告一段落,请使用思维导图,以封装.继承.多态为核心概念画一张思维导图,对面向对象思想进行一个总结. 注1:关键词与内容不求多,但概念之间的联系要清晰,内容覆盖 ...
- 学号:201521123116 《java程序设计》第五周学习总结
1. 本章学习总结 2. 书面作业 1.代码阅读:Child压缩包内源代码 1.1 com.parent包中Child.java文件能否编译通过?哪句会出现错误?试改正该错误.并分析输出结果. 不能编 ...
- 201521123065《java程序设计》第12周学习总结
1. 本周学习总结 1.1 以你喜欢的方式(思维导图或其他)归纳总结多流与文件相关内容. 1.流的划分:输入流:字节流(InputStream).字符流(reader): 输出流:字节流(Output ...
- Android Studio不更新到最新版使用Kotlin
第一步:安装Kotlin插件 打开Settings面板,找到Plugins选项,点击Browse repositories(浏览仓库),输入“Kotlin”查找,然后安装即可.安装完成之后需要重启An ...
- java基础知识2--String,StringBufffer,StringBuilder的区别
String,StringBufffer,StringBuilder的区别 1.可变不可变方面 String类中使用字符数组保存字符串 ,final 修饰当然是不可变的,用String来操作字符串的 ...
- Qt--自定义View
这是上一篇文章的续篇,关于自定义View. 多个View内部可以映射到同一个数据模型,也可以映射不同的数据结构:可以使用所有数据,也可以只使用部分数据.因为视图层与数据层的分离,操作相对比较灵活. 1 ...
- 树状数组初步_ZERO
原博客:树状数组 1 一维树状数组 1 什么是树状数组 树状数组是一个查询和修改复杂度都为log(n)的数据结构,假设数组A[1..n],那么查询A[1]+-+A[n]的时,间是log级 ...
- 九月 26, 2017 10:18:14 上午 com.sun.jersey.server.impl.application.RootResourceUriRules <init> 严重: The ResourceConfig instance does not contain any root resource classes.
Tomcat启动错误:九月 26, 2017 10:18:14 上午 com.sun.jersey.server.impl.application.RootResourceUriRules <i ...
- oracle 数据字典和动态性能视图
一.概念数据字典是oracle数据库中最重要的组成部分,它提供了数据库的一些系统信息.动态性能视图记载了例程启动后的相关信息. 二.数据字典1).数据字典记录了数据库的系统信息,它是只读表和视图的集合 ...