ECS云服务器[Nginx+PHP+MySQL基本操作命令总结]

来源:互联网 发布:侧面导航栏网站源码 编辑:程序博客网 时间:2024/06/11 00:38
 安装环境可参考---->

阿里云CentOS 6.5安装配置LNMP服务器(Nginx+PHP+MySQL)


环境操作命令总结

1、Nginx启动: service nginx start
      重启: service nginx restart

2、Mysql启动: /etc/init.d/mysqld start
       停止: /etc/init.d/mysqld stop
       重启: /etc/init.d/mysqld restart

3、php启动:  /etc/init.d/php-fpm start
    重启:  /etc/init.d/php-fpm restart




注:设置开机自启: 
chkconfig mysqld on     #设置mysql开机启动
chkconfig nginx on       #设置nginx开机启动
chkconfig php-fpm on #设置php-fpm开机启动
   


php代码存储位置

/usr/share/nginx/html






阅读全文
0 0