LINUX新手常用命令[长期更新]

来源:互联网 发布:h5游戏源码搭建 编辑:程序博客网 时间:2024/04/30 07:09
//设置文件夹权限为777chmod -R 777 /var/www/onethink///vmvirtual box 中linux如何切换用户su 命令//新建文件夹mkdir tes
linux apache重启基本的操作方法:本文假设你的apahce安装目录为/usr/local/apache2,这些方法适合任何情况apahce启动命令:推荐/usr/local/apache2/bin/apachectl start apaceh启动apache停止命令/usr/local/apache2/bin/apachectl stop   停止apache重新启动命令:/usr/local/apache2/bin/apachectl restart 重启要在重启 Apache 服务器时不中断当前的连接,则应运行:/usr/local/sbin/apachectl graceful如果apache安装成为linux的服务的话,可以用以下命令操作:service httpd start 启动service httpd restart 重新启动service httpd stop 停止服务Linux系统为Ubuntu一、Start Apache 2 Server /启动apache服务# /etc/init.d/apache2 startor$ sudo /etc/init.d/apache2 start二、 Restart Apache 2 Server /重启apache服务# /etc/init.d/apache2 restartor$ sudo /etc/init.d/apache2 restart三、Stop Apache 2 Server /停止apache服务# /etc/init.d/apache2 stopor$ sudo /etc/init.d/apache2 stop
0 0
原创粉丝点击