这样重启计算机后,防火墙默认已经开放了80和22端口
这里应该也可以不重启计算机:
#/etc/init.d/iptables restart
防火墙的关闭,关闭其服务即可:
查看防火墙信息:
#/etc/init.d/iptables status
详细出处参考:http://www.iyunv.net/os/128751.html
2.Manually Installing Zend Server
To setup the environment:
Set up your Zend Server repository by creating'/etc/yum.repos.d/zend.repo' and adding the following content:
[Zend]
name=zend-server
baseurl=http://repos.zend.com/zend-server/6.3/rpm/$basearch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key
[Zend_noarch]
name=zend-server - noarch
baseurl=http://repos.zend.com/zend-server/6.3/rpm/noarch
enabled=1
gpgcheck=1
gpgkey=http://repos.zend.com/zend.key To install:
Once the environment is setup, run the appropriate command according to the PHP version (5.3, 5.4 or 5.5) you require:
# yum install zend-server-php-<PHP Version>
To clean your packages cache and ensure retrieval of updates from the web, run:
yum clean all
To access the Zend Server UI, open your browser at: https://<Server_IP>:10082/ZendServer (secure), or http://<Server_IP>:10081/ZendServer.
详细链接:http://files.zend.com/help/Zend-Server/zend-server.htm#rpm_installing_zend_server.htm
安装完成后登陆,更改为免费授权
安装mysql(http://www.centospub.com/make/mysql.html)
yum -y install mysql-server
yum -y install php-mysql
chkconfig mysqld on chkconfig --list mysqld /etc/rc.d/init.d/mysqld start
mysql -u root← 用root用户登录MySQL服务器