• 注册
  • 投稿
  • 注册
  • 架设视频教程 架设视频教程 关注:40 内容:200

    三国我为王手工端新手视频学习教程

  • 查看作者
  • 打赏作者
  • 当前位置: 35博客圈 > 视频教程 > 架设视频教程 > 正文
    • 1
    • 架设视频教程
    • 大版主
      lv11
      vip2
      admin

      三国我为王手工端新手视频学习教程

      服务端地址: 链接

      注意:服务器系统必须32位 6.x 

      教程:

      1.安装环境  服务器必须32位 6.x 

      yum install -y gcc

      yum install -y vim

      yum install -y e2fsprogs-devel

      yum install -y uuid-devel

      yum install -y libuuid-devel

      yum install -y bison bison-devel

      yum install -y psmisc

      yum install -y unzip zip

      —————————————————————————————————————————————————–

      2.上传home.targz到根目录

      cd /

      tar -zxvf home.tar.gz

      chmod -R 777 /home

      —————————————————————————————————————————————————–

      3.安装openssl

      cd /home/soft/

      tar -zxvf openssl-1.0.0.tar.gz && cd openssl-1.0.0

      ./config –prefix=/usr/local –openssldir=/usr/local/ssl && make clean && make && make install

      ./config –prefix=/usr/local –openssldir=/usr/local/ssl shared && make clean && make && make install

      —————————————————————————————————————————————————–

      4.安装mysql

      groupadd mysql

      useradd mysql -g mysql -s /sbin/nologin

      cd /home/soft/ && tar -zxvf mysql-5.5.62-linux-glibc2.12-i686.tar.gz

      mv -f mysql-5.5.62-linux-glibc2.12-i686 /home/local/mysql5.5.62

      chown -R mysql:mysql /home/local/mysql5.5.62

      —————————————————————————————————————————————————–

      cd /home/local/mysql5.5.62

      scripts/mysql_install_db –basedir=/home/local/mysql5.5.62 –datadir=/home/local/mysql5.5.62/data –user=mysql

      cp /home/local/mysql5.5.62/support-files/mysql.server /etc/init.d/mysqld

      chmod +x /etc/init.d/mysqld && chkconfig –add mysqld && chkconfig –level 2345 mysqld on && chkconfig –list

      —————————————————————————————————————————————————–

      编辑/etc/init.d/mysqld       46  47 行

      basedir=/home/local/mysql5.5.62/

      datadir=/home/local/mysql5.5.62/data/ 

      编辑 /etc/profile

      export PATH=$PATH:/home/local/mysql5.5.62/bin

      然后

      source /etc/profile

      —————————————————————————————————————————————————–

      my.cnf  上传到 etc目录

      —————————————————————————————————————————————————–

      编辑/etc/ld.so.conf

      加入

      /usr/local/lib/

      /home/local/mysql5.5.62/lib

      然后

      ldconfig

      ln -s /home/local/mysql5.5.62/lib/libmysqlclient.so.18   /usr/lib/

      —————————————————————————————————————————————————–

      service mysqld start

      chkconfig mysqld on

      —————————————————————————————————————————————————–

      mysqladmin -u root password 12345

      mysql -uroot -p12345

      GRANT ALL PRIVILEGES ON *.* TO [email protected]'127.0.0.1' IDENTIFIED BY '12345' WITH GRANT OPTION;

      GRANT ALL PRIVILEGES ON *.* TO [email protected]'%' IDENTIFIED BY '35boke.com' WITH GRANT OPTION;

      flush privileges;

      quit

      —————————————————————————————————————————————————–

      4.安装Nginx

      yum install nginx -y

      #启动服务

      service nginx start

      #设为开机自启动

      chkconfig nginx on

      5.安装PHP

      yum install php -y

      yum install php-mysql php-gd libjpeg* php-imap php-ldap php-odbc php-pear php-xml php-xmlrpc php-mbstring php-mcrypt php-bcmath libmcrypt libmcrypt-devel php-fpm -y

      —————————————————————————————————————————————————–

      编辑/etc/php-fpm.d/www.conf 9000改成9001

      —————————————————————————————————————————————————–

      database.dat替换到 

      /home/uzone/25pp_sgwww_s1/game_os

      —————————————————————————————————————————————————–

      #启动服务

      service php-fpm start

      #设置开机启动

      chkconfig php-fpm on

      —————————————————————————————————————————————————–

      n11 连接数据库  密码35boke.com

      新建sgwww_s1  字符集utf8 — UTF-8 Unicode   排序规则utf8_general_ci

      ——————————————————- ———————————————————————————————-

      上传www.zip到/usr/share/nginx/html

      cd /usr/share/nginx/html

      unzip www.zip

      chmod -R 777 /usr/share/nginx/html

      —————————————————————————————————————————————————–

      上传default.conf 到 /etc/nginx/conf.d

      service nginx restart

      —————————————————————————————————————————————————–

      隐藏内容需要开通VIP才可以看见

      开通VIP
      lv8
      水晶之恋
      该内容只有作者可以浏览

      请登录之后再进行评论

      登录
      赞助商广告
      招租100元一个月,PC移动端同步,在首页和帖子页面展示, 带用户点击任务!
    • 做任务
    • 管理
    • 偏好设置
    • 到底部
    • 帖子间隔 侧栏位置: