解压源代码
# tar xvzf stat –tnl |grep :80 过滤80端口 2、启动服务 # /usr/local/apache2/bin/apachectl start 编辑apache配置文件/etc/ 停止WEB服务 /usr/local/apache2/bin/apachectl start 启动WEB服务 5、让apache自动启动 # echo “/usr/local/apache2/bin/apachect1 start” >>/etc/rc.local
解压源代码 # tar xvzf mysql-5.0.67.tar.gz # cd / mysql-5.0.67 解压缩后编译 # ./configure --sysconfdir=/etc //编译,检查系统配置环境,配置文件目录是/etc # make &> make.log & //编译,挂到后台执行 # tail -f make.log h //查看后台执行情况 # make; make install # cp /usr/local/share/mysql/f /etc/f //把f配置文件拷贝到/etc/f 1、初始化数据库 # useradd -d /usr/local/var mysql # su - mysql $ /usr/bin/mysql_install_db $ cd /usr; /usr/bin/mysqld_safe & 2、 启动服务器 $ /usr/bin/mysqld_safe/ 用/usr/local/bin/mysql登录测试 3、$ mysql –u root 登陆数据库 Mysql>s 看版本 Mysql>q 退出 4、让mysql数据库服务器自动启动 5、cp /usr/local/share/mysql/mysql.server /etc/init.d/mysqld # chkconfig mysqld on # /etc/rc.d/init.d/mysqld status 检查mysql有没有启动 # /etc/rc.d/init.d/mysqld start启动服务 解压源代码 # tar xvjf php-4.4.9.tar.gz # cd / php-4.4.9 1、解压缩后运行 # ./configure --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local # make ; make install # cp /usr/src/php-4.4.9/php.ini-dist /usr/local/lib/php.ini 2、编辑apache配置文件/etc/httpd.conf,增加Addtype application/x-httpd-php .php .phtml 3、编写测试页面 cd /usr/local/apache2/htdocs vi test.php <?php phpinfo(); ?>
Megalayer 商家算是比较新晋的国内主机商,主要方向是美国、香港、菲律宾等机房的独立服务器为主,以及站群服务器和显卡服务器。同时也有新增价格并不是特别优惠的VPS云服务器。上午的时候有网友问问有没有CN2线路的美国独立服务器的,这里我推荐他选择Megalayer看看,目前也是有活动截止到月底的。Megalayer 商家创办2年左右时间,如果我们初次使用建议月付体验。目前在进行且可能截止到6月...
卢森堡商家gcorelabs是个全球数据中心集大成的运营者,不但提供超过32个数据中心的VPS、13个数据中心的cloud(云服务器)、超过44个数据中心的独立服务器,还提供超过100个数据中心节点的CDN业务。CDN的总带宽容量超过50Tbps,支持免费测试! Gcorelabs根据业务分,有2套后台,分别是: CDN、流媒体平台、DDoS高防业务、块存储、cloud云服务器、裸金属服务器...
profitserver怎么样?profitserver是一家成立于2003的主机商家,是ITC控股的一个部门,主要经营的产品域名、SSL证书、虚拟主机、VPS和独立服务器,机房有俄罗斯、新加坡、荷兰、美国、保加利亚,VPS采用的是KVM虚拟架构,硬盘采用纯SSD,而且最大的优势是不限制流量,大公司运营,机器比较稳定,数据中心众多。此次ProfitServer正在对德国VPS(法兰克福)、西班牙v...