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的更多相关文章
随机推荐
-
【.NET】Cookie操作类
public static class CookiesHelper { /// <summary> /// Cookies赋值 /// </summary> /// <p ...
-
iOS开发之集成百度地图踩过的那些坑(基于 Xcode7.0/iOS9.2)
本篇分4步讲述如何在项目中集成百度地图: 第一步:创建项目 第二步:利用 cocoaPod 导入百度地图的 SDK(pod 'BaiduMapKit' #百度地图SDK) 第三步:在 pch 文件中导 ...
-
学习C++的第二天
1.输入 十六进制 cin>>hex>>x>>dec>>y dec 是十进制 oct 是八进制 输出 十六进制 cout<<h ...
-
特效TD 的工作准则
特效 TD 的工作准则 作者:Hammer Chen / 转载自 http://hammerbchen.blogspot.com/2013/07/vfx-td-td.html 一直以来都想写这样的文章 ...
-
Linux内核——定时器和时间管理
定时器和时间管理 系统定时器是一种可编程硬件芯片.它能以固定频率产生中断.该中断就是所谓的定时器中断.它所相应的中断处理程序负责更新系统时间,还负责执行须要周期性执行的任务. 系统定时器和时钟中断处理 ...
-
.net 中HttpClient 携带cookie传输
CookieContainer cookieContainer = new CookieContainer(); Cookie cookie = new Cookie("username&q ...
-
关于mule中使用jdbc时报No Suitable Driver found错误的问题
错误大概信息: Exception in thread "main" org.mule.module.launcher.DeploymentStartException: SQLE ...
-
在vue-cli3 中import引入一个没有export default{}的js文件
如果这个js文夹,放在vue-cli3中搭建的项目中的,public文件夹下,通过 //.js可以省略不行 import '/public/xxx.js' 其实你在浏览器中看的时候,发现会报错误 : ...
-
BZOJ.4446.[SCOI2015]小凸玩密室(树形DP)
BZOJ LOJ 洛谷 (下面点亮一个灯泡就说成染色了,感觉染色比较顺口... 注意完全二叉树\(\neq\)满二叉树,点亮第一个灯泡\(\neq\)第一次点亮一号灯泡,根节点应该就是\(1\)... ...
-
C++找不出来的bug
1.在函数中给指针赋值时候要极其注意: 新生成的指针要么是new出来的,要么是全局的,要么是传参过来的... 就是要切记在函数局部生成一个新指针,这样的话,出了这个函数,局部的新指针所具体代表的值就被 ...