centos7

CentOS 7.0关闭默认防火墙启用iptables防火墙

孤人 提交于 2020-01-09 14:43:39
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 操作系统环境: CentOS Linux release 7.0.1406(Core) 64位 CentOS 7.0默认使用的是firewall作为防火墙,这里改为iptables防火墙步骤。 1、关闭firewall: systemctl stop firewalld.service #停止firewall systemctl disable firewalld.service #禁止firewall开机启动 firewall-cmd --state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running) 2、iptables防火墙(这里iptables已经安装,下面进行配置) vi/etc/sysconfig/iptables #编辑防火墙配置文件 # sampleconfiguration for iptables service # you can edit thismanually or use system-config-firewall # please do not askus to add additional ports/services to this default configuration *filter :INPUT ACCEPT [0:0]

CentOS7-Minimal模式下编译搭建 LAMP / LNMP环境

时光怂恿深爱的人放手 提交于 2020-01-08 13:52:32
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 编译安装的目的主要基于以下几点 特定版本的软件包安装 包的精简及参数调优 这里希望通过编译安装方式来实现对PHP运行环境的个性化定制,具体的会按名称缩写中的顺序来编译安装所需的各个组件 apache/nginx -> mysql -> php 编译过程中排错时, 可以从以下三个维度分析: 编译过程中的实时报错信息 相关程序的运行日志、访问日志、报错日志 查看 systemd 产生的系统日志,常用命令 journalctl -xn 基础依赖安装 这些都是在 lamp / lnmp 编译过程中报错提示 最低要求 必须依赖的包,在此预先准备好 sudo yum install gcc gcc-c++ cmake kernel-devel openssl-devel git ncurses-devel bison wget 关闭安全系统 - 避免各种服务被屏蔽 sudo service firewalld stop # 关闭防火墙(centos6.5下是iptables服务) sudo chkconfig firewalld off # 关闭防火墙的开机启动 sudo setenforce 0 # 关闭selinux服务 sudo sed -i 's|SELINUX=enforcing|SELINUX=disabled

Error: [Errno 71] Protocol error: pyvenv

谁说我不能喝 提交于 2020-01-07 08:33:08
问题 I am using Centos7 with vagrant and virtualbox on windows10. I am trying to create pyvenv virtual environment to develop python web apps with django. I have installed python 3.4. However, when I type pyvenv-3.4 name_of_environment , it gives back an error Error: [Errno 71] Protocol error: 'lib' -> '/vagrant/django_apps/app1/name_of_environment/lib64' What is wrong? 回答1: pyvenv-3.4 --without-pip name_of_environment worked looks like pip was not installed. thanks for the help. 来源: https:/

Error when installing mosquitto with websockets on centos 7

匆匆过客 提交于 2020-01-07 07:13:21
问题 I have followed the next steps: sudo yum groupinstall "Development Tools" sudo yum install wget mercurial cmake openssl-devel c-ares-devel libuuid-devel wget https://github.com/warmcat/libwebsockets/archive/v1.3-chrome37-firefox30.tar.gz tar zxvf v1.3-chrome37-firefox30.tar.gz cd libwebsockets-1.3-chrome37-firefox30 mkdir build; cd build; cmake .. -DLIB_SUFFIX=64 sudo make install To install mosquitto: hg clone https://bitbucket.org/oojah/mosquitto cd mosquitto hg pull && hg update 1.4 In

ejabberd denies generating token

人盡茶涼 提交于 2020-01-07 03:14:09
问题 I have read all questions and answers what I can find, but oauth still not working. this is config ejabberd.yml. port: 5280 module: ejabberd_http request_handlers: "/websocket": ejabberd_http_ws "/log": mod_log_http # OAuth support: "/oauth": ejabberd_oauth # ReST API: "/api": mod_http_api ## "/pub/archive": mod_http_fileserver web_admin: true http_bind: true ## register: true captcha: false commands_admin_access: configure commands: - add_commands: user oauth_expire: 3600 oauth_access: all

install php-xml on centos 7 [closed]

女生的网名这么多〃 提交于 2020-01-06 06:19:29
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . trying to install php-xml on centos7 (php 5.6) getting following error [root@server ~]# sudo yum install php-xml Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * atomic: www4.atomicorp.com * epel: epel.mirror.constant.com * remi-safe: remi.mirror.ate.info * webtatic: uk.repo.webtatic

install php-xml on centos 7 [closed]

廉价感情. 提交于 2020-01-06 06:19:26
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . trying to install php-xml on centos7 (php 5.6) getting following error [root@server ~]# sudo yum install php-xml Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * atomic: www4.atomicorp.com * epel: epel.mirror.constant.com * remi-safe: remi.mirror.ate.info * webtatic: uk.repo.webtatic

Can't reach nodejs on port 3000 from external on CentOS 7

江枫思渺然 提交于 2020-01-06 04:21:14
问题 I cant reach my node serve on port 3000. When I change port to 80 everything works well. nodesjs: var express = require('express'); var app = express(); app.get('/', function (req, res) { res.send('Hello World!'); }); app.listen(3000, '0.0.0.0', function () { console.log('server listening on port 3000!'); }); firewall: firewall-cmd --zone=public --list-ports 3000/tcp iptables: Chain IN_public_allow (1 references) target prot opt source destination ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:80

LD_BIND_NOW Can Make the Executable run Slower?

孤街浪徒 提交于 2020-01-05 09:13:27
问题 I am curious if an executable is poorly written that it has much dead code, referring to 1000s of functions externally (i.e. .so files) but only 100s of those functions are actually called during runtime, will LD_BIND_NOW=1 be worse than LD_BIND_NOW not set? Because the Procedure Linkage Table will contain 900 useless function addresses? Worse in a sense of memory footprint and performance (as I don't know whether the lookup is O(n)). I am trying to see whether setting LD_BIND_NOW to 1 will

HRegionServer shows “error telling master we are up”. Showing socket exception: Invalid argument

有些话、适合烂在心里 提交于 2020-01-05 08:37:26
问题 Iam trying to create a hbase cluster in 3 centos machines. Hadoop(v - 2.8.0) is up and running on top I configured HBase(v - 1.2.5).Hbase start up is fine it started HMaster and Region servers but still it shows the follwing error in region servers and in HMaster log it shows no region servers are checked in. 2017-04-20 19:30:33,950 WARN [regionserver/localhost/127.0.0.1:16020] regionserver.HRegionServer: error telling master we are up com.google.protobuf.ServiceException: java.net