koflover 发表于 2019-2-17 12:23:45

linux web

  静态网站:*.html *.htm

  动态网站:*.php *.jsp *.cgi *.asp
  PHP:
  LAMP: Linux + Apache + Mysql + PHP/Perl/Python
  LNMP(LEMP): Linux + Nginx + Mysql + PHP(FastCGI)
  JSP:
  Tomcat
  Apache + Tomcat (虚拟主机:1. 静态   2.jsp)
  LAMP + Tomcat
  2. 上传网站
  # unzip Discuz_X2.5_SC_UTF8.zip
  # cd upload/
  # cp -rf * /webroot/126/
  # pwd
  /webroot/126
  # chmod -R 777 .
  3.安装网站(创建数据库,连接数据库)
  http://192.168.2.115
  # mysql -uroot -p123456
  Welcome to the MySQL monitor.Commands end with ; or \g.
  Your MySQL connection id is 35
  Server version: 5.0.77 Source distribution
  Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
  mysql> show databases;
  +--------------------+
  | Database         |
  +--------------------+
  | information_schema |
  | mysql            |
  | test               |
  | ultrax             |
  +--------------------+
  4 rows in set (0.00 sec)
  mysql> use ultrax
  Reading table information for completion of table and column names
  You can turn off this feature to get a quicker startup with -A
  Database changed
  mysql>
  mysql>
  mysql>
  mysql> show tables;



页: [1]
查看完整版本: linux web