Linux 下的 lnmp常用命令

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/qq_30549101/article/details/80277251

MySQL 

  • MySQL启动以及关闭。

  1. 查看MySQL是否启动  service mysqld status 

    

     2. 启动MySQL   service mysql start

      

    这个报错信息是没有权限,name分配权限

    ls /etc/rc.d/init.d/mysqld -l

    chkconfig mysqld on    开机启动设置

    chmod 755 /etc/rc.d/init.d/mysqld   分配权限

    

    启动成功

NGINX

    1.启动NGINX

    查看进程   ps -ef|grep nginx

    

    启动服务器

    /usr/local/webserver/nginx/sbin/nginx 

    

php-fpm

    1,启动PHP服务

    /etc/init.d/php-fpm start

    



猜你喜欢

转载自blog.csdn.net/qq_30549101/article/details/80277251