Jump to content
IPS Community Suite 简体中文
Sign in to follow this  
ipscn

Install IPS on Ubuntu

Recommended Posts

本文记录在 Unbuntu 上安装 IPS,首先需要确定已经安装了 Nginx,MariaDB/MySQL, php, phpMyAdmin(可选)。

创建目录并下载和解压所需文件

sudo mkdir /var/www/html/ips-dev.com
cd /var/www/html/ips-dev.com
wget http://bbs.coolwp.org/downloads/ips_4.3.0_cwp.zip 
unzip ips_4.3.0_cwp.zip -d /var/www/html/ips-dev.com

准备数据库

CREATE USER 'ipsdev'@'localhost' IDENTIFIED VIA mysql_native_password USING '***';GRANT USAGE ON *.* TO 'ipsdev'@'localhost' REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;CREATE DATABASE IF NOT EXISTS `ipsdev`;GRANT ALL PRIVILEGES ON `ipsdev`.* TO 'ipsdev'@'localhost';

 

处理 Nginx 规则

创建和编辑规则。

sudo cp /etc/nginx/sites-available/default /etc/nginx/sites-available/ips-dev.com
sudo nano /etc/nginx/sites-available/ips-dev.com

修正目录,然后,加入 IPS 特定的  Nginx 规则:详情见这篇文章

 

建立规则的软连接

sudo ln -s /etc/nginx/sites-available/ips-dev.com /etc/nginx/sites-enabled

测试 Nginx 规则

sudo nginx -t

如果规则有错,修改下,然后再次运行上面的命令,直到没错,然后重启 Nginx:

sudo service nginx restart

编辑本机 hosts

sudo nano /etc/hosts

添加

127.0.0.1 ips-dev.com

浏览器打开设置的域名,如果可以看到安装页面,就可以进行安装了。

如果是在局域网内进行安装,可先查看装了 IPS 的机器的IP:

ifconfig

可以看到一堆,找到这台服务器的IP,比如 192.168.123.73,然后在需要访问 ips-dev.com 的机器上加上相应的hosts即可。
 

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×