linux 开机自启动ssh,apache2,postgresql

service apache2 start  开启网络服务

systemctl enable apache2  开机启动网络服务

service ssh start  开启ssh

systemctl enable ssh 开机启动ssh

service postgresql  start 开启postgresql

systemctl enable postgresql 开机启动postgresql 

原文地址:https://www.cnblogs.com/oliver-yt/p/11079118.html