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的更多相关文章
随机推荐
- 入门-什么是webshell?
webshell是什么? 顾名思义,"web" - 显然需要服务器开放web服务,"shell" - 取得对服务器某种程度上操作权限. webshell常常被称 ...
- 【★】EIGRP终极解析!
EIGRP的思维导图 如图,我想采用一种全新的"框架式"教学法,或者叫"盖楼",旨在利用抽象的外部接口,分类分层地介绍各个机制之间的关系.其实任何学习到最后都 ...
- 201521123107 《Java程序设计》第3周学习总结
第3周作业-面向对象基本概念 1.本周学习总结 2.书面作业 1.代码阅读 public class Test1 { private int i = 1;//这行不能修改 private static ...
- 201521123019 《Java程序设计》第7周学习总结
1. 本章学习总结 2. 书面作业 Q1.ArrayList代码分析 1.1解释ArrayList的contains源代码 源代码如下: public boolean contains(Object ...
- 201521123007《Java程序设计》第1周学习总结
1. 本周学习总结 了解了JAVA语言的发展历史及特点,还有JDK.JRE.JVM三者之间的关系,安装并设置JAVA开发平台,使用Notepad++和Eclipse编辑器编写JAVA程序并运行,学会使 ...
- JAVA课程设计-----加减法测试博客
1.团队成员介绍(一个人做的) 谢季努:网络1513 201521123079 2.项目git地址 3.项目git提交截图 4.项目运行截图 输入答案后点击确认就会出现本次的得分 如果觉得成绩不理想点 ...
- FTP下载时连接正常获取不到数据
今天项目中要下载快钱的对账单,快钱对账单文件的FTP服务器是Unix系统,connectServer方法中已连接成功,reply code:220. 但是问题是download方法中的ftpClien ...
- Jquery总结图
读完锋利Jquery第二版书,对其进行整理做出的思维导图:
- IIS部署新网站
Windows Server使用IIS 6.0配置ASP动态Web网站 http://jingyan.baidu.com/article/c1a3101ee43ae9de656debb4.html h ...
- JVM菜鸟进阶高手之路九(解惑)
转载请注明原创出处,谢谢! 在第八系列最后有些疑惑的地方,后来还是在我坚持不懈不断打扰笨神,阿飞,ak大神等,终于解决了该问题.第八系列地址:http://www.jianshu.com/p/7f7c ...