微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

centos lamp笔记

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

在鏡像中沒有 cron 命令

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

PHP的docker鏡像中安裝 redis擴展

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

centos 开启端口

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPT
iptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
  1. centOS怎样强制卸载PHP以及自定义安装PHP

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

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

  1. centos6 安装 LAMP

CentOS6.5 下升级 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

CentOS6.xでEPELリポジトリ入れたときのエラー対処

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 valid 可能是服务器中的时间(在服务器的终端输入date命令查看服务器的时间)不对

“Issued certificate not yet valid.” with wget?

lamp 出现

SQLSTATE[HY000] [2002] Permission denied

centos redis server

Install and Configure Redis on CentOS 7

centos6 rabbitmq

CentOS安装新版RabbitMQ解决Erlang 19.3版本依赖

rabbitmq-plugins list
rabbitmq-plugins enable rabbitmq_web_mqtt

rabbit mq plugins

centos 卸载 PHP

安装了 PHP7.3RC4,卸载安装回 PHP7.2~~

How to uninstall an older PHP version from centOS7

yum -y remove PHP*

然后在重装 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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。