truffle complie Error: The method eth_compileSolidity does not exist/is not available

> var testCompiled = web3.eth.compile.solidity(testSource);
Error: The method eth_compileSolidity does not exist/is not available
    at web3.js:3104:20
    at web3.js:6191:15
    at web3.js:5004:36
    at <anonymous>:1:20

1、Use Remix To Compile, Then Copy-Paste To Deploy

Use Remix from https://remix.ethereum.orgtruffle complie Error: The method eth_compileSolidity does not exist/is not available

2、Copy the Web3 deployment instructions from the Remix page:

truffle complie Error: The method eth_compileSolidity does not exist/is not available

3、And paste it into the geth console with an unlocked account:

personal.unlockAccount(eth.accounts[0], "123456");

truffle complie Error: The method eth_compileSolidity does not exist/is not available