2013年9月4日星期三

We love to share --- linux deploy web projects , from problems tosolve problems

Next just learning linux, the first time today will deploy to linux next web project !


1, the project reached a war package ( with the eclipse, the project Right -> Export -> select war file)
2, the tomcat ( with winSCP course, you can also use secureCRT, with securCRT need to establish sftp ( ie upload files ) , use the put tomcat command ) test to the corresponding directory ilunx
3, then the project's war package into tomcat webapps directory
4, start tomcat ( command :. / startup.sh (linux start tomcat是. sh file instead of a. bat file ) )

encounter the following issues:
run . / startup.sh is incorrect
-bash:. / startup.sh: Permission denied
Cause: No runs . sh permissions
solution : chmod 777 *. sh
Note : Linux chmod +755 and chmod +777 each What does it mean ?
755 on behalf of users of the file has read, write and execute permissions , the same group has performed and read other people 's rights , without written permission , permissions and other users with the same group of staff privileges .
777 representatives , user, group, others, both read and write , and executable permissions.
obtain permission before running . / startup.sh command is given:
This file is needed to run this program
Cause: The file requires a runtime environment ( ie configuration jdk environment variable )
solve : JAVA_HOME = / usr/java/jdk1.6.0_25 / ( Of course, this directory according to their own jdk installation directory )
and then run . / startup.sh Tip:
Using CATALINA_BASE: / usr/local/sarft/apache/apache-tomcat-6.0.29
Using CATALINA_HOME: / usr/local/sarft/apache/apache-tomcat-6.0.29
Using CATALINA_TMPDIR: / usr/local/sarft/apache/apache-tomcat-6.0.29/temp
Using JRE_HOME: / usr/java/jdk1.6.0_25 /
Using CLASSPATH: / usr/local/sarft/apache/apache-tomcat-6.0.29/bin/bootstrap.jar
If prompted above information indicates that tomcat started successfully !
you're done, run the project, normally running from !



PS: This should belong to very early , but for pressing , it was the first time , from the discovery of the problem , to solve the problem might be to some . So special to share about the next !
------ Solution ---------------------------------------- ----
studied .
------ Solution ---------------------------------------- ----
Thank you, learned
------ Solution --------------------------- -----------------
good thing
------ Solution ------------------ --------------------------
very good ! Thank you for sharing ......
------ Solution ------------------------------------ --------

------ Solution ---------------------------------------- ----
not good, not bad. More and more people want to share their experiences. No matter how simple or difficult, someone can always learn something . Always give people inspiration
------ Solution ----------------------------------- ---------

------ Solution --------------------------------------- -----
learning ! !
------ Solution ---------------------------------------- ----
Thank you, learned
------ Solution ------------------------- -------------------
regularly jacking
------ Solution --------------- -----------------------------
strong crowd
------ Solution ------ --------------------------------------
Thank you to share !
learn first !
------ Solution ---------------------------------------- ----
well studied
------ Solution ---------------------------- ----------------
thanks for sharing , very good !
------ Solution ---------------------------------------- ----
landlord said Yes, the top one !
http://xy2.netease.com/images/default/sigline.gif
Guangzhou game http://www.yy1999.com | 3D forest dance http://www.yl1999.com | Guangzhou game http://www.gzyldz.com | game manufacturers http://www.ddzdz.com | Arcade http://www.ty158158.com | entertainment machine http://www.gzyxi.net | fishing up http://www.gzyxi.com | connection machines http://www.gzyxj.net | star Honghui | http://www.twtydz.com | simulator http://www.wwh168.com | Arcade http://www.39231789.com | cooperative game site http://baidu.gzyxj.net | cooperative game http://baidu.gzyxi.com | Haiyangzhixing http://www.ty168168.com | Panyu games http://www.j521.com | Arcade http://www.mnyxj.com | Guangzhou game http://www.ylyxj.com | Arcade http://www.gs28.com | electronic games http://www.020339.com | Guangzhou game http://www.020dm.com | Panyu games http://www.nakedmile.net | Guangzhou game http://www.gn114.com | Guangzhou game http://www.cf2002.com | Yunnan game http://www.sx2009.com |

------ Solution ------------------------------------ --------
learning ...... Thank you, share experiences , Mark ing ..................
---- - Solution --------------------------------------------
linux tips when a command is not clear the entire word , or path name is too long a one fight too much trouble , press the tab key will be surprises
------ Solution --- -----------------------------------------
roof !
------ Solution ---------------------------------------- ----

Haha do not say I've spent a good long time linux later learned
------ Solution -------- ------------------------------------


Fortunately, when the brother had just watched Bird Brother linux private kitchens , know this little trick
------ Solution ----------------- ---------------------------
I still do not understand it . . It will not be difficult . .
------ Solution ---------------------------------------- ----
755 and 777 what does this mean in fact converted into binary , corresponding to the current user , the same group of users , permissions for all users

-rwxrwxrwx assumption -100,100,100 , that the current user has read access , the same group and other users are having read permissions.

do not know me to say it did not
------ Solution ------------------------------ --------------
thanks for sharing
------ Solution --------------------- -----------------------
very bad mistake ah
------ Solution ------- -------------------------------------
good good
----- - Solution --------------------------------------------
very Well , the top !!!!!
------ Solution ------------------------------ --------------
Oh, interesting !
------ Solution ---------------------------------------- ----
Thank you to share !
------ Solution ------------------------------ --------------
learned
------ Solution --------------------- -----------------------
learning ...... thanks ......
------ Solution - ------------------------------------------
although not in linux written procedures , but still jacked up !
------ Solution ---------------------------------------- ----
the first time in the forum , thank
------ Solution ------------------------- -------------------
may need to practice practice job. . .
------ Solution ---------------------------------------- ----
amount of , well, you know the landlord to install Tomcat on Windows, first deployed JDK, why not first under Linux installation is good ?
------ Solution ---------------------------------------- ----
good, the future may encounter !
------ Solution ---------------------------------------- ----
passing ~ way to learn !
------ Solution ---------------------------------------- ----
learn !
------ Solution ------------------------------ --------------
thanks for sharing , very good !
------ Solution ---------------------------------------- ----
using chmod u + x *. sh

------ Solution ------------------------------------ --------
learning .
------ For reference only ------------------------- --------------
good good
------ For reference only ------------------- --------------------
learn not clear the entire word , or path name is too long a one fight too much trouble , press the tab key will be < br> ------ For reference only ---------------------------------------
good [color = # 00FF00] [/ color]
------ For reference only -------- -------------------------------
learn
------ For reference only - -------------------------------------
did not understand , but the support ! !
------ For reference only -------------------------------------- -
did not understand , but the support ! !
------ For reference only -------------------------------------- -
well studied
------ For reference only ------------------------- --------------
you this start will lead to problems if the current shell exits or in the shell accidentally interrupted by press ctrl + c , the server was terminated

recommendations or background to start the job , and you need to redirect the output to a log file

reference to this

nohup ./startup.sh >start_log.log 2>>&1 &


------ For reference only ----------------------------------- ----
upstairs is right, the main floor, drawing attention
------ For reference only --------------------- ------------------
Thank you to share ! ! !
------ For reference only -------------------------------------- -
nutrition stickers. . Absorbed
------ For reference only ------------------------------------ ---
  This reply was moderator deleted at 2011-09-01 10:18:21

------ For reference only ---------------------------------- -----
learning ...... Thank you, share experiences , Mark ing ..................

learning ...... Thank you sharing experiences , Mark ing ..................
------ For reference only ------------ ---------------------------
my top . . . .
------ For reference only -------------------------------------- -
↖ (^ ω ^) ↗
------ For reference only --------------------------- ------------
wow , test down ~
------ For reference only ------------------ ---------------------
I remember when a deployment project is to go directly to the svn on a cop , and then through the configuration file to the specified deployed on tomcat then start . Ran from the
------ For reference only ---------------------------------- -----
this . . .
------ For reference only -------------------------------------- -
good good !!
------ For reference only ------------------------------ ---------
linux long time no use estimates have forgotten those commands I used to use when finished just use fedora12 hey ...... three days without practicing rusty ah
------ For reference only --------------------------------- ------
  This reply was moderator deleted at 2012-02-03 09:57:36

------ For reference only ---------------------------------- -----
good
------ For reference only ------------ ---------------------------
good good , learning , and more to the point of this post so nice
- ---- For reference only ---------------------------------------
< div class = "deleted_message">   This reply was moderator deleted at 2012-06-14 08:26:35

------ For reference only ---------------------------------- -----
good good , learning , and more to the point of this post more than good
------ For reference only ------ ---------------------------------
soon entered the company , and the company 's system is a linux system . . Cry, no contact , headache. . . . . .
------ For reference only -------------------------------------- -
  This reply was moderator deleted at 2012-06-27 16:12:30

------ For reference only ---------------------------------- -----
command very good to learn Russian
------ For reference only ------------------------- --------------
taught the
------ For reference only ------------------ ---------------------
good, timely ah
------ For reference only --------------------- ------------------
good. . . . .
------ For reference only -------------------------------------- -

what the landlord is very modest . . .


------ For reference only ---------------------------------- -----


"> start_log.log 2 >> & 1 &" This is what is used , long time no contact forgotten.


------ For reference only ---------------------------------- -----
learn some of the . . . . .
------ For reference only -------------------------------------- -
MARK
------ For reference only ---------------------------------------
http://www.zhihu .com/collection/25688834
http://www.zhihu.com/collection/25689221
http://www.zhihu.com/collection/25689348
http://www.zhihu.com/collection/25689598
http://www.zhihu.com/collection/25690001
http://www.zhihu.com/collection/25690077
http://www.zhihu.com/collection/25690449
http://www.zhihu.com/collection/25690856
http://www.zhihu.com/collection/25691686
http://www.zhihu.com/collection/25691876
http://www.zhihu.com/collection/25693131
http://www.zhihu.com/collection/25693564
http://www.zhihu.com/collection/25695390
http://www.zhihu.com/collection/25695844
http://www.zhihu.com/collection/25696478
http://www.zhihu.com/collection/25700237
http://www.zhihu.com/collection/25702221
http://www.zhihu.com/collection/25704052
http://www.zhihu.com/collection/25703634
http://www.zhihu.com/collection/25704482
http://www.zhihu.com/collection/25706178
http://www.zhihu.com/collection/25706604
http://www.zhihu.com/collection/25706997
http://www.zhihu.com/collection/25707217
http://www.zhihu.com/collection/25707845
http://www.zhihu.com/collection/25707991
http://www.zhihu.com/collection/25709812
http://www.zhihu.com/collection/25710542
http://www.zhihu.com/collection/25710946
http://www.zhihu.com/collection/25713349
http://t.163.com/event/info/eventId/-6479914896372377003
http://t.163.com/event/info/eventId/-781572477722908948
http://t.163.com/event/info/eventId/-4587111341592533137
http://t.163.com/event/info/eventId/8373848704274338480
http://t.163.com/event/info/eventId/38865111487932635
http://t.163.com/event/info/eventId/-2443336777954901715
http://t.163.com/event/info/eventId/-3502829757242605243
http://t.163.com/event/info/eventId/-9213584288996296183
http://t.163.com/event/info/eventId/8687750445692197428
http://t.163.com/event/info/eventId/-6815968861463945085
http://t.163.com/event/info/eventId/-8505825778245379577
http://t.163.com/event/info/eventId/4867552343133181114
http://t.163.com/event/info/eventId/-7901859657916275250
http://t.163.com/event/info/eventId/-8873486007146660513
http://t.163.com/event/info/eventId/-9111860017838140804
http://t.163.com/event/info/eventId/7297580922839764296
http://t.163.com/event/info/eventId/5627015871746793293
http://t.163.com/event/info/eventId/-9062625621724755766
http://t.163.com/event/info/eventId/-663743034314099955
http://t.163.com/event/info/eventId/7526108238938299979
http://t.163.com/event/info/eventId/5283815361303267063
http://t.163.com/event/info/eventId/3705290406595465543
http://t.163.com/event/info/eventId/-7546320367178632515
http://t.163.com/event/info/eventId/1136199489756699312
http://t.163.com/event/info/eventId/-5100936282418291846
http://t.163.com/event/info/eventId/2301155191543735189
http://t.163.com/event/info/eventId/-6546226573506753403
http://t.163.com/event/info/eventId/1191875020145352652
http://t.163.com/event/info/eventId/2344425666852069115
http://t.163.com/event/info/eventId/-5431822185920132483
http://t.163.com/event/info/eventId/4038960964610722849
http://t.163.com/event/info/eventId/2486387441956640135
http://photo.163.com/q/7366730
http://photo.163.com/q/7366745
http://photo.163.com/q/7366755
http://photo.163.com/q/7366779
http://photo.163.com/q/7366785
http://photo.163.com/q/7366796
http://photo.163.com/q/7366806
http://photo.163.com/q/7366824
http://photo.163.com/q/7366829
http://photo.163.com/q/7366837
http://photo.163.com/q/7367408
http://photo.163.com/q/7367396
http://photo.163.com/q/7367419
http://photo.163.com/q/7367433
http://photo.163.com/q/7367438
http://photo.163.com/q/7367448
http://photo.163.com/q/7367454
http://photo.163.com/q/7367466
http://photo.163.com/q/7367485
http://photo.163.com/q/7367493
http://photo.163.com/q/7370032
http://photo.163.com/q/7370098
http://photo.163.com/q/7370138
http://photo.163.com/q/7370155
http://photo.163.com/q/7370234
http://photo.163.com/q/7370249
http://photo.163.com/q/7370257
http://photo.163.com/q/7370266
http://photo.163.com/q/7370322
http://photo.163.com/q/7370340
http://photo.163.com/q/7367678
http://photo.163.com/q/7367673
http://photo.163.com/q/7367686
http://photo.163.com/q/7367734
http://photo.163.com/q/7367752
http://photo.163.com/q/7367764
http://photo.163.com/q/7367790
http://photo.163.com/q/7367809
http://www.56.com/p85/v_MTI1Njk5NDUw.html
http://www.56.com/p19/v_MTI1Njk5NTYw.html
http://www.56.com/p69/v_MTI1Njk5Njk4.html
http://www.56.com/p80/v_MTI1Njk5Nzk3.html
http://www.56.com/p97/v_MTI1Njk5OTAy.html
http://www.56.com/p82/v_MTI1Njk5OTc1.html
http://www.56.com/p51/v_MTI1NzAwMDMy.html
http://www.56.com/p29/v_MTI1NzAwMDk4.html
http://www.56.com/p23/v_MTI1NzAwMTgw.html
http://www.56.com/p13/v_MTI1NzAwNTIy.html
http://www.56.com/p36/v_MTI1NzAxODY1.html
http://www.56.com/p78/v_MTI1NzAyMjU5.html
http://www.56.com/p75/v_MTI1NzAyMzQ0.html
http://www.56.com/p65/v_MTI1NzAyNjg2.html
http://www.56.com/p63/v_MTI1NzAyODYw.html
http://www.56.com/p76/v_MTI1NzAyOTYx.html
http://www.56.com/p45/v_MTI1NzAzMDE4.html
http://www.56.com/p18/v_MTI1NzAzMDc5.html
http://www.56.com/p70/v_MTI1NzAzMTMx.html
http://www.zhongsou.net/news/22007129.html
http://www.zhongsou.net/news/22007123.html
http://www.zhongsou.net/news/22007066.html
http://www.zhongsou.net/news/22007046.html
http://www.zhongsou.net/news/22006939.html
http://www.zhongsou.net/news/22006924.html
http://www.zhongsou.net/news/22006895.html
http://www.zhongsou.net/news/22006880.html
http://www.zhongsou.net/news/22006869.html
http://www.zhongsou.net/news/22006856.html
http://nvxing.ycwb.com/jiankang/194646.html
http://nvxing.ycwb.com/jiankang/194627.html
http://nvxing.ycwb.com/jiankang/194614.html
http://nvxing.ycwb.com/jiankang/194595.html
http://nvxing.ycwb.com/jiankang/194568.html
http://www.qingkai.com/jk/Html/?31982.html
http://www.qingkai.com/jk/Html/?31978.html
http://www.qingkai.com/jk/Html/?31974.html
http://www.qingkai.com/jk/Html/?31965.html
http://www.qingkai.com/jk/Html/?31951.html

没有评论:

发表评论