centos lamp notes

  1. cron and crontab are missing in docker image of ubuntu 16.04

No cron command in the mirror

  1. How to install php-redis extension using the official PHP Docker image approach?

php docker mirror mounted in extension redis

  1. How To Set Up a Basic Iptables Firewall on Centos 6

centos open port

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
  1. centOS how to force uninstall PHP and PHP Custom Installation

  2. ERROR: cannot verify dev.mysql.com’s certificate

wget on Windows gives 'ERROR: cannot verify x's certificate,'

  1. centos6 install LAMP

Under CentOS6.5 upgrade PHP7, MySQL5.7

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -Uvh remi-release-6.9-3.el6.remi.noarch.rpm
warning: remi-release-6.9-3.el6.remi.noarch.rpm: Header V4 DSA/SHA1 Signature, key ID 00f97f56: NOKEY
error: Failed dependencies:
    epel-release = 6 is needed by remi-release-6.9-3.el6.remi.noarch

yum install epel-release

root@localhost ~]# yum list php
Loaded plugins: fastestmirror, security
Loading mirror speeds from cached hostfile
Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again

Error handling when you put EPEL repository CentOS6.x

yum install php php-cli php-curl php-json php-pdo php-mysql php-gd php-bcmath php-xml php-mbstring php-mcrypt php-redis
[root@localhost ~]# php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
PHP Warning:  copy(): SSL operation failed with code 1. OpenSSL Error messages:
error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed in Command line code on line 1
PHP Warning:  copy(): Failed to enable crypto in Command line code on line 1
PHP Warning:  copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1
yum install php-crypto

ntp How do I update a CentOS server's time from an authoritative time server?

https://www.pool.ntp.org/zone/hk

[root@localhost backup]# wget http://curl.haxx.se/ca/cacert.pem
--2009-05-19 03:18:33--  http://curl.haxx.se/ca/cacert.pem
Resolving curl.haxx.se... 151.101.194.49, 151.101.2.49, 151.101.66.49, ...
Connecting to curl.haxx.se|151.101.194.49|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://curl.haxx.se/ca/cacert.pem [following]
--2009-05-19 03:18:33--  https://curl.haxx.se/ca/cacert.pem
Connecting to curl.haxx.se|151.101.194.49|:443... connected.
ERROR: cannot verify curl.haxx.se’s certificate, issued by “/C=BE/O=GlobalSign nv-sa/CN=GlobalSign CloudSSL CA - SHA256 - G3”:
  Issued certificate not yet valid.
To connect to curl.haxx.se insecurely, use ‘--no-check-certificate’.

certificate not yet validMay be the time (entered in the Terminal Server server datecommand to view the time server) does not

“Issued certificate not yet valid.” with wget?

lamp appears

SQLSTATE[HY000] [2002] Permission denied

centos redis server

Install and Configure Redis on CentOS 7

centos6 rabbitmq

CentOS install the new version relies RabbitMQ solve Erlang 19.3

rabbitmq-plugins list
rabbitmq-plugins enable rabbitmq_web_mqtt

rabbit mq plugins

centos uninstall php

Installed php7.3RC4, uninstall back php7.2 ~~

How to uninstall an older PHP version from centOS7

yum -y remove php*

Then reinstall php7.2

sudo yum install  php php-cli php-curl php-json php-pdo php-mysql php-gd php-bcmath php-xml php-mbstring php-mcrypt php-redis

Guess you like

Origin www.cnblogs.com/fsong/p/11260156.html