开启mysql mysql.server start
开启nginx sudo nginx
重启nginx sudo nginx -s reload
开启php sudo php-fpm(初始先将php-fpm.conf.default 备份成php-fpm.conf)
开始ssh pkill ssh(杀掉)
/usr/sbin/sshd (开启)
vim /etc/sshd-config 修改该开启写配置
apache
vi private/etc/apache2/extra/httpd-vhosts.conf 增加域名信息
vi /etc/hosts 增加ip域名记录
线上apache干扰
ps aux | grep httpd 查看apache
/etc/init.d/apache2 stop
/etc/init.d/nginx restart
开启redis redis-server &
生成公钥私钥ssh
ssh-keygen
时间: 2024-10-29 00:49:44