1、安装软件包yum groupinstall "fonts"
2、修改/etc/locale.confLANG=zh_CN.utf8
3、重启reboot
1、安装软件包yum groupinstall "fonts"
2、修改/etc/locale.confLANG=zh_CN.utf8
3、重启reboot
1、gitlab是什么
gitlab是git仓库的管理工具,提供web页面方便用户使用。
gitlab-ce和gitlab-ee,ce是社区版,ee是企业版,企业版有些功能需要付费使用。
2、从官方仓库上安装gitlab
添加官方仓库: curl -L https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.rpm.sh | sudo bash
3、安装postfix sudo yum install postfix
sudo systemctl enable postfix
sudo systemctl start postfix
4、安装gitlab yum install gitlab-ce
5、安装完成后会有提示信息Thank you for installing GitLab!
GitLab was unable to detect a valid hostname for your instance.
Please configure a URL for your GitLab instance by setting `external_url`
configuration in /etc/gitlab/gitlab.rb file.
Then, you can start your GitLab instance by running the following command:
sudo gitlab-ctl reconfigure
For a comprehensive list of configuration options please see the Omnibus GitLab readme
https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md
GitLab now ships with a newer version of PostgreSQL (11.7), but it is not yet
enabled by default. To upgrade, please see:
https://docs.gitlab.com/omnibus/settings/database.html#upgrade-packaged-postgresql-server
6、编辑/etc/gitlab/gitlab.rb
将:# nginx['listen_port'] = nil
修改为:nginx['listen_port'] = 8888
将:external_url 'http://gitlab.example.com'
修改为:external_url 'http://你的IP地址:8888'
注:这里external_url需要加上端口,否则使用http克隆和查看文件,链接里会没有端口
语法:
BITAND(nExpression1, nExpression2)
说明:
指定按位进行AND运算的两个数值。如果nExpression1和nExpression2的位都是1,相应的结果位就是1;否则相应的结果位是0
例子:
select bitand(5, 7) from dual;
———-
5
说明:
5的二进制格式:0101
7的二进制格式:0111
计算结果:0101,转换为十进制为5
参考资料:
https://blog.csdn.net/qq_25662627/article/details/81096605
1、进入容器docker exec -it php /bin/bash
2、查看php当前模块php -m
3、安装依赖包apt-get install libwebp-dev libjpeg-dev libpng-dev zlib1g-dev libfreetype6-dev libjpeg62-turbo-dev
4、添加GD库编译选项docker-php-ext-configure gd --with-jpeg-dir=/usr/include/
5、安装gd、exif模块docker-php-ext-install gd
6、安装exif模块docker-php-ext-install exif
7、重启容器exit
docker restart php
docker restart nginx
8、查看phpinfo
出现gd模块,并且有:
JPEG Support:enabled
libJPEG Version:6b
最近看《新世界》里面田丹对徐天、金海的评价:
徐天:有正义感、讲义气,认道理
金海:有正义感、讲义气,认道理,做事有分寸,能变通
另外说说铁林,铁林是塑造最丰富的人物,自私、出卖兄弟、渴望权利、没脑子
金海说过,想做大哥,要有担当,要承担责任的
Axure RP:原型设计工具
蓝湖:产品设计协作平台
计划产品:
信用卡代还,账单延期(死掉)
彩票POS(死掉)
代缴个人所得税(死掉)
其他:
叫早app,各种形式叫早
手机app代测,提供测试工具和人员,小公司考虑成本不会去买200部测试手机
把这篇改为突发奇想系列,记录一些想法
1、设计一种便携式监控设备,随时安装,然后在手机app上就能看到画面。可以安装在大货车上并提供提醒服务,以任务为单位,用完了就能拆走
反垃圾评论插件akismet把帐号暂停了,说因为挂了广告,所以不是非盈利性网站,如使用要购买服务,5刀一个月。。。好贵呀,我的vps都没有5刀一个月。。。网上找了下,临时解决办法:
在后台 – 设置 – 讨论,其他评论设置 – 自动关闭发布14天后的文章上的评论功能
第二个是增加人机验证,滑动解锁
1、安装依赖工具 yum install git
2、下载软件包 mkdir -p /appserver/software
cd /appserver/software
wget https://nodejs.org/dist/v12.14.1/node-v12.14.1-linux-x64.tar.xz
mkdir -p /usr/local/lib/nodejs
tar -xJvf node-v12.14.1-linux-x64.tar.xz -C /usr/local/lib/nodejs
3、编辑/etc/profilevi /etc/profile
# Nodejs
VERSION=v12.14.1
DISTRO=linux-x64
export PATH=/usr/local/lib/nodejs/node-$VERSION-$DISTRO/bin:$PATH
4、使设置生效 source /etc/profile
5、查看版本 node -v
npm version
npx -v
系统为CentOS7,搭建下载服务器,所用到的软件为
aria2:Linux下全功能下载工具
ariaNg:一款Aria2的WebUI工具
h5ai:一款功能强大php文件目录列表程序
一、安装aria2
1、安装 yum install epel-release zip unzip
yum install aria2
2、查看版本 aria2c -v
二、安装ariaNg(需要搭建好php环境)
1、AriaNg现在提供三种版本, 标准版、单文件版和AriaNg Native。标准版适合在Web服务器中部署, 提供资源缓存和按需加载的功能。单文件版适合本地使用, 您下载后只要在浏览器中打开唯一的html文件即可。AriaNg Native同样适合本地使用, 并且不需要使用浏览器
下载地址:https://github.com/mayswind/AriaNg/releases
这里安装标准版
2、下载ariaNg mkdir -p /appserver/ariaNg
cd /appserver/ariaNg
wget https://github.com/mayswind/AriaNg/releases/download/1.1.4/AriaNg-1.1.4.zip
unzip AriaNg-1.1.4.zip
3、将ariaNg目录移动到web服务器根目录 mv /appserver/ariaNg /var/www/html
4、浏览器访问 http://IP/ariaNg
docker inspect用于查看镜像的元数据,我们可以从中获取镜像挂载的卷和工作目录,返回的是一个json字符串
格式:docker inspect --help
Usage: docker inspect [OPTIONS] NAME|ID [NAME|ID...]
Return low-level information on Docker objects
Options:
-f, --format string Format the output using the given Go template
-s, --size Display total file sizes if the type is container
--type string Return JSON for specified type
继续阅读Docker学习(4)—inspect命令