赞
踩
onlyoffice证书安装
[root@controller certs]# clear [root@controller certs]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES eee4b44d7c04 onlyoffice/documentserver "/app/ds/run-documen…" 13 hours ago Up 13 hours 0.0.0.0:8080->80/tcp, :::8080->80/tcp, 0.0.0.0:9000->443/tcp, :::9000->443/tcp gifted_einstein b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller certs]# docker rm -f eee4b44d7c04 eee4b44d7c04 [root@controller certs]# sudo docker run -i -t -d -p 80:80 "docker run" requires at least 1 argument. See 'docker run --help'. Usage: docker run [OPTIONS] IMAGE [COMMAND] [ARG...] Run a command in a new container [root@controller certs]# -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoff ice bash: -v: 未找到命令... [root@controller certs]# -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoff ice/Data onlyoffice/documentserver^C [root@controller certs]# sudo docker run -i -t -d -p 80:80 -p 8443:443 -v /app/o nlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentSer ver/data:/var/www/onlyoffice/Data -yoffice/documentserver^C [root@controller certs]# sudo docker run -i -t -d -p 80:80 -p 8443:443 -v /app/o nlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentSer ver/data:/var/www/onlyoffice/Data onlyoffice/documentserver 426910e073fb77442904b7f851c235a250bcf10f6a4af6d5dddb57180e0b6bbc docker: Error response from daemon: driver failed programming external connectiv ity on endpoint nervous_wescoff (2eb987d2552a0e5bdcf3a2d42203a8307c9f526e2027880 5d0df19e1a78e876f): Error starting userland proxy: listen tcp4 0.0.0.0:80: bind: address already in use. [root@controller certs]# sudo docker run -i -t -d -p 8008:80 -p 8443:443 -v /app /onlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentS erver/data:/var/www/onlyoffice/Data onlyoffice/documentserver 79372fb9678f145cde6da94dd1eefc75d205be7d1556ef874866822077aafd35 [root@controller certs]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 79372fb9678f onlyoffice/documentserver "/app/ds/run-documen…" 10 seconds a go Up 9 seconds 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp , :::8443->443/tcp frosty_knuth 426910e073fb onlyoffice/documentserver "/app/ds/run-documen…" 26 seconds a go Created nervous_wescoff b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller certs]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 79372fb9678f onlyoffice/documentserver "/app/ds/run-documen…" About a minute ago Up About a minute 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp frosty_knuth 426910e073fb onlyoffice/documentserver "/app/ds/run-documen…" About a minute ago Created nervous_wescoff b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller certs]# docker rm -f 426910e073fb 426910e073fb [root@controller certs]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 79372fb9678f onlyoffice/documentserver "/app/ds/run-documen…" 2 minutes ago Up 2 minutes 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp frosty_knuth b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller certs]# docker rm -f 79372fb9678f 79372fb9678f [root@controller certs]# sudo docker run -i -t -d -p 8008:80 -p 8443:443 -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver 1f0769ee068d0c2a673e7de517c2564b67a62c565f32267a51b93ac8789acf9b [root@controller certs]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 4 seconds ago Up 3 seconds 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller certs]# systemctl stop firewalld [root@controller certs]# systemctl restart httpd.service [root@controller certs]# ifconfig docker0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 172.17.0.1 netmask 255.255.0.0 broadcast 172.17.255.255 inet6 fe80::42:deff:fe68:3899 prefixlen 64 scopeid 0x20<link> ether 02:42:de:68:38:99 txqueuelen 0 (Ethernet) RX packets 22414 bytes 3897373 (3.7 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 26513 bytes 100885057 (96.2 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.182.132 netmask 255.255.255.0 broadcast 192.168.182.255 inet6 fe80::ea43:5fa0:747f:7b67 prefixlen 64 scopeid 0x20<link> ether 00:0c:29:8f:e2:aa txqueuelen 1000 (Ethernet) RX packets 1313360 bytes 1830164771 (1.7 GiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 394894 bytes 29069680 (27.7 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 ens34: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 ether 00:0c:29:8f:e2:b4 txqueuelen 1000 (Ethernet) RX packets 54868 bytes 3384744 (3.2 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 1000 (Local Loopback) RX packets 442 bytes 23092 (22.5 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 442 bytes 23092 (22.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 veth4bab096: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::4c07:c0ff:fe62:12f7 prefixlen 64 scopeid 0x20<link> ether 4e:07:c0:62:12:f7 txqueuelen 0 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 75 bytes 5715 (5.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 vethb62be7e: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet6 fe80::6c6e:bdff:fe45:fe85 prefixlen 64 scopeid 0x20<link> ether 6e:6e:bd:45:fe:85 txqueuelen 0 (Ethernet) RX packets 120 bytes 10104 (9.8 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 141 bytes 14882 (14.5 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500 inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255 ether 52:54:00:4e:61:a8 txqueuelen 1000 (Ethernet) RX packets 0 bytes 0 (0.0 B) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 0 bytes 0 (0.0 B) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 [root@controller certs]# cd /etc/httpd/conf.d/ [root@controller conf.d]# ls autoindex.conf README ssl.conf userdir.conf welcome.conf [root@controller conf.d]# vi ssl.conf [root@controller conf.d]# systemctl restart httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. [root@controller conf.d]# setenforce 0 setenforce: SELinux is disabled [root@controller conf.d]# systemctl restart httpd.service Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. [root@controller conf.d]# vi ssl.conf [root@controller conf.d]# ls /app/onlyoffice/DocumentServer/data/certs/ dhparam.pem onlyoffice.crt onlyoffice.csr onlyoffice.key [root@controller conf.d]# systemctl restart httpd.service [root@controller conf.d]# sudo docker run -i -t -d -p 8008:80 -p 8443:443 -v /app/onlyoffice/DocumentServer/logs:/var/log/onlyoffice -v /app/onlyoffice/DocumentServer/data:/var/www/onlyoffice/Data onlyoffice/documentserver^C [root@controller conf.d]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 16 minutes ago Up 16 minutes 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller conf.d]# docker exec -it 1f0769ee068d /bin/bash root@1f0769ee068d:/# cd /var/www/onlyoffice/ root@1f0769ee068d:/var/www/onlyoffice# ls Data documentserver documentserver-example root@1f0769ee068d:/var/www/onlyoffice# cd Data/ls bash: cd: Data/ls: No such file or directory root@1f0769ee068d:/var/www/onlyoffice# cd Data/ root@1f0769ee068d:/var/www/onlyoffice/Data# ls certs root@1f0769ee068d:/var/www/onlyoffice/Data# cd certs/ root@1f0769ee068d:/var/www/onlyoffice/Data/certs# ls dhparam.pem onlyoffice.crt onlyoffice.csr onlyoffice.key root@1f0769ee068d:/var/www/onlyoffice/Data/certs# cd .. root@1f0769ee068d:/var/www/onlyoffice/Data# ls certs root@1f0769ee068d:/var/www/onlyoffice/Data# cd .. root@1f0769ee068d:/var/www/onlyoffice# ls Data documentserver documentserver-example root@1f0769ee068d:/var/www/onlyoffice# exit exit [root@controller conf.d]# [root@controller conf.d]# root@1f0769ee068d:/var/www/onlyoffice# -bash: root@1f0769ee068d:/var/www/onlyoffice#: 没有那个文件或目录 [root@controller conf.d]# [root@controller conf.d]# root@1f0769ee068d:/var/www/onlyoffice# -bash: root@1f0769ee068d:/var/www/onlyoffice#: 没有那个文件或目录 [root@controller conf.d]# docker run -i -t -d -p 8008:80 nextcloud 0e17ce3ce6d2f36b46b5d17d6ddc3bf1fefcd4fdc9d7b9216cdbde8250f4d2de docker: Error response from daemon: driver failed programming external connectivity on endpoint frosty_swanson (72ef2cba0f2385497a58b4dbf0643c1a1b3a8a4def937272f3e9d58e8367a726): Bind for 0.0.0.0:8008 failed: port is already allocated. [root@controller conf.d]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 0e17ce3ce6d2 nextcloud "/entrypoint.sh apac…" 21 seconds ago Created frosty_swanson 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 19 minutes ago Up 19 minutes 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller conf.d]# docker rm -f 0e17ce3ce6d2 0e17ce3ce6d2 [root@controller conf.d]# docker run -i -t -d -p 8082:80 nextcloud 215085ebdcc231c2eb3fe5eb78834e4961455bca4fda06dff3634edc42bde9aa [root@controller conf.d]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 215085ebdcc2 nextcloud "/entrypoint.sh apac…" 6 seconds ago Up 5 seconds 0.0.0.0:8082->80/tcp, :::8082->80/tcp eager_elgamal 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 20 minutes ago Up 20 minutes 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller conf.d]# docker exec -it 215085ebdcc2 /bin/bash root@215085ebdcc2:/var/www/html# ls 3rdparty COPYING config core custom_apps dist index.php occ ocs public.php resources status.php version.php AUTHORS apps console.php cron.php data index.html lib ocm-provider ocs-provider remote.php robots.txt themes root@215085ebdcc2:/var/www/html# exit exit [root@controller conf.d]# docker run -i -t -d -p 8082:80 nextcloud d64b1f72f8a6312a98886ef3d2959fcaf6858b07b719e28b45394ca0b659d961 docker: Error response from daemon: driver failed programming external connectivity on endpoint elegant_roentgen (cf415eff37e981e0937f7c81287bcb084a880698f479d706c14fbfdb3df19b6b): Bind for 0.0.0.0:8082 failed: port is already allocated. [root@controller conf.d]# docker exec -it 215085ebdcc2 /bin/bash root@215085ebdcc2:/var/www/html# cd /var/ root@215085ebdcc2:/var# ls backups cache lib local lock log mail opt run spool tmp www root@215085ebdcc2:/var# cd log root@215085ebdcc2:/var/log# ls alternatives.log apache2 apt btmp dpkg.log faillog lastlog wtmp root@215085ebdcc2:/var/log# ls alternatives.log apache2 apt btmp dpkg.log faillog lastlog wtmp root@215085ebdcc2:/var/log# exit' > ^C root@215085ebdcc2:/var/log# exit exit [root@controller conf.d]# docker exec -it 1f0769ee068d /bin/bash root@1f0769ee068d:/# pwd / root@1f0769ee068d:/# cd var/log/ root@1f0769ee068d:/var/log# ls alternatives.log apt bootstrap.log btmp dist-upgrade dpkg.log faillog fontconfig.log journal lastlog nginx onlyoffice postgresql private rabbitmq redis supervisor sysstat ubuntu-advantage.log unattended-upgrades wtmp root@1f0769ee068d:/var/log# cd onlyoffice/ root@1f0769ee068d:/var/log/onlyoffice# ls documentserver documentserver-example root@1f0769ee068d:/var/log/onlyoffice# cd .. root@1f0769ee068d:/var/log# cd .. root@1f0769ee068d:/var# ls backups cache lib local lock log mail opt run spool tmp www root@1f0769ee068d:/var# cd www/onlyoffice/ root@1f0769ee068d:/var/www/onlyoffice# ls Data documentserver documentserver-example root@1f0769ee068d:/var/www/onlyoffice# docker ps -a bash: docker: command not found root@1f0769ee068d:/var/www/onlyoffice# exit exit [root@controller conf.d]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES d64b1f72f8a6 nextcloud "/entrypoint.sh apac…" 3 minutes ago Created elegant_roentgen 215085ebdcc2 nextcloud "/entrypoint.sh apac…" 4 minutes ago Up 4 minutes 0.0.0.0:8082->80/tcp, :::8082->80/tcp eager_elgamal 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 24 minutes ago Up 24 minutes 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller conf.d]# docker rm -f 215085ebdcc2 215085ebdcc2 [root@controller conf.d]# docker rm -f d64b1f72f8a6 d64b1f72f8a6 [root@controller conf.d]# sudo docker run -i -t -d -p 8081:80 -p 9000:443-name nextcloud -v /app/onlyoffice/DocumentServer/logs:/var/log/ -v /app/onlyoffice/DocumentServer/data:/var/www/html/Data nextcloud docker: Invalid containerPort: 443-name. See 'docker run --help'. [root@controller conf.d]# sudo docker run -i -t -d -p 8081:80 -p 9000:443 -name nextcloud -v /app/onlyoffice/DocumentServer/logs:/var/log/ -v /app/onlyoffice/DocumentServer/data:/var/www/html/Data nextcloud unknown shorthand flag: 'n' in -name See 'docker run --help'. [root@controller conf.d]# sudo docker run -i -t -d -p 8081:80 -p 9000:443 --name nextcloud -v /app/onlyoffice/DocumentServer/logs:/var/log/ -v /app/onlyoffice/DocumentServer/data:/var/www/html/Data nextcloud f3f6a7c7ccb7a58d9a3b187c6c68c172e8266275c7ff877319b7b094f1c81371 [root@controller conf.d]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES f3f6a7c7ccb7 nextcloud "/entrypoint.sh apac…" 7 seconds ago Exited (23) 3 seconds ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 26 minutes ago Up 26 minutes 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller conf.d]# docker rm -f f3f6a7c7ccb7 f3f6a7c7ccb7 [root@controller conf.d]# sudo docker run -i -t -d -p 8081:80 -p 9000:443 --name nextcloud -v /app/onlyoffice/DocumentServer/logs:/var/log/apt -v /app/onlyoffice/DocumentServer/data:/var/www/html/data nextcloud 5fabd27e0bc47471f2290c81f4d3251053957a5bfc9ff3addad573d77da3f55e [root@controller conf.d]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 5fabd27e0bc4 nextcloud "/entrypoint.sh apac…" 4 seconds ago Up 3 seconds 0.0.0.0:8081->80/tcp, :::8081->80/tcp, 0.0.0.0:9000->443/tcp, :::9000->443/tcp nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 29 minutes ago Up 29 minutes 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller conf.d]# docker rm -f 5fabd27e0bc4 5fabd27e0bc4 [root@controller conf.d]# sudo docker run -i -t -d -p 8083:80 -p 9000:443 --name nextcloud -v /app/onlyoffice/DocumentServer/logs:/var/log/apt -v /app/onlyoffice/DocumentServer/data:/var/www/html/data nextcloud 08fd03ea1fa10af548a07bed47336ee47612f653f4f684ae4554580db510cadc [root@controller conf.d]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES 08fd03ea1fa1 nextcloud "/entrypoint.sh apac…" 11 hours ago Up 11 hours 0.0.0.0:8083->80/tcp, :::8083->80/tcp, 0.0.0.0:9000->443/tcp, :::9000->443/tcp nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 12 hours ago Up 12 hours 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller conf.d]# docker exec -it 08fd03ea1fa1 /bin/bash root@08fd03ea1fa1:/var/www/html# cd /etc/apache2/ root@08fd03ea1fa1:/etc/apache2# ls apache2.conf conf-available conf-enabled envvars magic mods-available mods-enabled ports.conf sites-available sites-enabled root@08fd03ea1fa1:/etc/apache2# a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Enabling module socache_shmcb. Enabling module ssl. See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates. To activate the new configuration, you need to run: service apache2 restart root@08fd03ea1fa1:/etc/apache2# exit exit [root@controller conf.d]# cd /app/onlyoffice/DocumentServer/data [root@controller data]# ls index.html nextcloud.log [root@controller data]# cd /home/ [root@controller home]# ls docker wqb www [root@controller home]# cd /etc/ [root@controller etc]# ls abrt cron.daily enscript.cfg GREP_COLORS issue.net logrotate.conf nfs.conf popt.d request-key.d smartmontools udev adjtime cron.deny environment groff java logrotate.d nfsmount.conf postfix resolv.conf sos.conf udisks2 akonadi cron.hourly ethertypes group jvm lsm nsswitch.conf ppp resolv.conf.JPEZQ1 speech-dispatcher unbound aliases cron.monthly exports group- jvm-commmon lvm nsswitch.conf.bak prelink.conf.d rpc ssh updatedb.conf aliases.db crontab exports.d grub2.cfg kde machine-id nsswitch.conf.rpmnew printcap rpm ssl UPower alsa cron.weekly favicon.png grub.d kde4rc magic ntp profile rsyncd.conf statetab usb_modeswitch.conf alternatives crypttab fcoe gshadow kderc mailcap ntp.conf profile.d rsyslog.conf statetab.d vconsole.conf anacrontab csh.cshrc festival gshadow- kdump.conf mail.rc numad.conf protocols rsyslog.d subgid vimrc asound.conf csh.login filesystems gss kernel makedumpfile.conf.sample oddjob pulse rwtab subgid- virc at.deny cups firefox gssproxy krb5.conf man_db.conf oddjobd.conf purple rwtab.d subuid virtuoso audisp cupshelpers firewalld host.conf krb5.conf.d maven oddjobd.conf.d python samba subuid- vmware-tools audit dbus-1 flatpak hostname ksmtuned.conf mcelog openldap qemu-ga sane.d sudo.conf wgetrc avahi dconf fonts hosts ksysguarddrc mime.types opt qemu-kvm sasl2 sudoers wpa_supplicant bash_completion.d default fprintd.conf hosts.allow ld.so.cache mke2fs.conf os-release radvd.conf scl sudoers.d wvdial.conf bashrc depmod.d fstab hosts.deny ld.so.conf modprobe.d PackageKit ras securetty sudo-ldap.conf X11 binfmt.d dhcp fuse.conf hp ld.so.conf.d modules-load.d pam.d rc0.d security sysconfig xdg bluetooth DIR_COLORS fwupd httpd libaudit.conf motd papersize rc1.d selinux sysctl.conf xinetd.d brltty DIR_COLORS.256color gconf idmapd.conf libblockdev mtab passwd rc2.d services sysctl.d xml brltty.conf DIR_COLORS.lightbgcolor gcrypt init.d libibverbs.d mtools.conf passwd- rc3.d sestatus.conf systemd yum centos-release dleyna-server-service.conf gdbinit inittab libnl multipath pbm2ppa.conf rc4.d setroubleshoot system-release yum.conf centos-release-upstream dnsmasq.conf gdbinit.d inputrc libpaper.d my.cnf pinforc rc5.d setuptool.d system-release-cpe yum.repos.d chkconfig.d dnsmasq.d gdm iproute2 libreport my.cnf.d pkcs11 rc6.d sgml tcsd.conf chrony.conf docker geoclue ipsec.conf libuser.conf nanorc pki rc.d shadow terminfo chrony.keys dracut.conf GeoIP.conf ipsec.d libvirt ndctl plymouth rc.local shadow- tmpfiles.d cifs-utils dracut.conf.d ghostscript ipsec.secrets locale.conf netconfig pm rdma shells Trolltech.conf containerd e2fsck.conf glvnd iscsi localtime NetworkManager pnm2ppa.conf redhat-release shells.rpmnew trusted-key.key cron.d egl gnupg issue login.defs networks polkit-1 request-key.conf skel tuned [root@controller etc]#
重新安装政书
[root@controller etc]# systemctl restart httpd Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and [root@controller etc]# systemctl restart httpd Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and [root@controller etc]# pwd /etc [root@controller etc]# cd /app/onlyoffice/DocumentServer/data/ [root@controller data]# ls index.html nextcloud.log [root@controller data]# mkdikr certs bash: mkdikr: 未找到命令... [root@controller data]# mkdir certs [root@controller data]# openssl genrsa -out onlyoffice.key 2048 Generating RSA private key, 2048 bit long modulus ........................................................................................................+++ ..................................+++ e is 65537 (0x10001) [root@controller data]# openssl req -new -key onlyoffice.key -out onlyoffice.csr You are about to be asked to enter information that will be incorporated into your certificate request. What you are about to enter is what is called a Distinguished Name or a DN. There are quite a few fields but you can leave some blank For some fields there will be a default value, If you enter '.', the field will be left blank. ----- Country Name (2 letter code) [XX]:CN State or Province Name (full name) []:HB Locality Name (eg, city) [Default City]:XG Organization Name (eg, company) [Default Company Ltd]:GA Organizational Unit Name (eg, section) []:GX Common Name (eg, your name or your server's hostname) []:11.138.0.16 Email Address []: Please enter the following 'extra' attributes to be sent with your certificate request A challenge password []: An optional company name []: [root@controller data]# openssl x509 -req -days 365 -in onlyoffice.csr -signkey onlyoffice.key -out onlyoffice.crt Signature ok subject=/C=CN/ST=HB/L=XG/O=GA/OU=GX/CN=11.138.0.16 Getting Private key [root@controller data]# openssl dhparam -out dhparam.pem 2048 Generating DH parameters, 2048 bit long safe prime, generator 2 This is going to take a long time .....................................................................+..+....... ..........................................................................+..... .............++*++* [root@controller data]# systemctl restart httpd Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details. [root@controller data]# systemctl status httpd ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor prese t: disabled) Active: failed (Result: exit-code) since 二 2022-09-06 09:12:18 CST; 19s ago Docs: man:httpd(8) man:apachectl(8) Process: 43641 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUC CESS) Process: 23344 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, s tatus=0/SUCCESS) Process: 43930 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, s tatus=1/FAILURE) Main PID: 43930 (code=exited, status=1/FAILURE) 9月 06 09:12:18 controller systemd[1]: Starting The Apache HTTP Server... 9月 06 09:12:18 controller httpd[43930]: AH00526: Syntax error on line 103 ...: 9月 06 09:12:18 controller httpd[43930]: SSLCertificateFile: file '/app/onl...y 9月 06 09:12:18 controller systemd[1]: httpd.service: main process exited, ...E 9月 06 09:12:18 controller systemd[1]: Failed to start The Apache HTTP Server. 9月 06 09:12:18 controller systemd[1]: Unit httpd.service entered failed state. 9月 06 09:12:18 controller systemd[1]: httpd.service failed. Hint: Some lines were ellipsized, use -l to show in full. [root@controller data]# systemctl status httpd ● httpd.service - The Apache HTTP Server Loaded: loaded (/usr/lib/systemd/system/httpd.service; disabled; vendor preset: disabled) Active: failed (Result: exit-code) since 二 2022-09-06 09:12:18 CST; 29s ago Docs: man:httpd(8) man:apachectl(8) Process: 43641 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=0/SUCCESS) Process: 23344 ExecReload=/usr/sbin/httpd $OPTIONS -k graceful (code=exited, status=0/SUCCESS) Process: 43930 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE) Main PID: 43930 (code=exited, status=1/FAILURE) 9月 06 09:12:18 controller systemd[1]: Starting The Apache HTTP Server... 9月 06 09:12:18 controller httpd[43930]: AH00526: Syntax error on line 103 of /etc/httpd/conf.d/ssl.conf: 9月 06 09:12:18 controller httpd[43930]: SSLCertificateFile: file '/app/onlyoffice/DocumentServer/data/certs/onl...empty 9月 06 09:12:18 controller systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE 9月 06 09:12:18 controller systemd[1]: Failed to start The Apache HTTP Server. 9月 06 09:12:18 controller systemd[1]: Unit httpd.service entered failed state. 9月 06 09:12:18 controller systemd[1]: httpd.service failed. Hint: Some lines were ellipsized, use -l to show in full. [root@controller data]# ls certs dhparam.pem index.html nextcloud.log onlyoffice.crt onlyoffice.csr onlyoffice.key [root@controller data]# mv onlyoffice.* certs/ [root@controller data]# mv dhparam.pem certs/ [root@controller data]# ls certs index.html nextcloud.log [root@controller data]# systemctl restart httpd [root@controller data]# cd certs/ [root@controller certs]# ls dhparam.pem onlyoffice.crt onlyoffice.csr onlyoffice.key [root@controller certs]#
1、下载阿里云ssl证书,类型为:apache,得到三个文件两个crt,一个key。
2、把文件夹更名为cert,文件名改为chain.crt,pubilc.crt,web.key。
3、把文件夹复制进nextcloud容器/etc/apache2文件夹中
docker cp /nextcloud/cert nextcloud:/etc/apache2/cert
4、进入容器 执行
a2enmod ssl
a2ensite default-ssl
5、修改ssl.load配置文件
vim /etc/apache2/mods-available/ssl.load
如果有下面这一句就不用修改了,没有就添加上
LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so
6、修改default-ssl.conf配置文件
vim /etc/apache2/sites-available/default-ssl.conf
找到下面三句注释掉或删除
SSLEngine on
SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
#SSLEngine on
#SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem
#SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key
在上面三句的最后面加上以下内容
SSLProtocol all -SSLv2 -SSLv3
SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM
SSLEngine on
SSLCertificateFile /etc/apache2/cert/public.crt
SSLCertificateKeyFile /etc/apache2/cert/web.key
SSLCertificateChainFile /etc/apache2/cert/chain.crt
7、重启apache服务,大功告成!
/etc/init.d/apache2 restart
————————————————
[root@controller nextcloud]# sudo docker run -i -t -d -p 8083:80 -p 9000:443 --name nextcloud -v /home/nextcloud:/var /www/html --link mysql:mysql nextcloud e8e6900f83b10f564f7b201fe7f38bfa4289372305db2f22cc81fe7e4781ca3c [root@controller nextcloud]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" 4 seconds ago Up 3 seconds 0.0.0.0:8083->80/tcp, :::8083->80/tcp, 0.0.0.0:9000->443/tcp, :::9000->443/tcp nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 18 hours ago Up 18 hours 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:330 7->3306/tcp, :::3307->3306/tcp mysql [root@controller nextcloud]# ls 3rdparty config core data index.php ocm-provider public.php robots.txt version.php apps console.php cron.php dist lib ocs remote.php status.php AUTHORS COPYING custom_apps index.html occ ocs-provider resources themes [root@controller nextcloud]# cd /app/onlyoffice/DocumentServer/data/certs/ [root@controller certs]# ls dhparam.pem onlyoffice.crt onlyoffice.csr onlyoffice.key [root@controller certs]# docker cp *.* /nextcloud:/etc/apache2/cert "docker cp" requires exactly 2 arguments. See 'docker cp --help'. Usage: docker cp [OPTIONS] CONTAINER:SRC_PATH DEST_PATH|- docker cp [OPTIONS] SRC_PATH|- CONTAINER:DEST_PATH Copy files/folders between a container and the local filesystem [root@controller certs]# docker cp . /nextcloud:/etc/apache2/cert must specify at least one container source [root@controller certs]# docker cp /app/onlyoffice/DocumentServer/data/certs/ /nextcloud:/etc/apache2/cert must specify at least one container source [root@controller certs]# docker cp /app/onlyoffice/DocumentServer/data/certs/ nextcloud:/etc/apache2/cert [root@controller certs]# docker exec -it e8e6900f83b1 /bin/bash root@e8e6900f83b1:/var/www/html# cd /etc/ap apache2/ apt/ root@e8e6900f83b1:/var/www/html# cd /etc/ap apache2/ apt/ root@e8e6900f83b1:/var/www/html# cd /etc/apache2/cert/ root@e8e6900f83b1:/etc/apache2/cert# ls dhparam.pem onlyoffice.crt onlyoffice.csr onlyoffice.key root@e8e6900f83b1:/etc/apache2/cert# a2enmod ssl Considering dependency setenvif for ssl: Module setenvif already enabled Considering dependency mime for ssl: Module mime already enabled Considering dependency socache_shmcb for ssl: Enabling module socache_shmcb. Enabling module ssl. See /usr/share/doc/apache2/README.Debian.gz on how to configure SSL and create self-signed certificates. To activate the new configuration, you need to run: service apache2 restart root@e8e6900f83b1:/etc/apache2/cert# a2ensite default-ssl Enabling site default-ssl. To activate the new configuration, you need to run: service apache2 reload root@e8e6900f83b1:/etc/apache2/cert# vim /etc/apache2/mods-available/ssl.load bash: vim: command not found root@e8e6900f83b1:/etc/apache2/cert# cat /etc/apache2/mods-available/ssl.load # Depends: setenvif mime socache_shmcb LoadModule ssl_module /usr/lib/apache2/modules/mod_ssl.so root@e8e6900f83b1:/etc/apache2/cert# Display all 721 possibilities? (y or n) root@e8e6900f83b1:/etc/apache2/cert# exit exit [root@controller certs]# cd /tmp/ [root@controller tmp]# ls default-ssl.conf hsperfdata_root jetty-0_0_0_0-20020-x_attendance_assemble_control-_x_attendance_assemble_control-any-5487304973201362601 jetty-0_0_0_0-20020-x_bbs_assemble_control-_x_bbs_assemble_control-any-13373972949403097973 jetty-0_0_0_0-20020-x_calendar_assemble_control-_x_calendar_assemble_control-any-10034654095329511101 jetty-0_0_0_0-20020-x_cms_assemble_control-_x_cms_assemble_control-any-16524870214547273986 jetty-0_0_0_0-20020-x_component_assemble_control-_x_component_assemble_control-any-6496567976447608141 jetty-0_0_0_0-20020-x_file_assemble_control-_x_file_assemble_control-any-1869164148854349652 jetty-0_0_0_0-20020-x_general_assemble_control-_x_general_assemble_control-any-18081563064353435714 jetty-0_0_0_0-20020-x_hotpic_assemble_control-_x_hotpic_assemble_control-any-2955903243605679855 jetty-0_0_0_0-20020-x_jpush_assemble_control-_x_jpush_assemble_control-any-8267267305904477141 jetty-0_0_0_0-20020-x_meeting_assemble_control-_x_meeting_assemble_control-any-1127099769793522828 jetty-0_0_0_0-20020-x_message_assemble_communicate-_x_message_assemble_communicate-any-10037983978610625340 jetty-0_0_0_0-20020-x_mind_assemble_control-_x_mind_assemble_control-any-423063615980586691 jetty-0_0_0_0-20020-x_organization_assemble_authentication-_x_organization_assemble_authentication-any-123007329554389600 25 jetty-0_0_0_0-20020-x_organization_assemble_control-_x_organization_assemble_control-any-12258472447621810867 jetty-0_0_0_0-20020-x_organization_assemble_express-_x_organization_assemble_express-any-17986029628558929927 jetty-0_0_0_0-20020-x_organization_assemble_personal-_x_organization_assemble_personal-any-16918457028924151896 jetty-0_0_0_0-20020-x_portal_assemble_designer-_x_portal_assemble_designer-any-13429692129276913623 jetty-0_0_0_0-20020-x_portal_assemble_surface-_x_portal_assemble_surface-any-6270333874200088683 jetty-0_0_0_0-20020-x_processplatform_assemble_bam-_x_processplatform_assemble_bam-any-16065171067205649342 jetty-0_0_0_0-20020-x_processplatform_assemble_designer-_x_processplatform_assemble_designer-any-11586761423787850829 jetty-0_0_0_0-20020-x_processplatform_assemble_surface-_x_processplatform_assemble_surface-any-473180789500355109 jetty-0_0_0_0-20020-x_processplatform_service_processing-_x_processplatform_service_processing-any-15839910891407970856 jetty-0_0_0_0-20020-x_query_assemble_designer-_x_query_assemble_designer-any-3185858105938771852 jetty-0_0_0_0-20020-x_query_assemble_surface-_x_query_assemble_surface-any-13453447757807570949 jetty-0_0_0_0-20020-x_query_service_processing-_x_query_service_processing-any-10222876022100942768 jetty-0_0_0_0-20030-x_program_center-_x_program_center-any-10054628650975394021 jetty-0_0_0_0-80-webServer-_-any-3753679726251709024 nextcloud-24.0.4.zip ssh-4Um3kepl3YNH ssh-osYzZR3pl5ky systemd-private-09968d1ec4c04e41955d1592ab7b30ed-bolt.service-7ta1oG systemd-private-09968d1ec4c04e41955d1592ab7b30ed-chronyd.service-Yb0lYW systemd-private-09968d1ec4c04e41955d1592ab7b30ed-colord.service-kBUKXe systemd-private-09968d1ec4c04e41955d1592ab7b30ed-cups.service-YOHngk systemd-private-09968d1ec4c04e41955d1592ab7b30ed-fwupd.service-8eXKyn systemd-private-09968d1ec4c04e41955d1592ab7b30ed-httpd.service-hNiWDl systemd-private-09968d1ec4c04e41955d1592ab7b30ed-rtkit-daemon.service-4Q3QeH systemd-private-36b2cad41ff34358bb89df0835419236-chronyd.service-cNeI6f systemd-private-36b2cad41ff34358bb89df0835419236-cups.service-WFxRXX systemd-private-36b2cad41ff34358bb89df0835419236-rtkit-daemon.service-UqcvD3 systemd-private-36b2cad41ff34358bb89df0835419236-systemd-hostnamed.service-p0Kg2F systemd-private-36b2cad41ff34358bb89df0835419236-systemd-machined.service-Db7uFs systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-bolt.service-GMdMLh systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-chronyd.service-SYjvi9 systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-colord.service-zUn0IE systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-cups.service-gCZdv7 systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-fwupd.service-ZJ5gjC systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-rtkit-daemon.service-t97uDw Temp-2968e61f-cf04-41d1-8714-f2fcc06eaf46 Temp-721d8d8d-180d-4b81-afe5-d8ee4842027d tmpaddon tracker-extract-files.0 tracker-extract-files.1000 VMwareDnD vmware-root_753-4290035625 vmware-root_767-4256479648 vmware-root_774-2999002104 vmware-root_834-2722239005 yum_save_tx.2022-08-27.13-22.WkO6aM.yumtx yum_save_tx.2022-08-30.16-29.wtvnGD.yumtx yum_save_tx.2022-08-31.17-08.K3Oq3b.yumtx yum_save_tx.2022-08-31.20-10.5DGfP8.yumtx yum_save_tx.2022-09-02.21-37.QmzOqa.yumtx yum_save_tx.2022-09-02.21-52.5vb6WW.yumtx yum_save_tx.2022-09-03.06-28.sBK03V.yumtx yum_save_tx.2022-09-04.06-48.L2mW0x.yumtx yum_save_tx.2022-09-05.06-48.0g6RZ_.yumtx yum_save_tx.2022-09-06.06-48.JcohOj.yumtx [root@controller tmp]# ls default-ssl.conf default-ssl.conf [root@controller tmp]# docker cp default-ssl.conf nextcloud:/etc/apache2/sites-available/ [root@controller tmp]# docker exec -it e8e6900f83b1 /bin/bash root@e8e6900f83b1:/var/www/html# cd /etc/apache2/sites-available/ root@e8e6900f83b1:/etc/apache2/sites-available# cat default-ssl.conf <IfModule mod_ssl.c> <VirtualHost _default_:443> ServerAdmin webmaster@localhost DocumentRoot /var/www/html # Available loglevels: trace8, ..., trace1, debug, info, notice, warn, # error, crit, alert, emerg. # It is also possible to configure the loglevel for particular # modules, e.g. #LogLevel info ssl:warn ErrorLog ${APACHE_LOG_DIR}/error.log CustomLog ${APACHE_LOG_DIR}/access.log combined # For most configuration files from conf-available/, which are # enabled or disabled at a global level, it is possible to # include a line for only one particular virtual host. For example the # following line enables the CGI configuration for this host only # after it has been globally disabled with "a2disconf". #Include conf-available/serve-cgi-bin.conf # SSL Engine Switch: # Enable/Disable SSL for this virtual host. #SSLEngine on # A self-signed (snakeoil) certificate can be created by installing # the ssl-cert package. See # /usr/share/doc/apache2/README.Debian.gz for more info. # If both key and certificate are stored in the same file, only the # SSLCertificateFile directive is needed. # SSLCertificateFile /etc/ssl/certs/ssl-cert-snakeoil.pem # SSLCertificateKeyFile /etc/ssl/private/ssl-cert-snakeoil.key # Server Certificate Chain: # Point SSLCertificateChainFile at a file containing the # concatenation of PEM encoded CA certificates which form the # certificate chain for the server certificate. Alternatively # the referenced file can be the same as SSLCertificateFile # when the CA certificates are directly appended to the server # certificate for convinience. #SSLCertificateChainFile /etc/apache2/ssl.crt/server-ca.crt # Certificate Authority (CA): # Set the CA certificate verification path where to find CA # certificates for client authentication or alternatively one # huge file containing all of them (file must be PEM encoded) # Note: Inside SSLCACertificatePath you need hash symlinks # to point to the certificate files. Use the provided # Makefile to update the hash symlinks after changes. #SSLCACertificatePath /etc/ssl/certs/ #SSLCACertificateFile /etc/apache2/ssl.crt/ca-bundle.crt # Certificate Revocation Lists (CRL): # Set the CA revocation path where to find CA CRLs for client # authentication or alternatively one huge file containing all # of them (file must be PEM encoded) # Note: Inside SSLCARevocationPath you need hash symlinks # to point to the certificate files. Use the provided # Makefile to update the hash symlinks after changes. #SSLCARevocationPath /etc/apache2/ssl.crl/ #SSLCARevocationFile /etc/apache2/ssl.crl/ca-bundle.crl # Client Authentication (Type): # Client certificate verification type and depth. Types are # none, optional, require and optional_no_ca. Depth is a # number which specifies how deeply to verify the certificate # issuer chain before deciding the certificate is not valid. #SSLVerifyClient require #SSLVerifyDepth 10 # SSL Engine Options: # Set various options for the SSL engine. # o FakeBasicAuth: # Translate the client X.509 into a Basic Authorisation. This means that # the standard Auth/DBMAuth methods can be used for access control. The # user name is the `one line' version of the client's X.509 certificate. # Note that no password is obtained from the user. Every entry in the user # file needs this password: `xxj31ZMTZzkVA'. # o ExportCertData: # This exports two additional environment variables: SSL_CLIENT_CERT and # SSL_SERVER_CERT. These contain the PEM-encoded certificates of the # server (always existing) and the client (only existing when client # authentication is used). This can be used to import the certificates # into CGI scripts. # o StdEnvVars: # This exports the standard SSL/TLS related `SSL_*' environment variables. # Per default this exportation is switched off for performance reasons, # because the extraction step is an expensive operation and is usually # useless for serving static content. So one usually enables the # exportation for CGI and SSI requests only. # o OptRenegotiate: # This enables optimized SSL connection renegotiation handling when SSL # directives are used in per-directory context. #SSLOptions +FakeBasicAuth +ExportCertData +StrictRequire <FilesMatch "\.(cgi|shtml|phtml|php)$"> SSLOptions +StdEnvVars </FilesMatch> <Directory /usr/lib/cgi-bin> SSLOptions +StdEnvVars </Directory> # SSL Protocol Adjustments: # The safe and default but still SSL/TLS standard compliant shutdown # approach is that mod_ssl sends the close notify alert but doesn't wait for # the close notify alert from client. When you need a different shutdown # approach you can use one of the following variables: # o ssl-unclean-shutdown: # This forces an unclean shutdown when the connection is closed, i.e. no # SSL close notify alert is send or allowed to received. This violates # the SSL/TLS standard but is needed for some brain-dead browsers. Use # this when you receive I/O errors because of the standard approach where # mod_ssl sends the close notify alert. # o ssl-accurate-shutdown: # This forces an accurate shutdown when the connection is closed, i.e. a # SSL close notify alert is send and mod_ssl waits for the close notify # alert of the client. This is 100% SSL/TLS standard compliant, but in # practice often causes hanging connections with brain-dead browsers. Use # this only for browsers where you know that their SSL implementation # works correctly. # Notice: Most problems of broken clients are also related to the HTTP # keep-alive facility, so you usually additionally want to disable # keep-alive for those clients, too. Use variable "nokeepalive" for this. # Similarly, one has to force some clients to use HTTP/1.0 to workaround # their broken HTTP/1.1 implementation. Use variables "downgrade-1.0" and # "force-response-1.0" for this. # BrowserMatch "MSIE [2-6]" \ # nokeepalive ssl-unclean-shutdown \ # downgrade-1.0 force-response-1.0 </VirtualHost> </IfModule> #SSLProtocol all -SSLv2 -SSLv3 #SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM #SSLEngine on #SSLCertificateFile /etc/apache2/cert/onlyoffice.crt #SSLCertificateKeyFile /etc/appache2/cert/onlyoffice.key #SSLCertificateChainFile /etc/apache2/cert/onlyoffice.crt SLProtocol all -SSLv2 -SSLv3 SSLCipherSuite HIGH:!RC4:!MD5:!aNULL:!eNULL:!NULL:!DH:!EDH:!EXP:+MEDIUM SSLEngine on SSLCertificateFile /etc/apache2/cert/public.crt SSLCertificateKeyFile /etc/apache2/cert/web.key SSLCertificateChainFile /etc/apache2/cert/chain.crt # vim: syntax=apache ts=4 sw=4 sts=4 sr noet root@e8e6900f83b1:/etc/apache2/sites-available# service apache2 reload Reloading Apache httpd web server: apache2 failed! The apache2 configtest failed. Not doing anything. ... (warning). Output of config test was: AH00526: Syntax error on line 142 of /etc/apache2/sites-enabled/default-ssl.conf: Invalid command 'SLProtocol', perhaps misspelled or defined by a module not included in the server configuration Action 'configtest' failed. The Apache error log may have more information. root@e8e6900f83b1:/etc/apache2/sites-available# /etc/init.d/apache2 restart Restarting Apache httpd web server: apache2Terminated root@e8e6900f83b1:/etc/apache2/sites-available# [root@controller tmp]# [root@controller tmp]# vi default-ssl.conf [root@controller tmp]# vi default-ssl.conf [root@controller tmp]# docker cp default-ssl.conf nextcloud:/etc/apache2/sites-available/ [root@controller tmp]# /etc/init.d/apache2 restart -bash: /etc/init.d/apache2: 没有那个文件或目录 [root@controller tmp]# docker exec -it e8e6900f83b1 /bin/bash ]Error response from daemon: Container e8e6900f83b10f564f7b201fe7f38bfa4289372305db2f22cc81fe7e4781ca3c is not running [root@controller tmp]# docker exec -it e8e6900f83b1 /bin/bash Error response from daemon: Container e8e6900f83b10f564f7b201fe7f38bfa4289372305db2f22cc81fe7e4781ca3c is not running [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" About an hour ago Exited (0) 2 minutes ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 19 hours ago Up 19 hours 0.0.0. 0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/ tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker restart e8e6900f83b1 e8e6900f83b1 [root@controller tmp]# docker exec -it e8e6900f83b1 /bin/bash Error response from daemon: Container e8e6900f83b10f564f7b201fe7f38bfa4289372305db2f22cc81fe7e4781ca3c is not running [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" About an hour ago Exited (1) 24 seconds ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 19 hours ago Up 19 hours 0.0.0 .0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060 /tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker exec -it e8e6900f83b1 /bin/bash Container e8e6900f83b10f564f7b201fe7f38bfa4289372305db2f22c c81fe7e4781ca3c is not running^C [root@controller tmp]# docker start e8e6900f83b1 e8e6900f83b1 [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" About an hour ago Exited (1) 2 seconds ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 19 hours ago Up 19 hours 0.0.0. 0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/ tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker logs -f "docker logs" requires exactly 1 argument. See 'docker logs --help'. Usage: docker logs [OPTIONS] CONTAINER Fetch the logs of a container [root@controller tmp]# docker logs -f e8e6900f83b1 Initializing nextcloud 24.0.4.1 ... New nextcloud instance Initializing finished AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message [Tue Sep 06 07:22:12.944309 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.22 configured -- r esuming normal operations [Tue Sep 06 07:22:12.944347 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' [Tue Sep 06 08:26:40.701513 2022] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty [root@controller tmp]# vi default-ssl.conf [root@controller tmp]# docker start e8e6900f83b1 e8e6900f83b1 [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" About an hour ago Exited (1) 6 seconds ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 19 hours ago Up 19 hours 0.0.0. 0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/ tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker logs -f e8e6900f83b1 Initializing nextcloud 24.0.4.1 ... New nextcloud instance Initializing finished AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message [Tue Sep 06 07:22:12.944309 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.22 configured -- r esuming normal operations [Tue Sep 06 07:22:12.944347 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' [Tue Sep 06 08:26:40.701513 2022] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty [root@controller tmp]# docker cp default-ssl.conf nextcloud:/etc/apache2/sites-available/ [root@controller tmp]# docker start e8e6900f83b1 e8e6900f83b1 [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" About an hour ago Exited (1) 3 seconds ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 19 hours ago Up 19 hours 0.0.0. 0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/ tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker logs -f e8e6900f83b1 Initializing nextcloud 24.0.4.1 ... New nextcloud instance Initializing finished AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message [Tue Sep 06 07:22:12.944309 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.22 configured -- r esuming normal operations [Tue Sep 06 07:22:12.944347 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' [Tue Sep 06 08:26:40.701513 2022] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 32 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/ssl/certs/ssl-cert-snakeoil.pem' does not exist or is empty [root@controller tmp]# vi default-ssl.conf [root@controller tmp]# docker cp default-ssl.conf nextcloud:/etc/apache2/sites-available/ [root@controller tmp]# docker start e8e6900f83b1 e8e6900f83b1 [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" About an hour ago Exited (1) 3 seconds ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 19 hours ago Up 19 hours 0.0.0. 0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/ tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker logs -f e8e6900f83b1 Initializing nextcloud 24.0.4.1 ... New nextcloud instance Initializing finished AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message [Tue Sep 06 07:22:12.944309 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.22 configured -- r esuming normal operations [Tue Sep 06 07:22:12.944347 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' [Tue Sep 06 08:26:40.701513 2022] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 32 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/ssl/certs/ssl-cert-snakeoil.pem' does not exist or is empty AH00526: Syntax error on line 32 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/ssl/certs/ssl-cert-snakeoil.pem' does not exist or is empty [root@controller tmp]# vi default-ssl.conf [root@controller tmp]# docker cp default-ssl.conf nextcloud:/etc/apache2/sites-available/ [root@controller tmp]# docker start e8e6900f83b1 e8e6900f83b1 [root@controller tmp]# docker logs -f e8e6900f83b1 Initializing nextcloud 24.0.4.1 ... New nextcloud instance Initializing finished AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message [Tue Sep 06 07:22:12.944309 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.22 configured -- r esuming normal operations [Tue Sep 06 07:22:12.944347 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' [Tue Sep 06 08:26:40.701513 2022] [mpm_prefork:notice] [pid 1] AH00169: caught SIGTERM, shutting down AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 145 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/apache2/cert/public.crt' does not exist or is empty AH00526: Syntax error on line 32 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/ssl/certs/ssl-cert-snakeoil.pem' does not exist or is empty AH00526: Syntax error on line 32 of /etc/apache2/sites-enabled/default-ssl.conf: SSLCertificateFile: file '/etc/ssl/certs/ssl-cert-snakeoil.pem' does not exist or is empty AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message [Tue Sep 06 08:40:02.777545 2022] [ssl:warn] [pid 1] AH01909: 172.17.0.4:443:0 server certificate does NOT include an ID which matches the server name [Tue Sep 06 08:40:02.777918 2022] [ssl:warn] [pid 1] AH01909: 172.17.0.4:443:0 server certificate does NOT include an ID which matches the server name [Tue Sep 06 08:40:02.778140 2022] [ssl:warn] [pid 1] AH01909: 172.17.0.4:80:0 server certificate does NOT include an ID w hich matches the server name [Tue Sep 06 08:40:02.778167 2022] [ssl:warn] [pid 1] AH01915: Init: (172.17.0.4:80) You configured HTTPS(443) on the stan dard HTTP(80) port! AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.4. Set the 'Serve rName' directive globally to suppress this message [Tue Sep 06 08:40:02.805966 2022] [ssl:warn] [pid 1] AH01909: 172.17.0.4:443:0 server certificate does NOT include an ID which matches the server name [Tue Sep 06 08:40:02.806201 2022] [ssl:warn] [pid 1] AH01909: 172.17.0.4:443:0 server certificate does NOT include an ID which matches the server name [Tue Sep 06 08:40:02.806431 2022] [ssl:warn] [pid 1] AH01909: 172.17.0.4:80:0 server certificate does NOT include an ID w hich matches the server name [Tue Sep 06 08:40:02.806460 2022] [ssl:warn] [pid 1] AH01915: Init: (172.17.0.4:80) You configured HTTPS(443) on the stan dard HTTP(80) port! [Tue Sep 06 08:40:02.808461 2022] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.54 (Debian) PHP/8.0.22 OpenSSL/1.1.1n configured -- resuming normal operations [Tue Sep 06 08:40:02.808481 2022] [core:notice] [pid 1] AH00094: Command line: 'apache2 -D FOREGROUND' dd^C [root@controller tmp]# docker start e8e6900f83b1 e8e6900f83b1 [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" About an hour ago Up 21 seconds 0.0.0.0:8083->80/ tcp, :::8083->80/tcp, 0.0.0.0:9000->443/tcp, :::9000->443/tcp nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 19 hours ago Up 19 hours 0.0.0.0:8008->80/ tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0. 0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker exec -it e8e6900f83b1 /bin/bash root@e8e6900f83b1:/var/www/html# /etc/init.d/apache2 restart Restarting Apache httpd web server: apache2Terminated root@e8e6900f83b1:/var/www/html# [root@controller tmp]# ls default-ssl.conf hsperfdata_root jetty-0_0_0_0-20020-x_attendance_assemble_control-_x_attendance_assemble_control-any-5487304973201362601 jetty-0_0_0_0-20020-x_bbs_assemble_control-_x_bbs_assemble_control-any-13373972949403097973 jetty-0_0_0_0-20020-x_calendar_assemble_control-_x_calendar_assemble_control-any-10034654095329511101 jetty-0_0_0_0-20020-x_cms_assemble_control-_x_cms_assemble_control-any-16524870214547273986 jetty-0_0_0_0-20020-x_component_assemble_control-_x_component_assemble_control-any-6496567976447608141 jetty-0_0_0_0-20020-x_file_assemble_control-_x_file_assemble_control-any-1869164148854349652 jetty-0_0_0_0-20020-x_general_assemble_control-_x_general_assemble_control-any-18081563064353435714 jetty-0_0_0_0-20020-x_hotpic_assemble_control-_x_hotpic_assemble_control-any-2955903243605679855 jetty-0_0_0_0-20020-x_jpush_assemble_control-_x_jpush_assemble_control-any-8267267305904477141 jetty-0_0_0_0-20020-x_meeting_assemble_control-_x_meeting_assemble_control-any-1127099769793522828 jetty-0_0_0_0-20020-x_message_assemble_communicate-_x_message_assemble_communicate-any-10037983978610625340 jetty-0_0_0_0-20020-x_mind_assemble_control-_x_mind_assemble_control-any-423063615980586691 jetty-0_0_0_0-20020-x_organization_assemble_authentication-_x_organization_assemble_authentication-any-123007329554389600 25 jetty-0_0_0_0-20020-x_organization_assemble_control-_x_organization_assemble_control-any-12258472447621810867 jetty-0_0_0_0-20020-x_organization_assemble_express-_x_organization_assemble_express-any-17986029628558929927 jetty-0_0_0_0-20020-x_organization_assemble_personal-_x_organization_assemble_personal-any-16918457028924151896 jetty-0_0_0_0-20020-x_portal_assemble_designer-_x_portal_assemble_designer-any-13429692129276913623 jetty-0_0_0_0-20020-x_portal_assemble_surface-_x_portal_assemble_surface-any-6270333874200088683 jetty-0_0_0_0-20020-x_processplatform_assemble_bam-_x_processplatform_assemble_bam-any-16065171067205649342 jetty-0_0_0_0-20020-x_processplatform_assemble_designer-_x_processplatform_assemble_designer-any-11586761423787850829 jetty-0_0_0_0-20020-x_processplatform_assemble_surface-_x_processplatform_assemble_surface-any-473180789500355109 jetty-0_0_0_0-20020-x_processplatform_service_processing-_x_processplatform_service_processing-any-15839910891407970856 jetty-0_0_0_0-20020-x_query_assemble_designer-_x_query_assemble_designer-any-3185858105938771852 jetty-0_0_0_0-20020-x_query_assemble_surface-_x_query_assemble_surface-any-13453447757807570949 jetty-0_0_0_0-20020-x_query_service_processing-_x_query_service_processing-any-10222876022100942768 jetty-0_0_0_0-20030-x_program_center-_x_program_center-any-10054628650975394021 jetty-0_0_0_0-80-webServer-_-any-3753679726251709024 nextcloud-24.0.4.zip ssh-4Um3kepl3YNH ssh-osYzZR3pl5ky systemd-private-09968d1ec4c04e41955d1592ab7b30ed-bolt.service-7ta1oG systemd-private-09968d1ec4c04e41955d1592ab7b30ed-chronyd.service-Yb0lYW systemd-private-09968d1ec4c04e41955d1592ab7b30ed-colord.service-kBUKXe systemd-private-09968d1ec4c04e41955d1592ab7b30ed-cups.service-YOHngk systemd-private-09968d1ec4c04e41955d1592ab7b30ed-fwupd.service-8eXKyn systemd-private-09968d1ec4c04e41955d1592ab7b30ed-httpd.service-hNiWDl systemd-private-09968d1ec4c04e41955d1592ab7b30ed-rtkit-daemon.service-4Q3QeH systemd-private-36b2cad41ff34358bb89df0835419236-chronyd.service-cNeI6f systemd-private-36b2cad41ff34358bb89df0835419236-cups.service-WFxRXX systemd-private-36b2cad41ff34358bb89df0835419236-rtkit-daemon.service-UqcvD3 systemd-private-36b2cad41ff34358bb89df0835419236-systemd-hostnamed.service-p0Kg2F systemd-private-36b2cad41ff34358bb89df0835419236-systemd-machined.service-Db7uFs systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-bolt.service-GMdMLh systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-chronyd.service-SYjvi9 systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-colord.service-zUn0IE systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-cups.service-gCZdv7 systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-fwupd.service-ZJ5gjC systemd-private-fea35a43f6dd4586b6bbe96962e0abe1-rtkit-daemon.service-t97uDw Temp-2968e61f-cf04-41d1-8714-f2fcc06eaf46 Temp-721d8d8d-180d-4b81-afe5-d8ee4842027d tmpaddon tracker-extract-files.0 tracker-extract-files.1000 VMwareDnD vmware-root_753-4290035625 vmware-root_767-4256479648 vmware-root_774-2999002104 vmware-root_834-2722239005 yum_save_tx.2022-08-27.13-22.WkO6aM.yumtx yum_save_tx.2022-08-30.16-29.wtvnGD.yumtx yum_save_tx.2022-08-31.17-08.K3Oq3b.yumtx yum_save_tx.2022-08-31.20-10.5DGfP8.yumtx yum_save_tx.2022-09-02.21-37.QmzOqa.yumtx yum_save_tx.2022-09-02.21-52.5vb6WW.yumtx yum_save_tx.2022-09-03.06-28.sBK03V.yumtx yum_save_tx.2022-09-04.06-48.L2mW0x.yumtx yum_save_tx.2022-09-05.06-48.0g6RZ_.yumtx yum_save_tx.2022-09-06.06-48.JcohOj.yumtx [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" 2 hours ago Exited (0) 13 minutes ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 20 hours ago Up 20 hours 0.0.0.0:80 08->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" 2 hours ago Exited (0) 13 minutes ago nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 20 hours ago Up 20 hours 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker start e8e6900f83b1 e8e6900f83b1 [root@controller tmp]# docker ps -a CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES e8e6900f83b1 nextcloud "/entrypoint.sh apac…" 2 hours ago Up 2 seconds 0.0.0.0:8083->80/tcp, :::8083->80/tcp, 0.0.0.0:9000->443/tcp, :::9000->443/tcp nextcloud 1f0769ee068d onlyoffice/documentserver "/app/ds/run-documen…" 20 hours ago Up 20 hours 0.0.0.0:8008->80/tcp, :::8008->80/tcp, 0.0.0.0:8443->443/tcp, :::8443->443/tcp reverent_ishizaka b3e7df01fd0f mysql:8.0 "docker-entrypoint.s…" 5 days ago Up 2 days 33060/tcp, 0.0.0.0:3307->3306/tcp, :::3307->3306/tcp mysql [root@controller tmp]# docker exec -it b3e7df01fd0f /bin/bash bash-4.4# mysql -uroot -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) bash-4.4# mysql -uroot -p Enter password: ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES) bash-4.4# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 10 Server version: 8.0.30 MySQL Community Server - GPL Copyright (c) 2000, 2022, Oracle and/or its affiliates. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. mysql> show database; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'database' at line 1 mysql> show databases; +--------------------+ | Database | +--------------------+ | information_schema | | mysql | | nextcloud | | performance_schema | | sys | +--------------------+ 5 rows in set (0.07 sec) mysql> use nextcloud' ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''' at line 1 mysql> use nextcloud Database changed mysql> show tables; Empty set (0.00 sec) mysql> show table -> ; ERROR 1064 (42000): You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1 mysql>
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。