由买买提看人间百态

topics

全部话题 - 话题: conf
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)
h******m
发帖数: 10
1
来自主题: Java版 - Run Servlet with Tomcat

well, which web.xml should I do? There is one in /conf, and others somewhere
else.
I did make these changed in server.xml and web.xml under the conf,seems not
help...Shall I try these in the webadv/...?
Thanks.
c*****s
发帖数: 214
2
当然不是。任何一个webserver都不会有这么无聊的约束。
打开$TOMCAT_HOME/conf/server.xml,找 目录。那个root通常是默认应用。
或者启动tomcat时带-Dcatalina.base=<另一个目录>可以启动指定目录下的TOMCAT,那个
目录里只要有/conf/server.xml和webapps/就行了。
c*****s
发帖数: 214
3
来自主题: Java版 - 有没有人熟悉tomcat?急!
检查log文件和conf/server.xml文件
No Context configured 意思是conf/server.xml里没有定义你访问的Context。要么你没
定义,要么定义的因为什么错误没启动(检查log文件看什么错误),要么本来就没有,
你应该访问的是http://localhost:8080/myapp因为http://localhhost:8080在找path是
空的Context定义。

p***p
发帖数: 559
4
【 以下文字转载自 Linux 讨论区 】
发信人: pingp (小神经~当且仅当), 信区: Linux
标 题: Any IBM X60 or I845-850 chip user here? dual monitor question
发信站: BBS 未名空间站 (Wed Dec 6 12:35:25 2006)
I have tried lots of xorg.conf, but always got error as restart gnome. Can
you share me ur conf file. I have a extra TFT 20' running on 1600X1200
thanx a lot, p*****[email protected]
m*****k
发帖数: 731
5
来自主题: Java版 - hadoop quickstart 疑问
我在试http://hadoop.apache.org/common/docs/r0.20.2/quickstart.html
我用的是win7 和 cygwin,
Standalone Operation
By default, Hadoop is configured to run in a non-distributed mode, as a
single Java process. This is useful for debugging.
The following example copies the unpacked conf directory to use as input and
then finds and displays every match of the given regular expression. Output
is written to the given output directory.
$ mkdir input
$ cp conf/*.xml input
在这一步
$ bin/hadoop jar hadoop-*-examples.ja... 阅读全帖
m*****k
发帖数: 731
6
来自主题: Java版 - hadoop quickstart 疑问
我在试http://hadoop.apache.org/common/docs/r0.20.2/quickstart.html
我用的是win7 和 cygwin,
Standalone Operation
By default, Hadoop is configured to run in a non-distributed mode, as a
single Java process. This is useful for debugging.
The following example copies the unpacked conf directory to use as input and
then finds and displays every match of the given regular expression. Output
is written to the given output directory.
$ mkdir input
$ cp conf/*.xml input
在这一步
$ bin/hadoop jar hadoop-*-examples.ja... 阅读全帖
z**r
发帖数: 17771
7
以前没注意过这个问题,因为一直工作正常,今天启动后就不工作了,tcpdump了一下
网络是通的,就是dns有问题。一看/etc/resolv.conf,nameserver是10.0.2.3(
virtualbox缺省给的), 本机地址是10.0.2.15/24, default gateway是10.0.2.2,这
些貌似都没有问题。就是不明白dns 10.0.2.3是哪里来的。
把dns改成一个public的dns,就一切正常了。大家用virtualbox的,帮忙看看你们的/
etc/resolv.conf里nameserver是什么?谢谢
A*******s
发帖数: 708
8
来自主题: Linux版 - xrandr 双屏显示问题
我的xorg.conf是自动生成的,我只是手动加了virtual
除了主屏的问题意外,一旦我在xorg.conf里面加了virtual,待机以后醒来桌面就变成
text terminal和鼠标
我只能ctrl+alt+backspace重启X,但是正常的桌面会在重启的一瞬间闪出来

using
b****r
发帖数: 113
9
来自主题: Linux版 - nxserver 不能安装
试了
sudo nxserver --deluser nx
NX> 100 NXSERVER - Version 3.2.0-74-SVN OS (GPL, using backend: 3.3.0)
NX> 500 Error: The passdb function is not activated in node.conf.
Most probably your FreeNX setup will work out of the box without this
functionality and you've been misleaded by an old tutorial or old
documentation to do this step.
If however you really need this functionality, just set
ENABLE_PASSDB_AUTHENTICATION="1" in node.conf.
NX> 999 Bye
z**r
发帖数: 17771
10
remove /etc/fonts/conf.d/49-sansserif.conf, then restart firefox, Chinese
will work fine.
a*******e
发帖数: 3021
11
来自主题: Linux版 - mplayer-gui vo error
自从换了新显卡,mplayer-gui就给我vo error 和ao error.
重新装了系统还是老样子,奶奶的。题外话新系统nautilus还有bug。。
anyway,发现了如何解决vo error,因为mplayer console播放没问题。
办法就是console, gmplayer -vo x11,能播放文件,然后他会自动
生成个~/.mplayer/gui.conf就可以了。手动改这个gui.conf成vo=x11还不行。。。
N****w
发帖数: 21578
12
看到 1440x900 已经被识别拉,
不过
(--) VESA(0): Virtual size is 1280x1024 (pitch 1280)
你自己去 xorg.conf 里设成 1440x900 好了
不过这个 VESA driver 硬件加速估计不太行
去看 man xorg.conf
N****w
发帖数: 21578
13
you ADD the size in xorg.conf,
not "modes" line.
google xorg.conf doc
p*****a
发帖数: 1152
14
Arch里有makepkg.conf,但可能没有Gentoo那么灵活。
贴个例子:
#
# /etc/makepkg.conf
#
#########################################################################
# SOURCE ACQUISITION
#########################################################################
#
#-- The download utilities that makepkg should use to acquire sources
# Format: 'protocol::agent'
DLAGENTS=('ftp::/usr/bin/wget -c --passive-ftp -t 3 --waitretry=3 -O %o %u'
'http::/usr/bin/wget -c -t 3 --waitretry=3 -O %o %u'
'https::/usr/bi
a*******e
发帖数: 3021
15
来自主题: Linux版 - Fedora kernel tokeep question
google is ur friend, my friend. but I also learned sth from ur post.
anyway, it seems since FC7, they added an option in yum.conf.
man yum.conf,
installonly_limit Number of packages listed in installonlypkgs
to keep installed at the same time. Setting to 0 disables
this
feature. Default is ’0’. Note that this functionality used
to
be
in the "installonlyn" plugin, where this option was altered
via.
tokeep.
l*f
发帖数: 218
16
来自主题: Linux版 - Newbie question
我对linux不熟悉,想在Fedora里设置LD_LIBRARY_PATH,网上找到一个instruction,不
是很理解
1.) use < .bashrc > file in your home directory (instead of .bash_profile)
2.) add the following line to this file :
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ; export LD_LIBRARY_PATH
3.) also add this line to < /etc/ld.so.conf > file
4.)run /sbin/ldconfig after /etc/ld.so.conf changing
请问1.)里面.bashrc跟.bash_profile都是什么用的, 如何知道bash启动之后调用那个
设置
m*********g
发帖数: 273
17
来自主题: Linux版 - Newbie question
I think modif the .bashrc is enough for you.
If you are new to Linux, don't try to modify the config (system wide) uder /
etc or /sbin. Also you have to be root to do that. Ask you system
administrator for help if it is a company computer. If it is your personal
pc, play with it but please back up your data.
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ; export LD_LIBRARY_PATH
3.) also add this line to < /etc/ld.so.conf > file
4.)run /sbin/ldconfig after /etc/ld.so.conf changing
m********r
发帖数: 334
18
谢谢回复,这种办法可以mount,但不是我希望的方式,我也不知道为什么udev不执行
规则文件,udev.conf很简单,如下
# udev.conf
# The main config file for udev
#
# This file can be used to override some of udev's default values
# for where it looks for files, and where it places device nodes.
# udev_root - where in the filesystem to place the device nodes
udev_root="/dev"
# udev_db - The name and location of the udev database.
udev_db="/dev/.udevdb"
# udev_rules - The name and location of the udev rules file
udev_rules="/etc/udev/rules.d"
# udev_
c****n
发帖数: 21367
19
只改了xorg.conf就能这样... 拿光盘起来rescue,删掉xorg.conf就好了


d****g
发帖数: 1049
20
找了一个解决办法,可是似乎有毛病:
You must disable polling to remove the odd behavior, either on the fly via:
# sudo -i && echo N >/sys/module/drm_kms_helper/parameters/poll
or for a permanent solution.
# sudo -i
# echo "options drm_kms_helper poll=N">/etc/modprobe.d/local.conf
# reboot
(From: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/595764)
我把"options drm_kms_helper poll=N"放到/etc/modprobe.d/local.conf以后鼠标倒
是不卡了。但屏幕分辨率似乎受到了影响,字变得模糊了。而且重启系统竟然说要检查
硬盘。不知道什么原因。就把那句删了,当然现在又卡了:)
x**m
发帖数: 941
21
来自主题: Linux版 - 求助,linux下的smtp
我能想到有几个点需要检查:(以Redhat系为例)
1. 你的服务器的DNS是好的。(/etc/resolv.conf,/etc/nsswitch.conf)
2. 有一个外部的SMTP服务器,你的服务器能够访问这个服务器的TCP/25端口 (telnet
smtp.isp.com 25)
3. 你的服务器上的sendmail服务是开启,并且知道一个smart relay可以转发邮件。(/
etc/init.d/sendmail,/etc/mail/sendmail.mc)
s*******n
发帖数: 730
22
来自主题: Linux版 - Ubuntu 10.10无线网问题
802.11n+intel网卡吧
sudo mv /etc/modprobe.d/intel-5300-iwlagn-disable11n.conf /etc/modprobe.d/
intel-5300-iwlagn-disable11n.conf.bak
sudo rmmod -f iwlagn
sudo modprobe iwlagn
或者换成802.11g
s******c
发帖数: 1920
23
来自主题: Linux版 - 问个tmux的问题
为啥运行tmux 启动的时候不会自动去读~/.tmux.conf里的配置?
我需要手动的source-file ~/.tmux.conf一下才能让配置生效
l*******G
发帖数: 1191
24
来自主题: Linux版 - 问个tmux的问题
tmux.conf is good only when you are already in tmux ?
anyway, just put
#----tmux configuration---
source ~/.tmux.conf
#-------------------------
in the ~/.bashrc file if you use bash, and then re-login
d********t
发帖数: 837
25
来自主题: Linux版 - xbmc 在 fedora 14下面搞不定
rpmfusion里直接有包,装上以后启动报错:
params.c:OpenConfFile() - Unable to open configuration file
"/home/.smb/smb.conf":
No such file or directory
params.c:OpenConfFile() - Unable to open configuration file
"/etc/samba/smb.conf":
No such file or directory
Running DIL (3.6.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
/usr/bin/xbmc: line 133: 10159 Segmentation fault (core dumped)
"$LIBDIR/xbmc/xbmc.bin" $SAVED_ARGS
Crash report available at /home/xbmc_crashlog-... 阅读全帖
S*A
发帖数: 7142
26
来自主题: Linux版 - xbmc 在 fedora 14下面搞不定
$ xbmc
params.c:OpenConfFile() - Unable to open configuration file "/home/chrisl/.
smb/smb.conf":
No such file or directory
params.c:OpenConfFile() - Unable to open configuration file "/etc/samba/smb.
conf":
No such file or directory
sh: lsb_release: command not found
sh: lsb_release: command not found
Running DIL (3.6.0) Version
DtsDeviceOpen: Opening HW in mode 0
DtsDeviceOpen: Create File Failed
我用可以啊,从来不知到 xbmc, 就是 yum install xbmc.
然后就可以用了。那些 message 基本上是正常的。
yum install redhat-lsb ... 阅读全帖
d*****o
发帖数: 310
27
自己学习了下,解决还是挺简单
1,把另一个系统mount到目前系统。fdisk -l
2,ubuntu 11.04的grub下是grub.conf这个文件管理启动目录,但是不能直接修改,是
通过修改l另两个文件(grub.conf有说明)
S*A
发帖数: 7142
28
来自主题: Linux版 - 彻底转换到 xmonad+gnome 了
rc.conf 如果是一个配置文件的话,如果你删除或者 update package
的时候自动改 rc.conf 几乎就没有可能。用 rc.d 可以让每个包
自己修改不影响别人。
FC 用 /etc/sysconfig/* 那个也很好用。就是习惯不同。
S*A
发帖数: 7142
29
来自主题: Linux版 - Fedeora 16 dual boot (grub2)
如果不用 GPT & EFI 的话,我看不出来为什么要用 grub2.
如果用 EFI 的话,(Mac 必须用), 我的 Macbook 又不能在 grub2
上面安装。
我觉得 Grub2 对于 Grub 是个大倒退。系统超级复杂,把很简单的事情
复杂化。我在我的 Macbook 上面死活装不了 grub2,甚至 FC 16 直接
安装都不行,因为那个 GPT partition 和 Mac 原来那个有冲突。
重装了 n 次,最后装 FC15 再 yum dist upgrade 到 FC16。直接删掉
grub2 ( FC16 连装 grub1 都不允许)。
最后直接 extlinux 了事。还不太完美的是 installkernel script
不能正确 update extlinux.conf。重装 kernel 需要自己编辑 extlinux.conf。
我正在 hack new-kernel-package & grubby 来支持 extlinux。
BTW, grubby 更新 boot loader menu 的工具,是用 C 写的。
因为不同的 boot load... 阅读全帖
G*****h
发帖数: 33134
30
haha 加了个
/etc/fonts/conf.d/64-wqy-bitmap-song.conf
monospace 族里加了温泉医中文点阵字体
立马就生效了
现在中文终于爽了
英文还是该死的 AA 糊糊字体
怎么办呢?





serif

WenQuanYi Bitmap Song



sans-serif
... 阅读全帖
w*s
发帖数: 7227
31
【 以下文字转载自 Programming 讨论区 】
发信人: wds (净洗前尘,从头再来), 信区: Programming
标 题: segmentation fault as soon as entering 1 function in the arm processor board
发信站: BBS 未名空间站 (Sat Dec 15 22:20:01 2012, 美东)
Hi everyone,
i'm lost on this one, can someone give me some hints ?
1. downloaded latest stunnel package from web
2. build in the host linux and runs fine
3. build for arm target (am using the same settings from before,
my task is to upgrade to latest stunnel)
4. builds ok, when run in arm board, seg fau... 阅读全帖
f******y
发帖数: 2971
32
来自主题: Linux版 - 局域网内的通讯问题
我有两台ubuntu机器,通过一台router连接。它们互相识别时有点出乎意料,具体情况
是互相ping对方时,可以通过固定IP,也可以hostname.local,但是不能只用hostname。
ping hostname时会这样,并且没有反应。
john.smith@Testing:~$ ping UbuntuServer
PING DataServer.dlinkddns.com (192.168.1.2) 56(84) bytes of data.
另外, /etc/resolv.conf是这样的:
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(
8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.0.1
search dlinkddns.com
大家看有什么办法能直接ping hostname吗?
m*********0
发帖数: 554
33
来自主题: Linux版 - CUPS 共享打印机搞出问题了
今天在Debian下用CUPS设置了一个旧的打印机,然后准备在局域网里share给另外一台
Mint机器
按照Arch 的wiki搞了一下cupsd.conf,然后cups就再也不能启动了
重启,把cups-clinet和cups包卸掉了重装也不行,就因为那个cupsd.conf有问题
然后我一冲动把/etc/cups文件夹删掉了,然后就更杯具了,重装cups和cups-client都
不行
有大侠请教指教一下怎么搞么
n****1
发帖数: 1136
34
这个更猛
The resolv.conf file systemd-resolved generates has been
moved to /run/systemd/resolve/, if you have a symlink from
/etc/resolv.conf it might be necessary to correct it.
j********2
发帖数: 4438
35
来自主题: Linux版 - Google Chrome汉字乱码
刚好解决了这个问题,用下面的方法:
sudo rm -f /etc/fonts/conf.d/65-droid-sans-fonts.conf
sudo fc-cache -fv
然后重启下
m********r
发帖数: 334
36
这段程序读boa的配置文件boa.conf,找到端口号后改写新端口,例如
Port 80
# Listen: the Internet address to bind(2) to. If you leave it out,
# it takes the behavior before 0.93.17.2, which is to bind to all
# addresses (INADDR_ANY). You only get one "Listen" directive,
变成Port 8080
# Listen: the Internet address to bind(2) to. If you leave it out,
# it takes the behavior before 0.93.17.2, which is to bind to all
# addresses (INADDR_ANY). You only get one "Listen" directive,
现在发现每次第一次修改的时候这一行没问题,但是下面的注释的#号没有了,变成
n: the I... 阅读全帖
w*s
发帖数: 7227
37
Hi everyone,
i'm lost on this one, can someone give me some hints ?
1. downloaded latest stunnel package from web
2. build in the host linux and runs fine
3. build for arm target (am using the same settings from before,
my task is to upgrade to latest stunnel)
4. builds ok, when run in arm board, seg fault.
5. from gdb core,
[New LWP 867]
Cannot access memory at address 0x70797263
(gdb) bt
#0 parse_commandline (name=0xbefdce29 "/opt/ultra/config/stunnel.conf",
parameter=0xbefdce48 "-version") at... 阅读全帖
o******n
发帖数: 511
38
我还看了这个的,看来没仔细看。
你说的是这个吗:
#!/bin/bash
for file in /etc/*
do
if [ "${file}" == "/etc/resolv.conf" ]
then
countNameservers=$(grep -c nameserver /etc/resolv.conf)
echo "Total ${countNameservers} nameservers defined in ${file}"
break
fi
done
其实我可以跳开前面几万个文件,类似底下这个方法:
#!/bin/bash
FILES="$@"
for f in $FILES
do
# if .bak backup file exists, read next file
if [ -f ${f}.bak ]
then
echo "Skiping $f file..."
continue # read next file and s... 阅读全帖
l*******o
发帖数: 250
39
来自主题: Programming版 - vert.x就是一个小型的eai
not every time, but happened several times at least. Only got issues with
this site.
C:\dev\vert.x>gvim bin\vertx.bat
C:\dev\vert.x>vertx run Server.java
"C:\Java\jdk1.7.0_45/bin/java.exe" -Djava.util.logging.config.file="c:\
dev\vert.x\bin\..\conf\logging.properties" -Dvertx.home="c:\dev\
vert.x\bin\.." -Dvertx.clusterManagerFactory="org.vertx.java.spi.cluster.
impl.hazelcast.HazelcastClusterManagerFactory" -classpath ";c:\dev\
vert.x\bin\..\conf;c:\dev\vert.x\bin\..\lib\*" org.vertx.java.... 阅读全帖
K*********n
发帖数: 2852
40
Scala纯新手,写了点测试代码:
###### build.sbt #########
name := "Train NB"
version := "1.0"
scalaVersion := "2.10.4"
libraryDependencies ++= Seq(
"org.apache.spark" %% "spark-core" % "1.2.0",
"commons-io" % "commons-io" % "2.4",
"com.google.code.gson" % "gson" % "2.2.4",
"org.la4j" % "la4j" % "0.4.9"
)
javacOptions ++= Seq("-source", "1.7", "-target", "1.7")
####### scala code ##########
package app.mycompany
import org.apache.spark.SparkContext
import org.apache.spark.SparkContext._
import org.apa... 阅读全帖
h**********c
发帖数: 4120
41
If appache httpd find the httpd.conf or ssl.conf, read them.
Certificate may prevent MIM attack. Common sense.
首页 上页 1 2 3 4 5 6 7 8 9 10 下页 末页 (共10页)