apt-get update
apt-get install docker.iosystemctl start dockerdocker run -it --name <容器名称> <镜像名称>systemctl start sshdip addrssh <用户名>@<节点IP地址>apt-get update
apt-get install mysql-serversystemctl start mysqlapt-get install mysql-clientmysql -u root -pCREATE USER '<用户名>'@'<IP地址>' IDENTIFIED BY '<密码>';GRANT ALL PRIVILEGES ON *.* TO '<用户名>'@'<IP地址>';FLUSH PRIVILEGES;quit;apt-get update
apt-get install tightvncservervncserver :1apt-get update
apt-get install apache2systemctl start apache2nano /etc/apache2/apache2.confnano /etc/apache2/sites-available/000-default.confsystemctl restart apache2curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash -
sudo apt-get install -y nodejsnode -vnano app.jsconst http = require('http');
const hostname = '0.0.0.0';
const port = 3000;
const server = http.createServer((req, res) => {
res.statusCode = 200;
res.setHeader('Content-Type', 'text/plain');
res.end('Hello, World!\n');
});
server.listen(port, hostname, () => {
console.log(`Server running at http://${hostname}:${port}/`);
});node app.jsapt-get update
apt-get install openvpnsystemctl start openvpnnano /etc/openvpn/server.confhtpasswd -c /etc/openvpn/credentials <用户名>systemctl restart openvpn