我在Tomcat 7的conf/Catalina/localhost中有以下configuration文件: <Context docBase="webapps/solr.war" debug="0" crossContext="true" > <Environment name="solr/home" type="java.lang.String" value="/opt/solr/home" override="true" /> <Environment name="data/dir" type="java.lang.String" value="/var/lib/solr" override="true" /> </Context> 在那里我想分开我的solr.home从data.dir 。 我已经testing了上面的configuration文件,但似乎没有工作。 是否有可能使用这种XMLconfiguration文件? 我已经检查了GitHub ,有一些configuration文件,他们在那里,但我不能让它工作。
我刚刚在我的Ubuntu 14服务器上安装了vsftp。 我已经使用sudo apt-get install命令安装了vsftp。 然后重新启动FTP服务器,但它拒绝所有连接这个错误500 OOPS: prctl PR_SET_SECCOMP failed请看看这里。 aysael@srv:~$ sudo ftp ftp> open 127.0.0.1 Connected to 127.0.0.1. 500 OOPS: prctl PR_SET_SECCOMP failed 这是我的configuration文件/etc/vsftpd.conf seccomp_sandbox=no listen=YES # Allow anonymous FTP? (Disabled by default) anonymous_enable=NO # # Uncomment this to allow local users to log in. local_enable=YES # # Uncomment this to enable any form […]
术语 我有一台运行在云中的服务器(我将其称为S1 ),但这是行为不当的。 我也有另一个服务器( S2 )运行在同一个云networking中,通过一个单独的networking( eth1 )连接到S1 。 服务器S1通过eth1连接到该内部networking,并通过eth0直接连接到Web。 S1正在运行Debian Jessie,通过更改/etc/apt/sources.list从一个干净的Debian Wheezy升级。 S2完美的运行Debian Wheezy。 与升级之前的S1相同的清洁Debian Wheezy。 情况 我可以通过networking外部的SSH连接到S1 通过接口eth0 。 我可以通过SSH从另一台服务器连接到S1 ( S2 ) 通过接口eth1 。 我可以从S1连接到另一台服务器( S2 ) 通过接口eth1 。 我不能从S1连接到外部世界 不通过eth0 不通过eth1 我不能SSH到其他服务器; 我不能平8.8.8.8 (而S2 可以 ); 我无法parsing主机(使用/etc/resolv.conf 8.8.8.8 ) 问题和尝试 为什么我不能连接到外部世界,我还没有最奇怪的想法。 iptables的 $ iptables -L Chain INPUT (policy ACCEPT) target prot […]
有没有一种方法可以configurationnginx / php,以便用特定的用户创build文件。 例如,当一个drupal / wordpress站点上传一个文件时,用户被分配为:john:www-data nginx.conf确实有一个用户,但据我所知,这只会改变用户在系统上使用nginx。
我想我的服务器与debian 8.1不使用CPU缩放,但始终运行在尽可能高的频率。 我已经安装了cpufrequtils $ dpkg -l | grep cpufreq ii cpufrequtils 008-1 amd64 … ii libcpufreq0 008-1 amd64 … 我把州长设定为performance $ cat /etc/default/cpufrequtils ENABLE="true" GOVERNOR="performance" MAX_SPEED="0" MIN_SPEED="0" 并调用/etc/init.d/cpurequtils restart 当我用cpufreq-info列出我的cpu信息时,我得到这样的结果: analyzing CPU 2: driver: intel_pstate CPUs which run at the same hardware frequency: 2 CPUs which need to have their frequency coordinated by software: 2 […]
我有一个邮件服务器运行在Debian 7.8configuration后缀2.9.6。 我的限制是这些: smtpd_sender_restrictions = reject_sender_login_mismatch, reject_unknown_sender_domain, reject_non_fqdn_sender, reject_unlisted_sender, permit_sasl_authenticated, reject_unauth_destination, permit_mynetworks #smtpd_helo_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_non_fqdn_helo_hostname, reject_invalid_helo_hostname, check_helo_access pcre:/etc/postfix/helo_access.pcre smtpd_client_restrictions = permit_sasl_authenticated, permit_mynetworks smtpd_recipient_restrictions = permit_sasl_authenticated, reject_unauth_destination 问题是别名电子邮件可以发送邮件给内部用户没有authentication 示例(所有请求都是在客户端进行的,而不是从本地主机进行的): [email protected] -> [email protected] –> Mail sent [email protected] -> [email protected] –> Mail sent [email protected] -> [email protected] –> Mail sent [email protected] -> [email protected] –> Mail sent [email protected] […]
当我去www.example.fr时,我得到正确的DocumentRoot( /var/www/example/web ),但是当我尝试去example.fr时 ,它给了我默认的DocumentRoot( /var/www/ )。 我已经尝试了很多东西,但没有成功。 /etc/hosts : 51.254.122.31 example.fr /etc/apache2/sites-enabled/example.fr.conf : <VirtualHost *:80> ServerAdmin [email protected] ServerName example.fr ServerAlias www.example.fr DocumentRoot /var/www/example/web/ DirectoryIndex app.php <Directory /> Options FollowSymLinks AllowOverride None </Directory> <Directory /var/www/> Options Indexes FollowSymLinks MultiViews AllowOverride None Order allow,deny allow from all </Directory> ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/ <Directory "/usr/lib/cgi-bin"> AllowOverride None Options +ExecCGI […]
当我运行: mount -a 作为我的virtualbox机器中的root用户,我将获得挂载的samba共享,所以我在/ etc / fstab中的设置正在工作: //192.168.0.99/download /vagrant/Downloads cifs credentials=/root/.smbcredentials,auto 0 0 但是为什么我的virtualbox机器启动时这个共享不能自动挂载? 我使用vagrant在无头模式下运行virtualbox。 目前我需要运行这个序列: vagrant up vagrant ssh sudo su mount -a 虽然这应该足够了: vagrant up 我是debianpipe理新手。 是否有fstab / mount问题的日志文件,可以在启动后查看? 它可能是一个超时或启动依赖性问题? 如何debugging最好?
我有问题,我不能达到3306端口(MySQL),即使我在iptables设置它。 我该如何解决这个问题? root@vps191532:# iptables-save # Generated by iptables-save v1.4.21 on Thu Oct 22 20:42:38 2015 *filter :INPUT ACCEPT [695:36753] :FORWARD ACCEPT [0:0] :OUTPUT ACCEPT [469:37083] -A INPUT -p tcp -m tcp –dport 3306 -m state –state NEW,ESTABLISHED -j ACCEPT -A OUTPUT -p tcp -m tcp –sport 3306 -m state –state ESTABLISHED -j ACCEPT COMMIT # […]
我从Debian 8.2“Jessie” ( Stable )服务器上运行的testing资源库中获得了15.09版本的ejabberd 。 由于从稳定从ejabberd升级日志logging到/var/log/ejabberd/ejabberd.log似乎中断。 即使将日志loglevel设置为5 (debugging),用户活动也不会被logging。 这是我的/etc/ejabberd/ejabberd.yml : hosts: – "somehost.tld" language: "en" loglevel: 4 max_fsm_queue: 1000 auth_method: odbc odbc_database: "ejabberd" odbc_keepalive_interval: 3600 odbc_password: "xxxxxxx" odbc_port: 3306 odbc_server: "127.0.0.1" odbc_type: mysql odbc_username: "ejabberdusr" registration_timeout: 600 captcha_cmd: "/usr/lib/x86_64-linux-gnu/ejabberd/priv/bin/captcha.sh" captcha_host: "http://somehost.tld:5280" captcha_limit: 5 define_macro: 'TLS_CIPHERS': "ECDH:DH:!CAMELLIA128:!3DES:!MD5:!RC4:!aNULL:!NULL:!EXPORT:!LOW:!MEDIUM" include_config_file: "/etc/ejabberd/conf/access.yml": [] "/etc/ejabberd/conf/acl.yml": [] listen: – port: […]