提问三步曲: 提问先看教程/FAQ索引(wdcp,wdcp_v3,一键包)及搜索,会让你更快解决问题
1 提供详细,如系统版本,wdcp版本,软件版本等及错误的详细信息,贴上论坛或截图发论坛
2 做过哪些操作或改动设置等
温馨提示:信息不详,很可能会没人理你!论坛有教程说明的,也可能没人理!因为,你懂的
回复 1# 精品七匹狼
装完重启服务器,提示
这是为什么呢,我只是在profile内加入帖子中的代码,怎么把前边的影响了呢?
- # /etc/profile
- # System wide environment and startup programs, for login setup
- # Functions and aliases go in /etc/bashrc
- pathmunge () {
- if ! echo $PATH | /bin/egrep -q "(^|:)$1($|:)" ; then
- if [ "$2" = "after" ] ; then
- PATH=$PATH:$1
- else
- PATH=$1:$PATH
- fi
- fi
- }
- # ksh workaround
- if [ -z "$EUID" -a -x /usr/bin/id ]; then
- EUID=`id -u`
- UID=`id -ru`
- fi
- # Path manipulation
- if [ "$EUID" = "0" ]; then
- pathmunge /sbin
- pathmunge /usr/sbin
- pathmunge /usr/local/sbin
- fi
- # No core files by default
- ulimit -S -c 0 > /dev/null 2>&1
- if [ -x /usr/bin/id ]; then
- USER="`id -un`"
- LOGNAME=$USER
- MAIL="/var/spool/mail/$USER"
- fi
- HOSTNAME=`/bin/hostname`
- HISTSIZE=1000
- if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
- INPUTRC=/etc/inputrc
- fi
- export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC
- for i in /etc/profile.d/*.sh ; do
- if [ -r "$i" ]; then
- if [ "$PS1" ]; then
- . $i
- else
- . $i >/dev/null 2>&1
- fi
- fi
- done
- unset i
- unset pathmunge
- export LD_LIBRARY_PATH=:/usr/local/lib:/usr/local/ImageMagic.6.4/lib
- export DYLD_LIBRARY_PATH=:/usr/local/lib:/usr/local/ImageMagic.6.4/lib
- export CLASSPATH=$CLASSPATH:/usr/local/lib
复制代码 |