亚洲av成人无遮挡网站在线观看,少妇性bbb搡bbb爽爽爽,亚洲av日韩精品久久久久久,兔费看少妇性l交大片免费,无码少妇一区二区三区

  免費(fèi)注冊(cè) 查看新帖 |

Chinaunix

  平臺(tái) 論壇 博客 文庫
最近訪問板塊 發(fā)新帖
樓主: zhangyan@tq.cn
打印 上一主題 下一主題

更改了.bash_profile導(dǎo)致普通用戶的tomcat起不來[已解決] [復(fù)制鏈接]

論壇徽章:
0
31 [報(bào)告]
發(fā)表于 2006-12-14 15:16 |只看該作者
你改過CLASSPATH的內(nèi)容嗎?
應(yīng)該是這里有問題

另外:
你的PATH也有問題吧,連/usr/bin都沒有,很多程序會(huì)運(yùn)行不了的。

[ 本帖最后由 ivanleung 于 2006-12-14 15:35 編輯 ]

論壇徽章:
0
32 [報(bào)告]
發(fā)表于 2006-12-15 10:51 |只看該作者
非常感謝大家對(duì)我的幫助,我按照briangao (Brian)的指導(dǎo),重新寫了.bash_profile:返回的現(xiàn)象是這樣的:

  1.  ".bash_profile" [dos] 23L, 1329C written                                 
[root@www work]# wc  -l  .bash_profile  
23 .bash_profile

  2.  Last login: Fri Dec 15 09:04:19 2006 from 61.51.121.160
-bash: /home/work/.bash_profile: line 24: syntax error: unexpected end of file
-bash-3.00$

  3.  按照lizisor   的提示到root下起了一下,
   
[root@www bin]# ./startup.sh
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program

這些現(xiàn)象顯示,問題并沒有得到改善.  
  這里還請(qǐng)幫助我的朋友們看一下本貼的一樓的問題,和導(dǎo)致問題出現(xiàn)的原因 .真心感謝了

現(xiàn)在我的work下的cat .bash_profile是這樣的:
-bash-3.00$ cat .bash_profile
# Get the aliases and functions
if [ -f ~/.bashrc ]; then
        . ~/.bashrc
fi

# User specific environment and startup programs

JAVA_HOME=/usr/java/j2sdk1.4.1_02

JAVA_OPTS="-server -Xmx256m -Xms128m"
CATALINA_OPTS="-Xms128m -Xmx512m"

#PATH=/usr/java/jdk1.5.0_06/binATH
PATH=.:JAVA_HOME/binATH

CLASSPATH=.:/usr/java/j2sdk1.4.1_02/bin:/usr/java/j2sdk1.4.1_02/lib:/home/work/21ct:/home/work/21ct/lib/mssqlserver.jar:/home/work/21ct/lib/chart/jfreechart-1.0.0-rc1.jar:/home/work/21ct/lib/chart/gnujaxp.jar:/home/work/21ct/lib/chart/jcommon-1.0.0-rc1.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/mm.mysql-2.0.4-bin.jar:/home/work/21ct/lib/chart/junit.jar:/home/work/21ct/lib/servlet.jar:/home/work/21ct/lib/chart/servlet.jar:/home/work/21ct/lib/msbase.jar:/home/work/21ct/lib/msutil.jar:/home/work/jtom/bin/bootstrap.jar:/usr/java/j2sdk1.4.1_02/lib/tools.jar:/home/work/21ct/lib/jdom.jar:/home/work/21ct/lib/jaxp.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/mail.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/mysql-connector-java-3.1.12-bin.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/classes12.jar:/home/work/jtom/webapps/ROOT/WEB-INF/lib/activation.jar:/home/work/jtom/webapps/ROOT/WEB-INF/classes

export PATH
export JAVA_HOME
export JAVA_OPTS
export CATALINA_OPTS
unset USERNAME
export CLASSPATH
-bash-3.00$

[ 本帖最后由 zhangyan@tq.cn 于 2006-12-15 10:54 編輯 ]

論壇徽章:
0
33 [報(bào)告]
發(fā)表于 2006-12-15 11:43 |只看該作者
The smiley faces messed up my post. I emailed you a text attachment. Cut and paste it into your .bash_profile and see what happens.   

論壇徽章:
0
34 [報(bào)告]
發(fā)表于 2006-12-15 11:52 |只看該作者
I think we are chasing a ghost. The problem may not be the .bash_profile itself even it contains error. I pasted the same text posted here into my .bash_profile and there was no complaint. So I believe it is still the language setting somewhere that doesn't like some of the chars in the profile.

論壇徽章:
0
35 [報(bào)告]
發(fā)表于 2006-12-15 11:59 |只看該作者
你好,我已經(jīng)將你給我的文檔替換到當(dāng)前的.bash_profile文件中,出現(xiàn)以下現(xiàn)象:
1.  
[root@www work]# wc -l .bash_profile
26 .bash_profile
2.
Last login: Fri Dec 15 10:47:02 2006 from 61.51.121.160
-bash: /home/work/.bash_profile: line 27: syntax error: unexpected end of file
-bash-3.00$
3.
試圖啟動(dòng)tomcat時(shí)
[root@www bin]# ./startup.sh
The JAVA_HOME environment variable is not defined
This environment variable is needed to run this program

論壇徽章:
0
36 [報(bào)告]
發(fā)表于 2006-12-15 12:09 |只看該作者
我只是在root下加了一句話:  LANG=C; export LANG
然后將/etc/il8n中的所有的環(huán)境變量的值為zh的改為en,
我并沒有在work的.bash_profil中做任何的修改,  

但是,所有的問題出現(xiàn)在我的修改操作之后,偏偏報(bào)的錯(cuò)誤提示發(fā)生在
被我修改的.bash_profile文中.

論壇徽章:
0
37 [報(bào)告]
發(fā)表于 2006-12-15 12:32 |只看該作者
Try this:

In /etc/profile add LANG=C;export LANG

and then log out and log in

Did you select multiple languages during the installation or you just selected Chinese?
If you did install multiple languages, then you can use LANG variable and /etc/sysconfig/i18n file to switch between languages. Otherwise, you'll have problems even you get shell to work

論壇徽章:
0
38 [報(bào)告]
發(fā)表于 2006-12-15 13:33 |只看該作者
  1. PATH=.:JAVA_HOME/binATH
復(fù)制代碼

Should be

  1. PATH=.:JAVA_HOME/bin:PATH
復(fù)制代碼

論壇徽章:
0
39 [報(bào)告]
發(fā)表于 2006-12-15 14:18 |只看該作者
原帖由 wongtsing 于 2006-12-15 13:33 發(fā)表
  1. PATH=.:JAVA_HOME/binATH
復(fù)制代碼

Should be

  1. PATH=.:JAVA_HOME/bin:PATH
復(fù)制代碼

  
PATH=.:JAVA_HOME/binATH   是
PATH=.:JAVA_HOME/bin$PATH

論壇徽章:
0
40 [報(bào)告]
發(fā)表于 2006-12-15 14:25 |只看該作者
  1. PATH=.:JAVA_HOME/binATH   是
  2. PATH=.:JAVA_HOME/bin$PATH
復(fù)制代碼

Both settings are incorrect. Should be
  1. PATH=.:$JAVA_HOME/bin:$PATH
復(fù)制代碼

However, as I mentioned before, it doesn't seems to be a profile issue. Did you try
  1. setting LANG=C;export LANG
復(fù)制代碼

in /etc/profile ?
您需要登錄后才可以回帖 登錄 | 注冊(cè)

本版積分規(guī)則 發(fā)表回復(fù)

  

北京盛拓優(yōu)訊信息技術(shù)有限公司. 版權(quán)所有 京ICP備16024965號(hào)-6 北京市公安局海淀分局網(wǎng)監(jiān)中心備案編號(hào):11010802020122 niuxiaotong@pcpop.com 17352615567
未成年舉報(bào)專區(qū)
中國互聯(lián)網(wǎng)協(xié)會(huì)會(huì)員  聯(lián)系我們:huangweiwei@itpub.net
感謝所有關(guān)心和支持過ChinaUnix的朋友們 轉(zhuǎn)載本站內(nèi)容請(qǐng)注明原作者名及出處

清除 Cookies - ChinaUnix - Archiver - WAP - TOP