WebClerk

每个人其实都行走在蓝天之下,如果你没有感觉到,那是因为你没有抬头向上看,而不是它不存在。

导航

Ubuntu Server Nginx+PHP+MySQL相关命令

Posted on 2012-12-27 13:00  WebClerk  阅读(298)  评论(0编辑  收藏  举报
目的 命令 备注
关闭服务器 shutdown -h now shutdown -h +3 "System will shutdown after 3 minutes" 表示系统通知用户将在3分钟后关闭
重启服务器 shutdown -r now  
对现有安装软件进行更新 sudo apt-get update
sudo apt-get upgrade
 
安装SSH sudo apt-get install ssh 安装后,即可使用ssh或winscp进行远程连接操作
安装ftp sudo apt-get install vsftpd  
安装Nginx sudo apt-get install nginx  
安装mysql服务器端 sudo apt-get install mysql-server 安装过程中需要为mysql的root用户设置密码
安装mysql客户端 sudo apt-get install mysql-client  
安装php5 sudo apt-get install php5  
安装php5-fpm sudo apt-get install php5-fpm  
安装php5-mysql sudo apt-get install php5-mysql  
安装php-apc sudo apt-get install php-apc