解压源代码
# 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(); ?>
95idc是一家香港公司,主要产品香港GIA线路沙田CN2线路独服,美国CERA高防服务器,日本CN2直连服务器,即日起,购买香港/日本云主机,在今年3月份,95IDC推出来一款香港物理机/香港多ip站群服务器,BGP+CN2线路终身7折,月付350元起。不过今天,推荐一个价格更美的香港物理机,5个ip,BGP+CN2线路,月付299元起,有需要的,可以关注一下。95idc优惠码:优惠码:596J...
sparkedhost怎么样?sparkedhost主机。Sparkedhost于2017年7月注册在美国康涅狄格州,2018年收购了ClynexHost,2019年8月从Taltum Solutions SL收购了The Beast Hosting,同年10月从Reilly Bauer收购了OptNode Hosting。sparkedhost当前的业务主要为:为游戏“我的世界”提供服务器、虚拟...
咖啡主机怎么样?咖啡主机是一家国人主机销售商,成立于2016年8月,之前云服务器网已经多次分享过他家的云服务器产品了,商家主要销售香港、洛杉矶等地的VPS产品,Cera机房 三网直连去程 回程CUVIP优化 本产品并非原生地区本土IP,线路方面都有CN2直连国内,机器比较稳定。咖啡主机目前推出美国洛杉矶弹性轻量云主机仅13元/月起,高防云20G防御仅18元/月;香港弹性云服务器,香港HKBN CN...