我的networking上有VLAN问题。 我已经安装了VMware vSphere Hypervisor 5.5的服务器Dell Poweredge R210 II。 接下来,我使用Ubuntu Server 14.04创build了一个虚拟机。 networking规划是从ISP到Ubuntu服务器(第一个NIC)的连接,然后是作为到G25的中继端口的Cisco SG200-26P。 交换机的前七个端口被configuration为VLAN端口G1-vlan 10,G2-vlan 20 … G7-vlan 70,作为untagged访问模式。 Ubuntu服务器configuration: apt-get install vlan / etc / network /这样的接口(其余的VLAN看起来是一样的) auto eth1 iface eth1 inet static 地址192.168.1.2 networking掩码255.255.255.0 网关192.168.1.1 iface vlan10 inet静态 地址192.168.10.1 networking掩码255.255.255.0 networking192.168.1.0 广播192.168.10.55 vlan_raw_device eth1 启用IP转发:编辑/etc/sysctl.conf文件:我将net.ipv4.ip_forward从0更改为1 modprobe 8021q 启用/ proc / sys / net […]
我想完全删除或阻止访问我的网站中的特定页面。 更具体地说,我已经看到了这个漏洞“ Joomla COM_MEDIA Exploit ”: http : //all1gat0r.blogspot.gr/2013/08/joomla-commedia-exploit.html 从我看到的,有页面: /index.php?option=com_media&view=images&tmpl=component&fieldid=&e_name=jform_articletext&asset=com_content&author=&folder= 这个漏洞对我不起作用,但无论如何我想彻底删除上面的页面 。 我怎样才能做到这一点? Web服务器: Ubuntu 14.04 LTS ( 安装Mod Security2 ) 网站: Joomla 3.1.5
我正在尝试从我的DigitalOcean服务器( Ubuntu-14.04 64x )上运行的原始编译的Nginx服务器的源代码编译Nginx,但有一些额外的模块。 我可以安装一切顺利,但我无法启动它。 我确定ini是正确的,因为我将当前正在运行的Nginx服务器的原始源文件复制下来[尽pipe我看到Nginx现在在编译fron源文件时添加了ini。 下面是我正在执行的[漫长的过程] – 增加对不起,但我想为需要信息的人彻底。 因为我是Nginx的newB,所以我肯定我错过了一些东西,或者只是把它全错了。 如果你可以看看我已经做了什么,看看你是否需要改变任何东西,我将不胜感激。 日Thnx! 原始的Nginx服务器仍在运行: 我检查当前/正在运行的Nginxconfiguration,以便可以构build新的Nginx实例,但使用添加的模块: nginx -V # The out-put: configure arguments: –with-cc-opt='-g -O2 -fstack-protector –param=ssp-buffer-size=4 -Wformat -Werror=format-security -D_FORTIFY_SOURCE=2' –with-ld-opt='-Wl,-Bsymbolic-functions -Wl,-z,relro' –prefix=/usr/share/nginx –conf-path=/etc/nginx/nginx.conf –http-log-path=/var/log/nginx/access.log –error-log-path=/var/log/nginx/error.log –lock-path=/var/lock/nginx.lock –pid-path=/run/nginx.pid –http-client-body-temp-path=/var/lib/nginx/body –http-fastcgi-temp-path=/var/lib/nginx/fastcgi –http-proxy-temp-path=/var/lib/nginx/proxy –http-scgi-temp-path=/var/lib/nginx/scgi –http-uwsgi-temp-path=/var/lib/nginx/uwsgi –with-debug –with-pcre-jit –with-ipv6 –with-http_ssl_module –with-http_stub_status_module –with-http_realip_module –with-http_addition_module –with-http_dav_module –with-http_geoip_module –with-http_gzip_static_module –with-http_image_filter_module –with-http_spdy_module –with-http_sub_module –with-http_xslt_module […]
我的系统中有3个用户: USER1 用户2 用户3 我在ubuntu 14.04上安装了proftpd。 使用DefaultRoot指令,我可以监视特定目录中的用户,例如/ home /%u / test 但是,如果我需要为一个用户设置dir /srv/www/domain.com,例如:user1?
我想调整我的Linux VM的主分区。 我通过ESXi界面添加了空间 在GParted上启动并调整分区大小 但是,系统确实认识到磁盘增加的变化,但不会增加分区上的变化: 我查了一些教程,但他们似乎并不真正适用。 这里有一些输出: {root@tuc[antoine]}df -h Filesystem Size Used Avail Use% Mounted on /dev/mapper/tuc–vg-root 31G 28G 1.2G 97% / ==> 32GB is old size none 4.0K 0 4.0K 0% /sys/fs/cgroup udev 991M 4.0K 991M 1% /dev tmpfs 201M 532K 200M 1% /run none 5.0M 0 5.0M 0% /run/lock none 1001M 0 1001M […]
免责声明:我是新来的ldap,所以希望我没有做任何重大错误! 目的:集中用户凭证并限制客户端login到某些机器。 我通过使用以下内容在新鲜的Ubuntu 14.04服务器上安装了准系统openLDAP服务器。 实质上,安装LDAP并进行架构更改以启用用户的host属性: # Install ldap apt-get install -y slapd ldap-utils ldapscripts # Modify the schema so we can use the host attribute for users grep -P '^include.+?\.schema' /usr/share/slapd/slapd.conf > ./schema_convert.conf echo -e "include\t\t/etc/ldap/schema/ldapns.schema" >> ./schema_convert.conf # Convert the schema into LDIF mkdir -p ./ldif_output index=$(slapcat -f ./schema_convert.conf -F ./ldif_output -n 0 | […]
我有一个在Azure上运行的Ubuntu实例。 我已经使用它在过去的6个月左右,以升级我的新手Linuxpipe理技能。 昨天我正在configuration一个Capistrano部署到这个服务器,当我的SSH密钥突然停止工作。 在过去我已经看到Permission denied而试图ssh到框,我刚刚读我的私钥到关键代理,它再次工作。 我从来不知道为什么钥匙停止工作,但既然我可以解决它没有太多的麻烦,并不经常发生,我没有想太多。 不过,昨天我没有办法解决这个问题,从那以后,我一直在努力研究这个问题。 以下是我已经采取的步骤和我已经尝试的事情: 这是我平时运行的(直到昨天为止都工作了几个月): ssh azure-southerneer 我的〜/ .ssh / config中的相关条目: Host azure-southerneer Hostname southerneer.cloudapp.net User azureuser IdentityFile ~/.ssh/azure-wp-eric.key IdentitiesOnly yes ServerAliveInterval 300 StrictHostKeyChecking no 输出: Permission denied (publickey). 如果我运行它与-v标志这里是我得到: OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 OpenSSH_6.2p2, OSSLShim 0.9.8r 8 Dec 2011 debug1: Reading configuration data /Users/kirkham/.ssh/config debug1: /Users/kirkham/.ssh/config line 27: […]
我刚把数据库引擎更新到MariaDB(5.5.40-MariaDB-0ubuntu0.14.04.1 – (Ubuntu))。 其他一切(Apache2:80,:443,phpMyAdmin,Webmin等),但Dovecot正在工作。 我不太确定需要安装哪个软件包来replace使得Dovecot能够与MariaDB交谈的/ usr / lib / dovecot共享库。 Mysql曾经使用过libdriver_mysql.so,还有一些其他的。 任何人都可以build议? 编辑 我使用删除MySQL apt-get remove –purge mysql-server mysql-client mysql-common apt-get autoremove apt-get autoclean 这些命令也删除了PHPMYADMIN和MYSQLI。 所以当我安装MariaDB时,我包含了以下软件包: apt-get install mariadb-server mariadb-client libmariadbclient-dev libmariadbd-dev phpmyadmin 你可能不需要dev包,但我仍然安装它们。 为了让phpMyAdmin只在SSL上工作,我不得不重新configurationetc / phpmyadmin / apache.conf来包含http => https重写。
所以我build立了一个简单的脚本,在某个Web服务停止运行时发送电子邮件警报。 它有一个简单的stream程: test = $( curl [address] | grep [a certain string in response] | wc -l ) if [ $test -ne 1 ]; then echo "there has been an error" | mail -s "Error" -t "[my-mail-address]" fi 并在crontab中设置为每五分钟进行一次检查: */5 * * * * sh /path/to/script/ 它运行了好几天,但是大概在十分钟前,几乎同时收到了来自服务器的一百封电子邮件。 这似乎是不可能的,因为脚本中甚至没有任何循环。 系统日志: Jan 26 01:05:01 sv1 CRON[23310]: (munin) […]
我按照这个指南来安装一个机器设置,它似乎工作。 我得到了openstack-status屏幕,并且是全面的绿色。 现在我想从另一台机器访问10.0.3.12/horizon仪表板,因为我只有SSH到主机。 但它超时:( 所以我search了一下,试图build立一个桥梁,但无法得到那个工作如此放弃的方法。 然后我读了关于浮动IP地址的说法: 在关联IP地址并为该实例configuration安全组规则后,实例将在浮动IP地址处公开提供。 听起来不错! 所以我开火nova命令和'nova'不是一个已知的命令 …什么给? OpenStack使用新星 – 我认为…为什么没有安装新星呢? 我做错了吗? 好吧,我知道中子是安装的,因为openstack-status表明它正在检查中子的东西,并报告成功。 所以我发射neutron , “中子”不是一个已知的命令 。 !“#%@ 看来不pipe我怎么试,最后都是在沟里。 我需要帮助! 我该怎么办?