博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
centos lamp笔记
阅读量:5252 次
发布时间:2019-06-14

本文共 2551 字,大约阅读时间需要 8 分钟。

在鏡像中沒有 cron 命令

php的docker鏡像中安裝 redis擴展

centos 开启端口

iptables -A INPUT -p tcp -m tcp --dport 80 -j ACCEPTiptables -A INPUT -p tcp -m tcp --dport 443 -j ACCEPT
  1. ERROR: cannot verify dev.mysql.com’s certificate

  1. centos6 安装 LAMP

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

yum install epel-release

root@localhost ~]# yum list phpLoaded plugins: fastestmirror, securityLoading mirror speeds from cached hostfileError: Cannot retrieve metalink for repository: epel. Please verify its path and try again

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 1PHP Warning:  copy(): Failed to enable crypto in Command line code on line 1PHP Warning:  copy(https://getcomposer.org/installer): failed to open stream: operation failed in Command line code on line 1
yum install php-crypto

ntp

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.pemResolving 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 PermanentlyLocation: https://curl.haxx.se/ca/cacert.pem [following]--2009-05-19 03:18:33--  https://curl.haxx.se/ca/cacert.pemConnecting 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命令查看服务器的时间)不对

lamp 出现

centos6 rabbitmq

rabbitmq-plugins listrabbitmq-plugins enable rabbitmq_web_mqtt

centos 卸载 php

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

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

转载于:https://www.cnblogs.com/fsong/p/11260156.html

你可能感兴趣的文章
Hibernate-缓存
查看>>
【BZOJ4516】生成魔咒(后缀自动机)
查看>>
提高PHP性能的10条建议
查看>>
svn“Previous operation has not finished; run 'cleanup' if it was interrupted“报错的解决方法...
查看>>
熟用TableView
查看>>
Java大数——a^b + b^a
查看>>
poj 3164 最小树形图(朱刘算法)
查看>>
服务器内存泄露 , 重启后恢复问题解决方案
查看>>
android一些细节问题
查看>>
KDESVN中commit时出现containing working copy admin area is missing错误提示
查看>>
利用AOP写2PC框架(二)
查看>>
【动态规划】skiing
查看>>
java定时器的使用(Timer)
查看>>
ef codefirst VS里修改数据表结构后更新到数据库
查看>>
boost 同步定时器
查看>>
[ROS] Chinese MOOC || Chapter-4.4 Action
查看>>
简单的数据库操作
查看>>
iOS-解决iOS8及以上设置applicationIconBadgeNumber报错的问题
查看>>
亡灵序曲-The Dawn
查看>>
Redmine
查看>>