虚拟机内存1G,硬盘50G,台式机可设置更大
选择自己分配磁盘
全部放/下
如果忘了设置swap:
http://www.2cto.com/os/201409/338170.html
root密码不要忘了设置:123456
virtualbox下添加host-only网络
访问ip: 192.168.56.101
/etc/sysconfig/network-scripts/ 下修改onboot=yes (需要吗?)
yum install git
yum install httpd
service httpd start(怎么加开机启动?)
curl http://localhost
设置开机自动运行
chkconfig httpd on
参考:
https://blog.phpha.com/backup/archives/1458.html
安装php7
rpm -Uvh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
rpm -Uvh https://mirror.webtatic.com/yum/el7/webtatic-release.rpm
yum install php70w
yum install php
service httpd restart
安装mysql5.7
rpm -ivh http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
yum install mysql-community-server
找不到初始密码:
http://blog.csdn.net/qq_26941173/article/details/51548947
yum install php70w-mysql
chkconfig mysqld on
yum install samba samba-client samba-common (台式机不需要samba)
http://blog.csdn.net/linglongwunv/article/details/5212875
service smb start
chkconfig smb on
别忘了关防火墙:
setenforce 0
如果要永久关闭,可以修改配置文件/etc/selinux/config,将SELINU置为disabled。
安装mongodb 3.2:
https://docs.mongodb.com/manual/tutorial/install-mongodb-on-red-hat/
chkconfig mongod on
add --nogpgcheck if hints not signed
yum install php-pear
yum install php-devel
yum -y install gcc
yum install openssl openssl-devel
pecl channel-update pecl.php.net
pecl install mongo
pecl install mongodb
到底是哪个?
vi /etc/php.ini
add:
extension=mongo.so
extension=mongodb.so
service httpd restart
php display_error = On
[swoole??]
pecl install swoole