我最近开发了一些使用Flask的站点(在virtualenv中运行在Debian上),当我testing的时候我可以在一个端口上运行它,让我们来说一下post 5000 。 所以我运行这样的脚本: . env/bin/activate <- go into virtual environment python file.py <- run python script 我将会得到这个信息: Running on http://0.0.0.0:5000/ 所以这一切都很好,我可以访问我的网站在这个港口罚款。 但是…我的垃圾ISP总是在每天早晨凌晨1点左右重置一些东西。 我不知道这是什么,一切正常运行,但我总是打开任何SSH会话断开连接。 这使它运行,我所能做的就是调用: lsof -i 这将告诉我的过程,但如果我杀了它,然后重新运行它变得奇怪。 的: Running on http://0.0.0.0:5000 消息仍显示,但我无法连接到它了。 我试过改变端口号,似乎唯一的作品是在稍后或另一天再次尝试。 现在我假设我的服务器上的东西在这些时间之间重置,我想这也许是virtualenv会话超时,但我不知道如何手动做这个,有谁知道吗?
我们在这里有一台Debian服务器(vm),服务器在断电后崩溃。 我只能在维护模式下启动系统,整个文件系统设置为只读。 我可以通过维护模式运行fsck,但是我想在执行之前先备份一些文件。 问题:我无法访问networking,因为在维护模式下没有networking连接,出于某种原因,我尝试将USB闪存驱动器添加到计算机,但无法通过控制台find它。 问:如何在Debian上find/挂载一个USB驱动器? 我已经尝试从互联网上的几个资源,但没有任何工作。 有没有其他办法可以得到我的文件的备份? 由于文件系统设置为只读,因此无法启动联网。 任何帮助,将不胜感激。
当Xen以路由模式configuration时,由于脚本hotplugpath.sh丢失,重新启动xend失败。 ~ # /etc/init.d/xend restart Restarting Xen daemons: xend/etc/xen/scripts/network-route: line 20: /etc/xen/scripts/hotplugpath.sh: No such file or directory /etc/xen/scripts/network-route: line 28: /proc/sys/net/ipv4/conf/eth/proxy_arp: No such file or directory /etc/xen/scripts/network-route: line 20: /etc/xen/scripts/hotplugpath.sh: No such file or directory /etc/xen/scripts/network-route: line 28: /proc/sys/net/ipv4/conf/eth/proxy_arp: No such file or directory xend/etc/xen/scripts/network-route: line 20: /etc/xen/scripts/hotplugpath.sh: No such file or directory /etc/xen/scripts/network-route: line […]
我已经安装Debian / MIPS到Qemu虚拟机。 一切顺利netboot/initrd.gz 。 不幸的是,它现在不能启动,因为我没有安装任何引导装载程序(或Debian安装程序没有安装它,我不知道)。 在哪里可以得到Debian安装程序已经安装到VM本身的initrd.gz ? 没有它,Qemu不会启动虚拟机。
我使用aptitude install exim4 并使用dpkg-reconfigure exim4-config 这是我的/etc/exim4/update-exim4.conf.conf文件: dc_eximconfig_configtype='internet' dc_other_hostnames='midomain.com' dc_local_interfaces='127.0.0.1 ; ::1' dc_readhost='' dc_relay_domains='' dc_minimaldns='false' dc_relay_nets='' dc_smarthost='' CFILEMODE='644' dc_use_split_config='false' dc_hide_mailname='true' dc_mailname_in_oh='true' dc_localdelivery='maildir_home' 当我在shell中执行时: echo "This is a test." | mail -s Testing [email protected] echo "This is a test." | mail -s Testing [email protected] 它什么都不做。 在/var/log/exim4/mainlog我可以看到以下错误: 2012-08-04 13:05:30 1SxcAk-0001BT-61 <= root@ETC_MAILNAME U=root P=local S=494 2012-08-04 13:05:30 1SxcAk-0001BT-61 […]
我有一个运行openldap的Debian 6.0.5服务器。 它似乎是针对gnutls编译的。 我使用gnutls的certtool来生成一个自签名证书,我已经在一些debian客户端机器上使用它来对openldap服务器进行身份validation。 但是,当我尝试在CentOS 6客户端上执行相同的操作时,出现以下ldapsearch错误: ldap_initialize( <DEFAULT> ) ldap_start_tls: Can't contact LDAP server (-1) additional info: TLS error -8101:Certificate type not approved for application. ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1) 如果我在CentOS客户端上运行gnutls-cli-debug,我得到以下结果: gnutls-cli-debug -p 636 ldap.blahblah.com Resolving 'ldap.blahblah.com'… Connecting to '10.6.0.11:636'… Error in %INITIAL_SAFE_RENEGOTIATION Checking for Safe renegotiation support… 就这样 – 它死了。 有没有人能够在这种types的设置ldaps,gnutls链接的服务器,gnutls生成的证书,openssl链接的客户端? 谢谢!
我将/etc/apache2/envvars的APACHE_RUN_GROUP改为 APACHE_RUN_GROUP=web-content 因为我想让Apache运行www-data:web-content ,插入www-data:www-data 。 我讨厌单调的手动hack,如chown -R www-data:web-content 。 在#Debian中, c.*9同志build议在这里使用ACL,而其他同志H提出了一些传统的方法,而其他同志PPbuild议将www-data添加到组web-content (但是在这个例子中由于某些原因,Apache没有运行,尽pipe/etc/init.d/apache2 restart所以'ps –group web-content' output here )。 现在假设一个更通用的情况,不一定是Apache。 加载的问题 我怎样才能确保一个程序运行为www-data:web-content ? 我如何确保程序生成的所有文件和目录都是www-data:web-content而不是www-data:www-data ? 我如何确保像Apache这样的程序运行为www-data:web-content ?
系统:Debain Squeeze 问题:无法重新启动networking( /etc/init.d/networking restart )而没有错误。 我使用并编辑了来自我的提供者的示例configuration ,现在想要添加IPv6支持。 但是在添加v6之前,我想摆脱以下错误: # /etc/init.d/networking restart Running /etc/init.d/networking restart is deprecated because it may not enable again some interfaces … (warning). Reconfiguring network interfaces…SIOCADDRT: File exists Failed to bring up eth0. done. 有什么build议么? 更新 # ip rl xy132.64/26 via xy132.65 dev eth0 xy132.64/26 dev eth0 proto kernel scope link […]
我有以下问题: 当我的防火墙规则处于活动状态时,我无法运行etherpad。 我的防火墙: http : //pastebin.com/82APzKhi telnet localhost 3306给出连接超时 ps aux | grep mysql: root 15212 0.0 0.0 4112 712 ? S 13:54 0:00 /bin/sh /usr/bin/mysqld_safe mysql 15526 0.7 0.9 426056 75392 ? Sl 13:54 0:27 /usr/sbin/mysqld –basedir=/usr –datadir=/var/lib/mysql –plugin-dir=/usr/lib/mysql/plugin –user=mysql –pid-file=/var/run/mysqld/mysqld.pid –socket=/var/run/mysqld/mysqld.sock –port=3306 root 15527 0.0 0.0 5512 720 ? S 13:54 0:00 logger […]
我有一个1TB的NAS有一个1TB的USB外部硬连接 我准备好了USB磁盘上的文件系统并将其装上 我想100%同步我的数据从我的NAS到USB磁盘 – 但我希望它是增量式的,只有NAS作为“主” – 例如,如果一个文件更改在USB外部硬盘驱动器,我希望它忽略这个改变,因为它不是现场版本(不是我认为这些文件将改变在USB磁盘,但即时通讯偏执狂可能会被覆盖) 另外,如果一个文件被删除现场我想保留在USB磁盘上删除的文件 可以同步单向同步并为我达到上述目的吗? 如果是这样的话 unison sorce/ target/ 工作? 感谢Rob