brew install mongodb
==> Downloading https://homebrew.bintray.com/bottles/mongodb-3.0.0.yosemite.bott
==> Pouring mongodb-3.0.0.yosemite.bottle.1.tar.gz
==> Caveats
To have launchd start mongodb at login:
ln -sfv /usr
安装nginx
sudo apt-get update
sudo apt-get install nginx
查看ip地址
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//'
安装mysql
sudo apt-get install mysql-server
sudo mysql_install_db
sudo mysql_secure_installation
安装PHP
sudo apt-get install php5-fpm php5-mysql
/etc/php5/fpm/p
sudo apachectl start
sudo apachectl restart
sudo apachectl stop
http://localhost/~user_name
原文链接
MAC升级到最新系统后 本地测试的站点不能正常运行,其原因是mac系统升级后 他的apache的版本也随之升级了版本
Server version: Apache/2.4.9 (Unix)
Server built: Sep 9 2014 14:48:20
升级前的版本为 10.9
Server version: Apache/2.2.26 (Unix)
Server built: Dec 1
安装增强工具
sudo mount /dev/cdrom /mnt/
sudo /mnt/VBoxLinuxAdditions.run
sudo umount /mnt/
安装SSH服务器端OpenSSH。
安装ssh-server:sudo apt-get install openssh-server
启动ssh-server:sudo /etc/init.d/ssh restart
确认ssh-server已经正常工作: netstat -tlp
FTP
sudo apt-get install vsftpd
sudo vi /etc/ftpusers 在root前加上#
sudo
安装nginx
brew install nginx
==> Downloading https://homebrew.bintray.com/bottles/nginx-1.6.2.yosemite.bottle.1.tar.gz
Already downloaded: /Library/Caches/Homebrew/nginx-1.6.2.yosemite.bottle.1.tar.gz
==> Pouring nginx-1.6.2.yosemite.bottle.1.tar.gz
==> Caveats
Docroot is: /usr/local/var/