json rpc – port bitcoind localhost 18332: connection refused Ubuntu 18

Try to connect to testnet using localhost curl on the Ubuntu server. Tried a lot of combinations of bitcoin.conf and ports.

Here is my config:

server = 1
demon = 1
testnet = 1
rpcuser = user
rpcpassword = pswd
test.rpcport = 18332
rpcconnect = 127.0.0.1
rpcbind = 127.0.0.1: 18332

Ideas?