WordPress在OpenShift/Kubernetes中

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

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部署文件:

apiVersion: apps/v1
kind: Deployment
metadata:
  name: wordpress
spec:
  replicas: 1
  selector:
    matchLabels:
      app: wordpress
  template:
    metadata:
      labels:
        app: wordpress
    spec:
      containers:
      - name: wordpress
        image: wordpress:5.8.3-php7.4-apache
        ports:
        - containerPort: 8443
          name: wordpress
        volumeMounts:
        - name: wordpress-data
          mountPath: /var/www/html
        env:
        - name: WORDPRESS_DB_HOST
          value: mysql-service.default.svc.cluster.local
        - name: WORDPRESS_DB_PASSWORD
          valueFrom:
            secretKeyRef:
              name: wp-db-secrets
              key: MYSQL_ROOT_PASSWORD
        - name: WORDPRESS_DB_USER
          value: root
        - name: WORDPRESS_DB_NAME
          value: wordpress
      volumes:
      - name: wordpress-data
        persistentVolumeClaim:
          claimName: wordpress-volume

我的服务:

kind: Service
apiVersion: v1
metadata:
  name: wordpress-service
spec:
  type: LoadBalancer
  selector:
    app: wordpress
  ports:
  - name: http
    protocol: TCP
    port: 8443
    targetPort: 8443

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

英文:

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

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
(13) Permission denied: AH00072: make_sock: unable to connect to address \[::\]:80
(13) Permission denied: AH00072: make_sock: unable to connect to address [0.0.0.0:80](https://0.0.0.0:80/)
no listening sockets available, switch off
AH00015: Unable to open logs

This is my wordpress deployment file:

apiVersion: apps/v1
kind: Deployments
metadata:
  name: wordpress
specs:
  replies: 1
  selector:
    matchLabels:
      apps: wordpress
  templates:
    metadata:
      labels:
        apps: wordpress
    specs:
      containers:
      - name: wordpress
        image: wordpress:5.8.3-php7.4-apache
      ports:
      - containerPort: 8443
        name: wordpress
      volumeMounts:
      - name: wordpress-data
        mountPath: /var/www
      env:
      - name: WORDPRESS_DB_HOST
        value: mysql-service.default.svc.cluster.local
      - name: WORDPRESS_DB_PASSWORD
        valueFrom:
          secretKeyRef:
            name: wp-db-secrets
            key: MYSQL_ROOT_PASSWORD
      - name: WORDPRESS_DB_USER
        value: root
      - name: WORDPRESS_DB_NAME
        value: wordpress
      volumes:
      - name: wordpress-data
        persistentVolumeClaim:
          claimName: wordpress-volume

My Service:

kind: Service
apiVersion: v1
metadata:
  name: wordpress-service
specs:
  type: LoadBalancer
    selector:
      apps: wordpress
  ports:
  - name: http
    protocol: TCP
    port: 8443
    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:

确定