现在的位置: 首页 > 综合 > 正文

Ubuntu Server Nginx+PHP+MySQL相关命令

2012年11月03日 ⁄ 综合 ⁄ 共 512字 ⁄ 字号 评论关闭
目的 命令 备注
关闭服务器 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  

抱歉!评论已关闭.