zoukankan      html  css  js  c++  java
  • LNMP状态管理命令

    LNMP 1.2+状态管理: lnmp {start|stop|reload|restart|kill(终止进程)|status(状态)}
    LNMP 1.2+各个程序状态管理: lnmp {nginx|mysql|mariadb|php-fpm|pureftpd} {start|stop|reload|restart|kill|status}
    LNMP 1.1状态管理: /root/lnmp {start|stop|reload|restart|kill|status}
    Nginx状态管理:  {start|stop|reload(重装)|restart(重启)}
    MySQL状态管理:/etc/init.d/mysql {start|stop|restart|reload|force-reload|status}
    Memcached状态管理:/etc/init.d/memcached {start|stop|restart}
    PHP-FPM状态管理:/etc/init.d/php-fpm {start|stop|quit|restart|reload|logrotate}
    PureFTPd状态管理: /etc/init.d/pureftpd {start|stop|restart|kill|status}
    Redis状态管理: /etc/init.d/redis {start|stop|restart|kill}

    ftp账号增加:lnmp ftp add

    网站(虚拟主机):lnmp vhost  {list(列出)、del(删除)、add增加}

    ##默认网站(虚拟主机)##

    LNMP默认网站配置文件:/usr/local/nginx/conf/nginx.conf
    LNMPA默认网站配置文件:/usr/local/nginx/conf/nginx.conf 和 /usr/local/apache/conf/extra/httpd-vhosts.conf
    LAMP默认网站配置文件:/usr/local/apache/conf/extra/httpd-vhosts.conf

    数据库管理

    添加数据库命令:lnmp database add
    编辑数据库用户密码命令:lnmp database edit
    删除数据库命令:lnmp database del
    列出所有数据库命令:lnmp database list

    ftp管理和数据库管理一样

    vi命令:

    :wq!强制保存和退出

  • 相关阅读:
    C#写文本文件,如何换行(添加换行符)
    C#使用oledb操作excel文件的方法
    winform之combobox
    vs2010快捷键
    可以下载一些书籍代码的网站
    对php和java里面的static函数和static的一些理解
    10.4-CMake find 模块
    6.25-Git 技巧
    6.4-Git Command
    2.25-CMake Tutorial
  • 原文地址:https://www.cnblogs.com/tangbomao/p/6779132.html
Copyright © 2011-2022 走看看