腾讯云
开发者社区
文档
建议反馈
控制台
首页
学习
活动
专区
工具
TVP
最新优惠活动
文章/答案/技术大牛
搜索
搜索
关闭
发布
登录/注册
首页
学习
活动
专区
工具
TVP
最新优惠活动
返回腾讯云官网
热爱IT
专栏作者
举报
452
文章
892313
阅读量
33
订阅数
订阅专栏
申请加入专栏
全部文章(452)
php(64)
http(55)
sql(53)
数据库(52)
push(47)
编程算法(44)
window(43)
云数据库 SQL Server(35)
python(28)
linux(27)
网络安全(27)
https(25)
git(24)
html(23)
容器(22)
nginx(19)
容器镜像服务(19)
bash(18)
网站(18)
yum(17)
Elasticsearch Service(16)
node.js(15)
bash 指令(15)
javascript(14)
java(13)
TDSQL MySQL 版(12)
开源(12)
hbase(12)
composer(11)
github(11)
centos(11)
存储(11)
npm(11)
tcp/ip(11)
ide(10)
apache(10)
ssh(10)
go(9)
css(9)
json(9)
云数据库 Redis(9)
postgresql(9)
打包(9)
api(9)
unix(9)
laravel(8)
云推荐引擎(8)
shell(8)
windows(8)
jquery(7)
单片机(6)
access(6)
ubuntu(6)
hadoop(6)
数据分析(6)
vue.js(5)
xml(5)
云数据库 postgresql(5)
yii(5)
架构师(5)
负载均衡(4)
ruby on rails(4)
file(4)
supervisord(4)
c++(3)
搜索引擎(3)
负载均衡缓存(3)
apt-get(3)
日志服务(3)
访问管理(3)
缓存(3)
爬虫(3)
socket编程(3)
host(3)
root(3)
service(3)
supervisor(3)
yii2(3)
函数(3)
其他(2)
iphone(2)
ajax(2)
sqlite(2)
mvc(2)
全文检索(2)
命令行工具(2)
phpunit(2)
sass(2)
运维(2)
numpy(2)
面向对象编程(2)
cdn(2)
数据结构(2)
es(2)
auto(2)
document(2)
import(2)
input(2)
io(2)
ip(2)
list(2)
mysql(2)
point(2)
reload(2)
set(2)
time(2)
txt(2)
var(2)
数据(2)
异步(2)
语法(2)
字符串(2)
对象存储(1)
官方文档(1)
mac os(1)
swift(1)
c 语言(1)
perl(1)
.net(1)
servlet(1)
jsp(1)
react(1)
django(1)
web.py(1)
matlab(1)
tomcat(1)
maven(1)
中文分词(1)
windows server(1)
thinkphp(1)
批量计算(1)
文件存储(1)
数据库一体机 TData(1)
SSL 证书(1)
es 2(1)
webpack(1)
underscore(1)
babel.js(1)
grunt(1)
分布式(1)
html5(1)
jdk(1)
wordpress(1)
gui(1)
sql server(1)
dns(1)
unity(1)
ftp(1)
二叉树(1)
单元测试(1)
flash(1)
rpc(1)
kernel(1)
lnmp(1)
ntp(1)
kerberos(1)
anaconda(1)
大数据(1)
安全(1)
小程序(1)
数据处理(1)
系统架构(1)
postcss(1)
腾讯云开发者社区(1)
虚拟化(1)
action(1)
app(1)
append(1)
apt(1)
area(1)
assign(1)
authentication(1)
awk(1)
axis(1)
beautifulsoup(1)
branch(1)
chmod(1)
code(1)
command(1)
commit(1)
console(1)
daemon(1)
data(1)
date(1)
debian(1)
default(1)
distance(1)
duration(1)
elasticsearch(1)
error(1)
exe(1)
execute(1)
exit(1)
factory(1)
field(1)
filesize(1)
foreach(1)
form(1)
formdata(1)
function(1)
get(1)
gin(1)
gnu(1)
having(1)
header(1)
include(1)
init(1)
innerhtml(1)
iso(1)
kill(1)
limit(1)
localhost(1)
lock(1)
map(1)
mariadb(1)
min(1)
module(1)
mutex(1)
native(1)
numeric(1)
object(1)
ode(1)
output(1)
path(1)
pdf(1)
pip(1)
plugin(1)
png(1)
port(1)
postgis(1)
product(1)
ps(1)
queue(1)
regexp(1)
replace(1)
request(1)
return(1)
route(1)
screen(1)
search(1)
select(1)
self(1)
server(1)
settimeout(1)
sftp(1)
sh(1)
shift(1)
show(1)
sort(1)
ssl(1)
status(1)
string(1)
sudo(1)
syntax(1)
system(1)
table(1)
tar(1)
target(1)
tcp(1)
text(1)
thinkphp5(1)
token(1)
url(1)
urllib(1)
vim(1)
vmware(1)
wait(1)
备份(1)
变量(1)
编码(1)
操作系统(1)
产品(1)
程序(1)
登录(1)
对象(1)
兼容性(1)
进程(1)
镜像(1)
连接(1)
浏览器(1)
命令行(1)
配置(1)
软件(1)
数组(1)
索引(1)
同步(1)
硬件(1)
终端(1)
搜索文章
搜索
搜索
关闭
新手微擎 --- 框架整体认知
php
缓存
数据库
sql
网站
首先贴出微擎根目录各文件夹、文件的大致含义(写的有点乱,仔细看还是能看懂的,O(∩_∩)O):
双面人
2020-03-09
2.6K
0
在docker容器中使用非root用户执行脚本 (
容器镜像服务
bash
bash 指令
容器
缓存
应用容器化之后,在docker容器启动时,默认使用的是root用户执行命令,因此容器中的应用默认都是使用root用户来运行的,存在很高的安全风险,那么如何能够使用非root的业务用户来运行应用呢,下面我将举一个简单的例子来说明。该例子是在容器中使用自建的用户来运行一个简单的shell脚本,并将脚本输出日志持久到容器外部。接下来让我们来看从制作镜像到容器运行的全过程吧。 1、构建镜像: 我将会使用dockerfile的方式来构建镜像,基础镜像使用ubuntu 14.04(需要先拉取该镜像,docker pull ubuntu:14.04)。dockerfile内容如下 [root@host09 test]# cat Dockerfile FROM docker.io/ubuntu:14.04 MAINTAINER hepengfei RUN groupadd hpf --创建用户组 RUN useradd -d /data -g hpf -m hpf --创建用户 RUN su - hpf -c "mkdir -p /data/scripts" RUN su - hpf -c "mkdir -p /data/logs" WORKDIR /data/scripts COPY test.sh /data/scripts/ RUN chown hpf:hpf test.sh RUN chmod 755 test.sh ENTRYPOINT su - hpf -c "/data/scripts/test.sh" --使用所创建的用户来运行脚本 [root@host09 test]#
双面人
2019-10-24
2K
0
Yii2页面缓存详解 转
缓存
页面缓存指的是在服务器端缓存整个页面的内容。随后当同一个页面 被请求时,内容将从缓存中取出,而不是重新生成。 举例说明
双面人
2019-04-10
513
0
没有更多了
社区活动
腾讯技术创作狂欢月
“码”上创作 21 天,分 10000 元奖品池!
立即发文
Python精品学习库
代码在线跑,知识轻松学
立即查看
博客搬家 | 分享价值百万资源包
自行/邀约他人一键搬运博客,速成社区影响力并领取好礼
立即体验
技术创作特训营·精选知识专栏
往期视频·千货材料·成员作品 最新动态
立即查看
领券
问题归档
专栏文章
快讯文章归档
关键词归档
开发者手册归档
开发者手册 Section 归档