1、利用网站直接登陆
2、用xshell,putty等远程登录,应该不用配置
ubuntu软件 apt-get
http://www.cnblogs.com/linjiqin/p/3627628.html
http://my.oschina.net/BearCatYN/blog/496957?p={{page}}
ubuntu目录结构
http://jingyan.baidu.com/article/215817f7e573b71edb142373.html
mysql初始的password
http://www.linuxidc.com/Linux/2012-10/72374.htm
http://www.bkjia.com/sjkqy/835601.html
mysql创建用户并授权
http://www.jb51.net/article/31850.htm
mysql查看所有用户
select * from mysql.user
授权,当然是root给其它帐号授权
grant all privileges on *.* to 'arvid'@'%' identified by '******'
http://www.jb51.net/article/31850.htm
创建数据库并默认排序
CREATE DATABASE IF NOT EXISTS yourdbname DEFAULT CHARSET utf8 COLLATE utf8_general_ci;
mysql远程连接
http://blog.chinaunix.net/uid-24500107-id-2602917.html
mysql 启动、停止和重启
/etc/init.d/mysql start
/etc/init.d/mysql stop
/etc/init.d/mysql restart
mysql bind-address用法,不能绑定多个ip,只允许多个ip访问则用防火墙
http://www.cnblogs.com/xiazh/archive/2010/08/12/1797966.html
http://jpuyy.com/2013/07/mysql-bind-multi-address.html
cannot connect mysqld.sock问题
http://blog.csdn.net/xiaobai1593/article/details/7034837
http://bbs.chinaunix.net/thread-1191175-1-1.html
http://bbs.chinaunix.net/thread-3755709-2-1.html
查看mysql状态
service mysql status
service mysql stop
service mysql start
http://www.educity.cn/wenda/403518.html
授权与取消授权
http://blog.csdn.net/andy_yf/article/details/7487519
grant all on *.* to dba@localhost;
tomcat应用目录
http://blog.csdn.net/sells2012/article/details/18314341
http://blog.csdn.net/nairuohe/article/details/6175243
http://www.cnblogs.com/donj/articles/1622488.html
ssh安装
http://www.cnblogs.com/hongten/archive/2012/07/15/Linux_ssh_secure_shell.html
ubuntu下jdk安装
http://www.linuxidc.com/Linux/2014-11/109216.htm
http://blog.csdn.net/viekie/article/details/7903203
http://www.linuxidc.com/Linux/2015-01/112030.htm
http://blog.csdn.net/ggz631047367/article/details/42366687/
查看环境变量
env
update-alternatives --help优先级
http://blog.csdn.net/alan00000/article/details/44653085
命令关联
http://www.hpboys.com/593.html
ubuntu下tomcat启动与停止bin
/usr/share/tomcat7/bin# ./startup.sh
ubuntu tomcat目录
Default Installation Paths
Logs: /var/log/tomcat6
Binaries and Libs: /usr/share/tomcat6 (although libs are symlinked to /usr/share/java and some jars inside the bin directory get symlinked to /usr/share/java as well)
System start/stop/status script: /etc/init.d/tomcat6.
CATALINA_HOME: /usr/share/tomcat6
CATALINA_BASE: /var/lib/tomcat6
The default webapps directory location is under /var/lib/tomcat6/
Configuration files are under /etc/tomcat6/
I haven't given it a try yet but I prefer storing java options inside a setenv.sh script but the /etc/init.d/tomcat6 doesn't have any reference to setenv.sh like /usr/share/tomcat6/bin/catalina.sh does, so it will be interesting to see whether enabling jmx via setenv.sh will work or if I'll need to modify /etc/init.d/tomcat6.
看tomcat启动用的jdk
ps -ef |grep tomcat
http://www.cnblogs.com/lioillioil/archive/2011/10/08/2202169.html
http://www.linuxhospital.com/read/unsupported-major.minor-version-52.0.html
http://www.linuxdiyf.com/linux/19186.html
http://blog.sina.com.cn/s/blog_64ecfc2f0102uxu6.html
java.lang.UnsupportedClassVersionError: PR/Sort : Unsupported major.minor version 52.0这个错误是由于高版本的java project使用了低版本的来运行。
设置了还要重启,坑啊坑,包含mysql连接器,还有这个tomcat的jdk指定,重启才生效,我草。不是说linux不用重启吗,我再也不相信了,坑啊
之前
root@***:/usr/share/tomcat7/bin# ps -ef |grep tomcat
tomcat7 1116 1 0 09:32 ? 00:00:11 /usr/lib/jvm/default-java/bin/java -Djava.util.logging.config.file=/var/libtomcat7/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start
root 1815 1492 0 10:17 pts/0 00:00:00 grep --color=auto tomcat
之后
root@****:~# ps -ef |grep tomcat
tomcat7 1131 1 2 10:21 ? 00:00:06 /usr/lib/jvm/jdk1.8.0_91/jre/bin/java -Djava.util.logging.config.file=/var/lib/tomcat7/conf/logging.properties -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.awt.headless=true -Xmx128m -XX:+UseConcMarkSweepGC -Djava.endorsed.dirs=/usr/share/tomcat7/endorsed -classpath /usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar -Dcatalina.base=/var/lib/tomcat7 -Dcatalina.home=/usr/share/tomcat7 -Djava.io.tmpdir=/tmp/tomcat7-tomcat7-tmp org.apache.catalina.startup.Bootstrap start
root 1406 1392 0 10:26 pts/0 00:00:00 grep --color=auto tomcat