Articles of centos7

我可以在moodle上添加jk_module来使用apache负载均衡

基本上我想检查,如果我可以使用Apache的load_balancer。 我不是专家。 我正在使用centos7 [root@lb ~]# rpm -qa | grep http httpd-devel-2.4.6-45.el7.centos.4.x86_64 httpd-tools-2.4.6-45.el7.centos.4.x86_64 httpd-2.4.6-45.el7.centos.4.x86_64 httpd-manual-2.4.6-45.el7.centos.4.noarch 我想添加一个工作人员,只是做一个redirect…但我需要添加de jk。 我的想法: ServerName moodle ServerAlias moodle.mydomain RedirectMatch ^/$ http://moodletest.mydomain JkMount /declare it on worker/* hn <Location /> Order deny,allow Allow from 10.0.0.0/8 Allow from all </Location> ErrorLog /var/log/httpd/error.log〜 可能吗? 问候,Marcelo.-

TCP源端口增加2,即使curl / wget也是如此

当使用curl和wget时,如果没有手动设置源端口(如curl中的–local-port),则源TCP端口将始终为偶数,并将递增2而不是1。 EG:在tcpdump中,当我build立连接时,我看到使用的源端口45080,然后下一个连接将使用45082,而不是45801.使用本地端口我可以强制它使用奇数端口,并确认tcpdump成功使用。 这是在networkingtesting床上引起我的问​​题,我不能在我的生活中找出什么是控制隐式的TCP端口select。 我可以改变范围,但我不能改变“增量”。 使用centos7和“3.10.0-514.el7.x86_64”内核。 在tcpdump中,我看到了使用wget和curl的相同行为,这导致我相信这不是一个curl特定的问题,而是正在用于select端口的机制。 另外,如果我看到使用端口45080curl,例如,我知道下一个端口将使用45082.如果我强制50000的本地端口,然后再curl没有 – 本地端口,它将是45082,就像一个单独的计数器递增它,不受任何“最后”使用的端口是什么影响。 或者,如果做同样的事情,而不是强制端口50000,而不是强制端口50000,我强迫它使用45082,它的端口,它可以挑选,然后我再次使用curl,而不强迫本地端口,它会select45083 ,那么如果再次select45084,那么45086 … 如果我将范围限制到奇数个端口,唯一的方法是自然地select一个奇数。 是否有一个系统调用,或者某种内核操作来拾取源端口,有没有办法改变它? 谢谢!

httpd返回“SSLCertificateFile:file'/var/iwww/certs/msdfw/c.pem'不存在或为空”

所以最近,我不得不重置我的服务器,因为一些问题和东西。 而现在,我一直在试图重新设置它,而这只是对我而言没有帮助。 我已经成功安装了httpd ,它可以与我的网站一起工作。 但是当我尝试添加一个SSL证书时,CentOS敢于骗我,它不存在。 这里是journalctl -xe的输出。 Sep 26 17:00:11 localhost systemd[1]: Starting The Apache HTTP Server… — Subject: Unit httpd.service has begun start-up — Defined-By: systemd — Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel — — Unit httpd.service has begun starting up. Sep 26 17:00:11 localhost httpd[5579]: AH00526: Syntax error on line 15 of /etc/httpd/enabled/msdfw.conf: Sep 26 17:00:11 localhost […]

什么是php-cgi56,如何阻止发送电子邮件?

在2天内,我的服务器(vps)运行速度非常慢。我使用htop监视工具监视服务器。 当我查看我的命令和服务时,我知道一些名为“php-cgi56”的服务获取我所有的cpu使用情况和内存。 这是屏幕截图: http://s9.picofile.com/file/8307687218/shot.PNG 这个服务得到了我所有的stream量,我怎样才能阻止它? 谢谢。

如何通过nftables创build透明/内联/桥接防火墙?

我坚持configurationnftables。 表桥filter{链式input{typesfilter钩input优先-200; 策略接受;}链式转发{typesfilter钩优先级-200; 政策下降; ip protocol icmp counter accept; }链式输出{typesfilter钩子输出优先级200; 政策接受;} 我有一些问题。 规则ip协议icmp计数器接受; 不起作用。 计数器显示1分钟左右,ping不能正常工作。 我做错了什么?

CentOS 7 PAM定义pam_pwquality的参数

需要在新的CentOS 7安装中修改pam_pwquality的“retry”属性。 我希望这可以通过修改/etc/security/pwquality.conf文件并在其末尾附加retry = x参数来完成,但是,当尝试一个testing密码时,我收到一条错误消息该重试是一个无效的参数。 下一步通常是修改/etc/pam.d/system-auth-ac文件,但最重要的是,有一行表示该文件是自动生成的。 长话短说…我应该把这个更新的参数/改变这个参数? 每个在线教程都指向了system-auth,但是这并不准确,因为在运行authconfig时会重新生成该文件,这会消除我的任何更改。 有没有持续的地方把这个东西?

ldap_add:操作错误(1)其他信息:00002020:操作错误../source4/dsdb/samdb/ldb_modules/password_hash.c:2816

ldapadd在LDIF文件中的大多数条目上抛出“操作错误(1)”。 我已经select了一个具体的例子,并尝试像userPassword和userAccountControl属性无济于事。 脚本需要在Samba和Active Directory之间互操作,这就是为什么我不使用“samba-tool user create” 这是LDIF dn: CN=Irene.Toth,OU=acme_ou,DC=acme,DC=dev changetype: add objectClass: top objectClass: person objectClass: organizationalPerson objectClass: user cn: Irene.Toth sn: Toth c: DE l: Bremerhaven st: Bremen postalCode: 27574 title: Representative telephoneNumber: +49-471-372727 givenName: Irene distinguishedName: CN=Irene.Toth,OU=acme_ou,DC=acme,DC=dev instanceType: 4 whenChanged: 20170426202003.0Z whenCreated: 20170426202003.0Z displayName: Irene Toth uSNChanged: 114938 uSNCreated: 114936 department: Sales company: […]

如何在Centos 7.4上禁用Selinux

我不想禁用Selinux,但是我遇到了问题。 我正在使用FFMPEG(位于/ var / www / tester / ffmpeg并由apache拥有) [root@betaX tester]# ls -Z /var/www/html/tester/ffmpeg/ -rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 ffmpeg -rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 ffmpeg-10bit -rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 ffprobe -rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 ffserver drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 manpages drwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 model -rwxr-xr-x. apache apache unconfined_u:object_r:httpd_sys_rw_content_t:s0 qt-faststart 但每次我尝试运行ffmpeg {ffmpeg-cmd} -i {input} -vcodec libx264 […]

journald – 行必须以关键字或文件名错误开头

我已经像这样configuration了我的日志: [Journal] Storage=volatile Compress=no RateLimitInterval= 0 RateLimitBurst= 100000 MaxRetentionSec=5s #Storage=auto #Compress=yes #Seal=yes 我有这个错误 error: journald.conf:14 lines must begin with a keyword or a filename(possibly in double quotes) error: journald.conf:15 unknown option 'Storage' — ignoring line error: journald.conf:16 unknown option 'Compress' — ignoring line error: journald.conf:17 unknown option 'RateLimitInterval' — ignoring line error: journald.conf:18 unknown option […]

除非我重新启动服务器,否则大约1天后我无法访问我的VPS(Centos7)

我有一个安装了Webmin和Virtualmin的CentOS 7 VPS。 我有这个服务器上的几个域以及邮件服务器(Postfix,Dovecot)。 有时我无法访问它(从webmin使用IP地址或SSH),直到我从我的提供商面板重新启动机器。 我怎样才能发现问题? 我必须看什么日志? 这里输出“grep -i”杀死进程“/ var / log / messages” Oct 2 13:08:32 server kernel: Killed process 2840 (mysqld) total-vm:1641792kB, anon-rss:20564kB, file-rss:0kB Oct 3 04:24:09 server kernel: Killed process 2874 (mysqld) total-vm:1637124kB, anon-rss:11628kB, file-rss:0kB Oct 3 05:16:05 server kernel: Killed process 26933 (sh) total-vm:11636kB, anon-rss:4kB, file-rss:140kB Oct 3 05:16:05 server kernel: […]