WordPress在OpenShift/Kubernetes中

huangapple go评论125阅读模式
英文:

WordPress in OpenShift/Kubernetes

问题

AH00558: apache2: 无法可靠地确定服务器的FQDN,使用10.128.2.60。全局设置“ServerName”指令以抑制此消息
(13) 权限被拒绝:AH00072:make_sock:无法连接到地址[::]:80
(13) 权限被拒绝:AH00072:make_sock:无法连接到地址0.0.0.0:80
没有可用的监听套接字,关闭
AH00015:无法打开日志

这是我的WordPress部署文件:

  1. apiVersion: apps/v1
  2. kind: Deployment
  3. metadata:
  4. name: wordpress
  5. spec:
  6. replicas: 1
  7. selector:
  8. matchLabels:
  9. app: wordpress
  10. template:
  11. metadata:
  12. labels:
  13. app: wordpress
  14. spec:
  15. containers:
  16. - name: wordpress
  17. image: wordpress:5.8.3-php7.4-apache
  18. ports:
  19. - containerPort: 8443
  20. name: wordpress
  21. volumeMounts:
  22. - name: wordpress-data
  23. mountPath: /var/www/html
  24. env:
  25. - name: WORDPRESS_DB_HOST
  26. value: mysql-service.default.svc.cluster.local
  27. - name: WORDPRESS_DB_PASSWORD
  28. valueFrom:
  29. secretKeyRef:
  30. name: wp-db-secrets
  31. key: MYSQL_ROOT_PASSWORD
  32. - name: WORDPRESS_DB_USER
  33. value: root
  34. - name: WORDPRESS_DB_NAME
  35. value: wordpress
  36. volumes:
  37. - name: wordpress-data
  38. persistentVolumeClaim:
  39. claimName: wordpress-volume

我的服务:

  1. kind: Service
  2. apiVersion: v1
  3. metadata:
  4. name: wordpress-service
  5. spec:
  6. type: LoadBalancer
  7. selector:
  8. app: wordpress
  9. ports:
  10. - name: http
  11. protocol: TCP
  12. port: 8443
  13. targetPort: 8443

我只需将它返回给我的IP地址并登录WordPress。

英文:

I'm just doing a wordpress deploy to practice openshift, I have this problem that I can't solve:

  1. AH00558: apache2: Unable to reliably determine the FQDN of the server, using [10.128.2.60](https://10.128.2.60/). Globally set the "ServerName" directive to suppress this message
  2. (13) Permission denied: AH00072: make_sock: unable to connect to address \[::\]:80
  3. (13) Permission denied: AH00072: make_sock: unable to connect to address [0.0.0.0:80](https://0.0.0.0:80/)
  4. no listening sockets available, switch off
  5. AH00015: Unable to open logs

This is my wordpress deployment file:

  1. apiVersion: apps/v1
  2. kind: Deployments
  3. metadata:
  4. name: wordpress
  5. specs:
  6. replies: 1
  7. selector:
  8. matchLabels:
  9. apps: wordpress
  10. templates:
  11. metadata:
  12. labels:
  13. apps: wordpress
  14. specs:
  15. containers:
  16. - name: wordpress
  17. image: wordpress:5.8.3-php7.4-apache
  18. ports:
  19. - containerPort: 8443
  20. name: wordpress
  21. volumeMounts:
  22. - name: wordpress-data
  23. mountPath: /var/www
  24. env:
  25. - name: WORDPRESS_DB_HOST
  26. value: mysql-service.default.svc.cluster.local
  27. - name: WORDPRESS_DB_PASSWORD
  28. valueFrom:
  29. secretKeyRef:
  30. name: wp-db-secrets
  31. key: MYSQL_ROOT_PASSWORD
  32. - name: WORDPRESS_DB_USER
  33. value: root
  34. - name: WORDPRESS_DB_NAME
  35. value: wordpress
  36. volumes:
  37. - name: wordpress-data
  38. persistentVolumeClaim:
  39. claimName: wordpress-volume

My Service:

  1. kind: Service
  2. apiVersion: v1
  3. metadata:
  4. name: wordpress-service
  5. specs:
  6. type: LoadBalancer
  7. selector:
  8. apps: wordpress
  9. ports:
  10. - name: http
  11. protocol: TCP
  12. port: 8443
  13. targetPort: 8443

I should simply put the ip address it returns to me and log into wordpress

答案1

得分: 1

权限被拒绝在端口80上,您配置的端口是8443
使用:8443访问它或将其更改为端口80

英文:

Permission denied is on port 80, your configured port is 8443
Access it with <ip>:8443 or change it to Port 80

huangapple
  • 本文由 发表于 2023年7月6日 20:57:53
  • 转载请务必保留本文链接:https://go.coder-hub.com/76629092.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定