【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>>
-
使用通常的 apt 升级命令使您的安装保持最新。
apt-get update && apt-get upgrade -y
-
安装nodejs
curl -sL https://deb.nodesource.com/setup_6.x | sudo -E bash - apt-get install -y nodejs
一旦npm安装,使用它来安装less
npm install -g less less-plugin-clean-css apt-get install node-less
-
安装wkhtmltopdf,要打印PDF报告,必须自己安装wkhtmltopdf:debian存储库中提供的wkhtmltopdf版本不支持页眉和页脚,因此无法自动安装。 推荐版本为0.12.1,可在wkhtmltopdf下载页面的归档部分中找到
wget http://security.debian.org/debian-security/pool/updates/main/o/openssl/libssl1.0.0_1.0.1t-1+deb8u9_amd64.deb dpkg -i libssl1.0.0_1.0.1t-1+deb8u9_amd64.deb wget http://ftp.cn.debian.org/debian/pool/main/libp/libpng/libpng12-0_1.2.50-2+deb8u3_amd64.deb dpkg -i libpng12-0_1.2.50-2+deb8u3_amd64.deb curl -o wkhtmltox.tar.xz -SL https://github.com/wkhtmltopdf/wkhtmltopdf/releases/download/0.12.4/wkhtmltox-0.12.4_linux-generic-amd64.tar.xz echo '3f923f425d345940089e44c1466f6408b9619562 wkhtmltox.tar.xz' | sha1sum -c - tar xvf wkhtmltox.tar.xz cp wkhtmltox/lib/* /usr/local/lib/ cp wkhtmltox/bin/* /usr/local/bin/ cp -r wkhtmltox/share/man/man1 /usr/local/share/man/ sudo ln -s /usr/local/bin/wkhtmltopdf /usr/bin sudo ln -s /usr/local/bin/wkhtmltoimage /usr/bin
-
添加 odoo11.0存储库,安装odoo
# wget -O - https://nightly.odoo.com/odoo.key | apt-key add - # echo "deb http://nightly.odoo.com/12.0/nightly/deb/ ./" >> /etc/apt/sources.list.d/odoo.list # apt-get update && apt-get install odoo
-
安装nginx,参考链接 设置nginx
apt-get install nginx
-
参考链接 优化Postgresql
-
启动服务
systemctl enable postgresql systemctl enable odoo systemctl enable nginx systemctl restart postgresql systemctl restart odoo systemctl restart nginx
来源:oschina
链接:https://my.oschina.net/u/138005/blog/1555766