0
点赞
收藏
分享

微信扫一扫

What is NocoDB, NocoDB is an open source platform that turns any database into a smart spreadsheet

NocoDB is an open source #NoCode platform that turns any database into a smart spreadsheet

Prerequisites

  • Must haves

    • node.js >= 12 / Docker
    • MySql / Postgres / SQLserver / SQLite Database
  • Nice to haves

    • Existing schemas can help to create APIs quickly.
    • An example database schema can be found here.

How to install on Ubuntu20.04

Step 1: git clone from github

root@SecondaryDataUse:~# pwd

/root

root@SecondaryDataUse:~# docker --version

Docker version 20.10.12, build e91ed57

root@SecondaryDataUse:~# git clone https://github.com/nocodb/nocodb

Cloning into 'nocodb'...

remote: Enumerating objects: 19393, done.

remote: Counting objects: 100% (19393/19393), done.

remote: Compressing objects: 100% (4904/4904), done.

remote: Total 19393 (delta 14256), reused 19179 (delta 14123), pack-reused 0

Receiving objects: 100% (19393/19393), 55.83 MiB | 11.48 MiB/s, done.

Resolving deltas: 100% (14256/14256), done.

Step 2: Install

root@SecondaryDataUse:~/nocodb# ls
docker-compose  lerna.json  LICENSE  package.json  package-lock.json  packages  README.md  scripts
root@SecondaryDataUse:~/nocodb# cd docker-compose/
root@SecondaryDataUse:~/nocodb/docker-compose# ls
letsencrypt  mssql  mysql  nginx-proxy-manager  pg  traefik
root@SecondaryDataUse:~/nocodb/docker-compose# pwd
/root/nocodb/docker-compose
root@SecondaryDataUse:~/nocodb/docker-compose# cd mysql/
root@SecondaryDataUse:~/nocodb/docker-compose/mysql# pwd
/root/nocodb/docker-compose/mysql
root@SecondaryDataUse:~/nocodb/docker-compose/mysql# ls
docker-compose.yml
root@SecondaryDataUse:~/nocodb/docker-compose/mysql# docker-compose up
Creating network "mysql_default" with the default driver
Creating volume "mysql_db_data" with default driver
Pulling root_db (mysql:5.7)...
5.7: Pulling from library/mysql
6552179c3509: Pull complete
d69aa66e4482: Pull complete
3b19465b002b: Pull complete
7b0d0cfe99a1: Pull complete
9ccd5a5c8987: Pull complete
2dab00d7d232: Pull complete
64d3afdccd4a: Pull complete
6992e58be0f2: Pull complete
67313986b81d: Pull complete
7c36a23db0a4: Pull complete
d34c396e3198: Pull complete
Digest: sha256:afc453de0d675083ac00d0538521f8a9a67d1cce180d70fab9925ebcc87a0eba
Status: Downloaded newer image for mysql:5.7
Pulling nocodb (nocodb/nocodb:latest)...
latest: Pulling from nocodb/nocodb
8572bc8fb8a3: Pull complete
1d839be1404d: Pull complete
856db2b5a5cb: Pull complete
288c08332050: Pull complete
f230aace0d23: Pull complete
Digest: sha256:349a00c8d0b09d9190c2daad29d56b63bd3300df3434a11aa76dc00d965abe15
Status: Downloaded newer image for nocodb/nocodb:latest
Creating mysql_root_db_1 ... done
Creating mysql_nocodb_1  ...
Creating mysql_nocodb_1  ... error

ERROR: for mysql_nocodb_1  Cannot start service nocodb: driver failed programming external connectivity on endpoint mysql_nocodb_1 (53120eddc397559f92e7eb94f38037307260044281a9b3ac2efa7c6f8352ec3e): Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use

ERROR: for nocodb  Cannot start service nocodb: driver failed programming external connectivity on endpoint mysql_nocodb_1 (53120eddc397559f92e7eb94f38037307260044281a9b3ac2efa7c6f8352ec3e): Error starting userland proxy: listen tcp4 0.0.0.0:8080: bind: address already in use
ERROR: Encountered errors while bringing up the project.
root@SecondaryDataUse:~/nocodb/docker-compose/mysql#

Fail reason: Because the port 8080 is using.

Check List Linux port with the command line:

root@SecondaryDataUse:~# netstat -ltnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      562/sshd: /usr/sbin
tcp        0      0 0.0.0.0:5432            0.0.0.0:*               LISTEN      1864680/postgres
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      1590294/docker-prox
tcp        0      0 0.0.0.0:8793            0.0.0.0:*               LISTEN      21740/gunicorn: mas
tcp        0      0 127.0.0.1:36829         0.0.0.0:*               LISTEN      1411629/uwsgi
tcp        0      0 127.0.0.1:8800          0.0.0.0:*               LISTEN      1402003/uwsgi
tcp        0      0 127.0.0.1:33060         0.0.0.0:*               LISTEN      703/mysqld
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      703/mysqld
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      1394809/redis-serve
tcp        0      0 127.0.0.1:42989         0.0.0.0:*               LISTEN      1402003/uwsgi
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      1411629/uwsgi
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1402500/nginx: mast
tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      21678/gunicorn: mas
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      446/systemd-resolve
tcp6       0      0 :::8983                 :::*                    LISTEN      1400838/java
tcp6       0      0 :::5432                 :::*                    LISTEN      1864680/postgres
tcp6       0      0 :::8088                 :::*                    LISTEN      1590305/docker-prox
tcp6       0      0 ::1:6379                :::*                    LISTEN      1394809/redis-serve
root@SecondaryDataUse:~#

Change the port: from 8080 to 9090 in docker-compose.yml

root@SecondaryDataUse:~/nocodb/docker-compose/mysql# ls

docker-compose.yml

root@SecondaryDataUse:~/nocodb/docker-compose/mysql# cp docker-compose.yml docker-compose.yml.original.27012022

root@SecondaryDataUse:~/nocodb/docker-compose/mysql# pwd

/root/nocodb/docker-compose/mysql

root@SecondaryDataU

Change to:

Restart the nocodb:

root@SecondaryDataUse:~/nocodb/docker-compose/mysql# pwd
/root/nocodb/docker-compose/mysql
root@SecondaryDataUse:~/nocodb/docker-compose/mysql# docker-compose up
mysql_root_db_1 is up-to-date
Recreating mysql_nocodb_1 ... done
Attaching to mysql_root_db_1, mysql_nocodb_1
root_db_1  | 2022-01-27 07:07:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
root_db_1  | 2022-01-27 07:07:41+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql'
root_db_1  | 2022-01-27 07:07:41+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.37-1debian10 started.
root_db_1  | 2022-01-27 07:07:42+00:00 [Note] [Entrypoint]: Initializing database files
root_db_1  | 2022-01-27T07:07:42.061074Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
root_db_1  | 2022-01-27T07:07:43.082394Z 0 [Warning] InnoDB: New log files created, LSN=45790
root_db_1  | 2022-01-27T07:07:43.241824Z 0 [Warning] InnoDB: Creating foreign key constraint system tables.
root_db_1  | 2022-01-27T07:07:43.308868Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: d282a9c0-7f3f-11ec-8a96-0242ac130002.
root_db_1  | 2022-01-27T07:07:43.311973Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened.
root_db_1  | 2022-01-27T07:07:44.023459Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
root_db_1  | 2022-01-27T07:07:44.023490Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
root_db_1  | 2022-01-27T07:07:44.024042Z 0 [Warning] CA certificate ca.pem is self signed.
root_db_1  | 2022-01-27T07:07:44.364099Z 1 [Warning] root@localhost is created with an empty password ! Please consider switching off the --initialize-insecure option.
root_db_1  | 2022-01-27 07:07:47+00:00 [Note] [Entrypoint]: Database files initialized
root_db_1  | 2022-01-27 07:07:47+00:00 [Note] [Entrypoint]: Starting temporary server
root_db_1  | 2022-01-27 07:07:47+00:00 [Note] [Entrypoint]: Waiting for server startup
root_db_1  | 2022-01-27T07:07:47.657639Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
root_db_1  | 2022-01-27T07:07:47.660008Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 78 ...
root_db_1  | 2022-01-27T07:07:47.663449Z 0 [Note] InnoDB: PUNCH HOLE support available
root_db_1  | 2022-01-27T07:07:47.663476Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
root_db_1  | 2022-01-27T07:07:47.663479Z 0 [Note] InnoDB: Uses event mutexes
root_db_1  | 2022-01-27T07:07:47.663482Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
root_db_1  | 2022-01-27T07:07:47.663486Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
root_db_1  | 2022-01-27T07:07:47.663488Z 0 [Note] InnoDB: Using Linux native AIO
root_db_1  | 2022-01-27T07:07:47.663774Z 0 [Note] InnoDB: Number of pools: 1
root_db_1  | 2022-01-27T07:07:47.663924Z 0 [Note] InnoDB: Using CPU crc32 instructions
root_db_1  | 2022-01-27T07:07:47.666088Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
root_db_1  | 2022-01-27T07:07:47.677228Z 0 [Note] InnoDB: Completed initialization of buffer pool
root_db_1  | 2022-01-27T07:07:47.680346Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
root_db_1  | 2022-01-27T07:07:47.692672Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
root_db_1  | 2022-01-27T07:07:47.707402Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
root_db_1  | 2022-01-27T07:07:47.707461Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
root_db_1  | 2022-01-27T07:07:47.780014Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
root_db_1  | 2022-01-27T07:07:47.780970Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
root_db_1  | 2022-01-27T07:07:47.780990Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
root_db_1  | 2022-01-27T07:07:47.781356Z 0 [Note] InnoDB: Waiting for purge to start
root_db_1  | 2022-01-27T07:07:47.831548Z 0 [Note] InnoDB: 5.7.37 started; log sequence number 2750645
root_db_1  | 2022-01-27T07:07:47.831847Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
root_db_1  | 2022-01-27T07:07:47.832004Z 0 [Note] Plugin 'FEDERATED' is disabled.
root_db_1  | 2022-01-27T07:07:47.833841Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220127  7:07:47
root_db_1  | 2022-01-27T07:07:47.840386Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
root_db_1  | 2022-01-27T07:07:47.840412Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
root_db_1  | 2022-01-27T07:07:47.840417Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
root_db_1  | 2022-01-27T07:07:47.840419Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
root_db_1  | 2022-01-27T07:07:47.840996Z 0 [Warning] CA certificate ca.pem is self signed.
root_db_1  | 2022-01-27T07:07:47.841038Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
root_db_1  | 2022-01-27T07:07:47.846610Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
root_db_1  | 2022-01-27T07:07:47.854765Z 0 [Note] Event Scheduler: Loaded 0 events
root_db_1  | 2022-01-27T07:07:47.854981Z 0 [Note] mysqld: ready for connections.
root_db_1  | Version: '5.7.37'  socket: '/var/run/mysqld/mysqld.sock'  port: 0  MySQL Community Server (GPL)
root_db_1  | 2022-01-27 07:07:48+00:00 [Note] [Entrypoint]: Temporary server started.
root_db_1  | Warning: Unable to load '/usr/share/zoneinfo/iso3166.tab' as time zone. Skipping it.
root_db_1  | Warning: Unable to load '/usr/share/zoneinfo/leap-seconds.list' as time zone. Skipping it.
root_db_1  | Warning: Unable to load '/usr/share/zoneinfo/zone.tab' as time zone. Skipping it.
root_db_1  | Warning: Unable to load '/usr/share/zoneinfo/zone1970.tab' as time zone. Skipping it.
root_db_1  | 2022-01-27 07:07:50+00:00 [Note] [Entrypoint]: Creating database root_db
root_db_1  | 2022-01-27 07:07:50+00:00 [Note] [Entrypoint]: Creating user noco
root_db_1  | 2022-01-27 07:07:50+00:00 [Note] [Entrypoint]: Giving user noco access to schema root_db
root_db_1  |
root_db_1  | 2022-01-27 07:07:50+00:00 [Note] [Entrypoint]: Stopping temporary server
root_db_1  | 2022-01-27T07:07:50.997704Z 0 [Note] Giving 0 client threads a chance to die gracefully
root_db_1  | 2022-01-27T07:07:50.997742Z 0 [Note] Shutting down slave threads
root_db_1  | 2022-01-27T07:07:50.997747Z 0 [Note] Forcefully disconnecting 0 remaining clients
root_db_1  | 2022-01-27T07:07:50.997755Z 0 [Note] Event Scheduler: Purging the queue. 0 events
root_db_1  | 2022-01-27T07:07:50.997852Z 0 [Note] Binlog end
root_db_1  | 2022-01-27T07:07:50.998691Z 0 [Note] Shutting down plugin 'ngram'
root_db_1  | 2022-01-27T07:07:50.998709Z 0 [Note] Shutting down plugin 'partition'
root_db_1  | 2022-01-27T07:07:50.998713Z 0 [Note] Shutting down plugin 'BLACKHOLE'
root_db_1  | 2022-01-27T07:07:50.998718Z 0 [Note] Shutting down plugin 'ARCHIVE'
root_db_1  | 2022-01-27T07:07:50.998721Z 0 [Note] Shutting down plugin 'PERFORMANCE_SCHEMA'
root_db_1  | 2022-01-27T07:07:50.998764Z 0 [Note] Shutting down plugin 'MRG_MYISAM'
root_db_1  | 2022-01-27T07:07:50.998767Z 0 [Note] Shutting down plugin 'MyISAM'
root_db_1  | 2022-01-27T07:07:50.998776Z 0 [Note] Shutting down plugin 'INNODB_SYS_VIRTUAL'
root_db_1  | 2022-01-27T07:07:50.998780Z 0 [Note] Shutting down plugin 'INNODB_SYS_DATAFILES'
root_db_1  | 2022-01-27T07:07:50.998782Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESPACES'
root_db_1  | 2022-01-27T07:07:50.998785Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN_COLS'
root_db_1  | 2022-01-27T07:07:50.998788Z 0 [Note] Shutting down plugin 'INNODB_SYS_FOREIGN'
root_db_1  | 2022-01-27T07:07:50.998791Z 0 [Note] Shutting down plugin 'INNODB_SYS_FIELDS'
root_db_1  | 2022-01-27T07:07:50.998794Z 0 [Note] Shutting down plugin 'INNODB_SYS_COLUMNS'
root_db_1  | 2022-01-27T07:07:50.998797Z 0 [Note] Shutting down plugin 'INNODB_SYS_INDEXES'
root_db_1  | 2022-01-27T07:07:50.998800Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLESTATS'
root_db_1  | 2022-01-27T07:07:50.998803Z 0 [Note] Shutting down plugin 'INNODB_SYS_TABLES'
root_db_1  | 2022-01-27T07:07:50.998806Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_TABLE'
root_db_1  | 2022-01-27T07:07:50.998808Z 0 [Note] Shutting down plugin 'INNODB_FT_INDEX_CACHE'
root_db_1  | 2022-01-27T07:07:50.998811Z 0 [Note] Shutting down plugin 'INNODB_FT_CONFIG'
root_db_1  | 2022-01-27T07:07:50.998814Z 0 [Note] Shutting down plugin 'INNODB_FT_BEING_DELETED'
root_db_1  | 2022-01-27T07:07:50.998817Z 0 [Note] Shutting down plugin 'INNODB_FT_DELETED'
root_db_1  | 2022-01-27T07:07:50.998820Z 0 [Note] Shutting down plugin 'INNODB_FT_DEFAULT_STOPWORD'
root_db_1  | 2022-01-27T07:07:50.998823Z 0 [Note] Shutting down plugin 'INNODB_METRICS'
root_db_1  | 2022-01-27T07:07:50.998825Z 0 [Note] Shutting down plugin 'INNODB_TEMP_TABLE_INFO'
root_db_1  | 2022-01-27T07:07:50.998828Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_POOL_STATS'
root_db_1  | 2022-01-27T07:07:50.998831Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE_LRU'
root_db_1  | 2022-01-27T07:07:50.998833Z 0 [Note] Shutting down plugin 'INNODB_BUFFER_PAGE'
root_db_1  | 2022-01-27T07:07:50.998837Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX_RESET'
root_db_1  | 2022-01-27T07:07:50.998839Z 0 [Note] Shutting down plugin 'INNODB_CMP_PER_INDEX'
root_db_1  | 2022-01-27T07:07:50.998842Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM_RESET'
root_db_1  | 2022-01-27T07:07:50.998845Z 0 [Note] Shutting down plugin 'INNODB_CMPMEM'
root_db_1  | 2022-01-27T07:07:50.998848Z 0 [Note] Shutting down plugin 'INNODB_CMP_RESET'
root_db_1  | 2022-01-27T07:07:50.998851Z 0 [Note] Shutting down plugin 'INNODB_CMP'
root_db_1  | 2022-01-27T07:07:50.998853Z 0 [Note] Shutting down plugin 'INNODB_LOCK_WAITS'
root_db_1  | 2022-01-27T07:07:50.998856Z 0 [Note] Shutting down plugin 'INNODB_LOCKS'
root_db_1  | 2022-01-27T07:07:50.998859Z 0 [Note] Shutting down plugin 'INNODB_TRX'
root_db_1  | 2022-01-27T07:07:50.998862Z 0 [Note] Shutting down plugin 'InnoDB'
root_db_1  | 2022-01-27T07:07:50.998923Z 0 [Note] InnoDB: FTS optimize thread exiting.
root_db_1  | 2022-01-27T07:07:50.999072Z 0 [Note] InnoDB: Starting shutdown...
root_db_1  | 2022-01-27T07:07:51.099284Z 0 [Note] InnoDB: Dumping buffer pool(s) to /var/lib/mysql/ib_buffer_pool
root_db_1  | 2022-01-27T07:07:51.099529Z 0 [Note] InnoDB: Buffer pool(s) dump completed at 220127  7:07:51
root_db_1  | 2022-01-27T07:07:52.716225Z 0 [Note] InnoDB: Shutdown completed; log sequence number 12660567
root_db_1  | 2022-01-27T07:07:52.718261Z 0 [Note] InnoDB: Removed temporary tablespace data file: "ibtmp1"
root_db_1  | 2022-01-27T07:07:52.718282Z 0 [Note] Shutting down plugin 'MEMORY'
root_db_1  | 2022-01-27T07:07:52.718288Z 0 [Note] Shutting down plugin 'CSV'
root_db_1  | 2022-01-27T07:07:52.718292Z 0 [Note] Shutting down plugin 'sha256_password'
root_db_1  | 2022-01-27T07:07:52.718294Z 0 [Note] Shutting down plugin 'mysql_native_password'
root_db_1  | 2022-01-27T07:07:52.718440Z 0 [Note] Shutting down plugin 'binlog'
root_db_1  | 2022-01-27T07:07:52.719971Z 0 [Note] mysqld: Shutdown complete
root_db_1  |
root_db_1  | 2022-01-27 07:07:52+00:00 [Note] [Entrypoint]: Temporary server stopped
root_db_1  |
root_db_1  | 2022-01-27 07:07:53+00:00 [Note] [Entrypoint]: MySQL init process done. Ready for start up.
root_db_1  |
root_db_1  | 2022-01-27T07:07:53.246004Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
root_db_1  | 2022-01-27T07:07:53.248395Z 0 [Note] mysqld (mysqld 5.7.37) starting as process 1 ...
root_db_1  | 2022-01-27T07:07:53.251836Z 0 [Note] InnoDB: PUNCH HOLE support available
root_db_1  | 2022-01-27T07:07:53.251861Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
root_db_1  | 2022-01-27T07:07:53.251864Z 0 [Note] InnoDB: Uses event mutexes
root_db_1  | 2022-01-27T07:07:53.251867Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
root_db_1  | 2022-01-27T07:07:53.251870Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
root_db_1  | 2022-01-27T07:07:53.251872Z 0 [Note] InnoDB: Using Linux native AIO
root_db_1  | 2022-01-27T07:07:53.252206Z 0 [Note] InnoDB: Number of pools: 1
root_db_1  | 2022-01-27T07:07:53.252395Z 0 [Note] InnoDB: Using CPU crc32 instructions
root_db_1  | 2022-01-27T07:07:53.254497Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
root_db_1  | 2022-01-27T07:07:53.264454Z 0 [Note] InnoDB: Completed initialization of buffer pool
root_db_1  | 2022-01-27T07:07:53.267553Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
root_db_1  | 2022-01-27T07:07:53.279826Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
root_db_1  | 2022-01-27T07:07:53.291831Z 0 [Note] InnoDB: Creating shared tablespace for temporary tables
root_db_1  | 2022-01-27T07:07:53.291881Z 0 [Note] InnoDB: Setting file './ibtmp1' size to 12 MB. Physically writing the file full; Please wait ...
root_db_1  | 2022-01-27T07:07:53.359778Z 0 [Note] InnoDB: File './ibtmp1' size is now 12 MB.
root_db_1  | 2022-01-27T07:07:53.360561Z 0 [Note] InnoDB: 96 redo rollback segment(s) found. 96 redo rollback segment(s) are active.
root_db_1  | 2022-01-27T07:07:53.360578Z 0 [Note] InnoDB: 32 non-redo rollback segment(s) are active.
root_db_1  | 2022-01-27T07:07:53.360954Z 0 [Note] InnoDB: Waiting for purge to start
root_db_1  | 2022-01-27T07:07:53.411173Z 0 [Note] InnoDB: 5.7.37 started; log sequence number 12660567
root_db_1  | 2022-01-27T07:07:53.411482Z 0 [Note] InnoDB: Loading buffer pool(s) from /var/lib/mysql/ib_buffer_pool
root_db_1  | 2022-01-27T07:07:53.411618Z 0 [Note] Plugin 'FEDERATED' is disabled.
root_db_1  | 2022-01-27T07:07:53.416566Z 0 [Note] InnoDB: Buffer pool(s) load completed at 220127  7:07:53
root_db_1  | 2022-01-27T07:07:53.420751Z 0 [Note] Found ca.pem, server-cert.pem and server-key.pem in data directory. Trying to enable SSL support using them.
root_db_1  | 2022-01-27T07:07:53.420775Z 0 [Note] Skipping generation of SSL certificates as certificate files are present in data directory.
root_db_1  | 2022-01-27T07:07:53.420779Z 0 [Warning] A deprecated TLS version TLSv1 is enabled. Please use TLSv1.2 or higher.
root_db_1  | 2022-01-27T07:07:53.420782Z 0 [Warning] A deprecated TLS version TLSv1.1 is enabled. Please use TLSv1.2 or higher.
root_db_1  | 2022-01-27T07:07:53.421350Z 0 [Warning] CA certificate ca.pem is self signed.
root_db_1  | 2022-01-27T07:07:53.421390Z 0 [Note] Skipping generation of RSA key pair as key files are present in data directory.
root_db_1  | 2022-01-27T07:07:53.421993Z 0 [Note] Server hostname (bind-address): '*'; port: 3306
root_db_1  | 2022-01-27T07:07:53.423614Z 0 [Note] IPv6 is available.
root_db_1  | 2022-01-27T07:07:53.424375Z 0 [Note]   - '::' resolves to '::';
root_db_1  | 2022-01-27T07:07:53.424445Z 0 [Note] Server socket created on IP: '::'.
root_db_1  | 2022-01-27T07:07:53.429147Z 0 [Warning] Insecure configuration for --pid-file: Location '/var/run/mysqld' in the path is accessible to all OS users. Consider choosing a different directory.
root_db_1  | 2022-01-27T07:07:53.438297Z 0 [Note] Event Scheduler: Loaded 0 events
root_db_1  | 2022-01-27T07:07:53.438582Z 0 [Note] mysqld: ready for connections.
root_db_1  | Version: '5.7.37'  socket: '/var/run/mysqld/mysqld.sock'  port: 3306  MySQL Community Server (GPL)
root_db_1  | 2022-01-27T07:08:11.798301Z 2 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:08:41.882088Z 3 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:09:11.972434Z 4 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:09:42.086449Z 5 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:10:12.185543Z 6 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:10:42.316927Z 7 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:11:12.429718Z 8 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:11:42.582227Z 9 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:12:12.734794Z 10 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:12:42.831602Z 11 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:13:12.917802Z 12 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:13:43.022576Z 13 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:14:13.111117Z 14 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:14:43.222826Z 15 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:15:13.302347Z 16 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:15:43.394443Z 17 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:16:13.479318Z 18 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:16:43.583187Z 19 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:17:13.690335Z 20 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:17:43.791281Z 21 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:18:13.892778Z 22 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:18:43.991390Z 23 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:19:14.082470Z 24 [Note] Access denied for user 'root'@'localhost' (using password: NO)
root_db_1  | 2022-01-27T07:19:44.167222Z 25 [Note] Access denied for user 'root'@'localhost' (using password: NO)

Open the port 9090 in Aliyun ECS server

root@SecondaryDataUse:~# netstat -ltnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      562/sshd: /usr/sbin
tcp        0      0 0.0.0.0:5432            0.0.0.0:*               LISTEN      1864680/postgres
tcp        0      0 0.0.0.0:8088            0.0.0.0:*               LISTEN      1590294/docker-prox
tcp        0      0 0.0.0.0:8793            0.0.0.0:*               LISTEN      21740/gunicorn: mas
tcp        0      0 127.0.0.1:8800          0.0.0.0:*               LISTEN      1402003/uwsgi
tcp        0      0 0.0.0.0:9090            0.0.0.0:*               LISTEN      200738/docker-proxy
tcp        0      0 127.0.0.1:33060         0.0.0.0:*               LISTEN      703/mysqld
tcp        0      0 127.0.0.1:3306          0.0.0.0:*               LISTEN      703/mysqld
tcp        0      0 127.0.0.1:6379          0.0.0.0:*               LISTEN      1394809/redis-serve
tcp        0      0 127.0.0.1:42989         0.0.0.0:*               LISTEN      1402003/uwsgi
tcp        0      0 127.0.0.1:40943         0.0.0.0:*               LISTEN      199261/uwsgi
tcp        0      0 127.0.0.1:8080          0.0.0.0:*               LISTEN      199470/uwsgi
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN      1402500/nginx: mast
tcp        0      0 0.0.0.0:8081            0.0.0.0:*               LISTEN      21678/gunicorn: mas
tcp        0      0 127.0.0.53:53           0.0.0.0:*               LISTEN      446/systemd-resolve
tcp6       0      0 :::8983                 :::*                    LISTEN      1400838/java
tcp6       0      0 :::5432                 :::*                    LISTEN      1864680/postgres
tcp6       0      0 :::8088                 :::*                    LISTEN      1590305/docker-prox
tcp6       0      0 :::9090                 :::*                    LISTEN      200746/docker-proxy
tcp6       0      0 ::1:6379                :::*                    LISTEN      1394809/redis-serve


举报

相关推荐

0 条评论