当前位置: 技术问答>linux和unix
linux下发布tomcat
来源: 互联网 发布时间:2017-05-28
本文导语: [root@levo local]# ls bin etc games include lib lib64 libexec sbin share src tomcat [root@levo local]# mkdir tomcat7 [root@levo local]# ls bin etc games include lib lib64 libexec sbin share src tomcat tomcat7 [root@...
[root@levo local]# ls
bin etc games include lib lib64 libexec sbin share src tomcat
[root@levo local]# mkdir tomcat7
[root@levo local]# ls
bin etc games include lib lib64 libexec sbin share src tomcat tomcat7
[root@levo local]# cd /
[root@levo /]# mv apache-tomcat-7.0.28 /usr/local/tomcat7
[root@levo /]# cd usr
[root@levo usr]# ls
bin etc games include java kerberos lib lib64 libexec local sbin share src tmp X11R6
[root@levo usr]# cd local
[root@levo local]# ls
bin etc games include lib lib64 libexec sbin share src tomcat tomcat7
[root@levo local]# cd tomcat7
[root@levo tomcat7]# ls
apache-tomcat-7.0.28
[root@levo tomcat7]# cd /
[root@levo /]# chmod +x /usr/local/tomcat7
[root@levo /]# vi /etc/profile
[root@levo /]# source /etc/profile
-bash: export: `=': not a valid identifier
-bash: export: `/usr/java/jdk1.7.0_67': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/usr/java/jdk1.7.0///lib/*.*': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.7.0///bin:/usr/java/jdk1.7.0/jre/bin:/root/bin:/usr/java/jdk1.7.0///bin': not a valid identifier
bin etc games include lib lib64 libexec sbin share src tomcat
[root@levo local]# mkdir tomcat7
[root@levo local]# ls
bin etc games include lib lib64 libexec sbin share src tomcat tomcat7
[root@levo local]# cd /
[root@levo /]# mv apache-tomcat-7.0.28 /usr/local/tomcat7
[root@levo /]# cd usr
[root@levo usr]# ls
bin etc games include java kerberos lib lib64 libexec local sbin share src tmp X11R6
[root@levo usr]# cd local
[root@levo local]# ls
bin etc games include lib lib64 libexec sbin share src tomcat tomcat7
[root@levo local]# cd tomcat7
[root@levo tomcat7]# ls
apache-tomcat-7.0.28
[root@levo tomcat7]# cd /
[root@levo /]# chmod +x /usr/local/tomcat7
[root@levo /]# vi /etc/profile
[root@levo /]# source /etc/profile
-bash: export: `=': not a valid identifier
-bash: export: `/usr/java/jdk1.7.0_67': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/usr/java/jdk1.7.0///lib/*.*': not a valid identifier
-bash: export: `=': not a valid identifier
-bash: export: `/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/java/jdk1.7.0///bin:/usr/java/jdk1.7.0/jre/bin:/root/bin:/usr/java/jdk1.7.0///bin': not a valid identifier
|
把等号左右两边的空格全部删掉