网站备案 停站,wordpress 设置页面内容具有缓存性,做模型的网站有哪些内容,wordpress 08源码适用场景#xff1a;centos7 修改linux服务器的文件#xff0c;建议先备份#xff0c;再进行修改
如果不小心把此文件破坏了#xff0c;想恢复#xff0c;可以先把源文件备份#xff0c;将源文件内容删除#xff0c;下面内容重新粘贴即可
# /etc/profile# System wide…适用场景centos7 修改linux服务器的文件建议先备份再进行修改
如果不小心把此文件破坏了想恢复可以先把源文件备份将源文件内容删除下面内容重新粘贴即可
# /etc/profile# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc# Its NOT a good idea to change this file unless you know what you
# are doing. Its much better to create a custom.sh shell script in
# /etc/profile.d/ to make custom changes to your environment, as this
# will prevent the need for merging in future updates.pathmunge () {case :${PATH}: in*:$1:*);;*)if [ $2 after ] ; thenPATH$PATH:$1elsePATH$1:$PATHfiesac
}if [ -x /usr/bin/id ]; thenif [ -z $EUID ]; then# ksh workaroundEUID/usr/bin/id -uUID/usr/bin/id -rufiUSER/usr/bin/id -unLOGNAME$USERMAIL/var/spool/mail/$USER
fi# Path manipulation
if [ $EUID 0 ]; thenpathmunge /usr/sbinpathmunge /usr/local/sbin
elsepathmunge /usr/local/sbin afterpathmunge /usr/sbin after
fiHOSTNAME/usr/bin/hostname 2/dev/null
HISTSIZE1000
if [ $HISTCONTROL ignorespace ] ; thenexport HISTCONTROLignoreboth
elseexport HISTCONTROLignoredups
fiexport PATH USER LOGNAME MAIL HOSTNAME HISTSIZE HISTCONTROL# By default, we want umask to get set. This sets it for login shell
# Current threshold for system reserved uid/gids is 200
# You could check uidgid reservation validity in
# /usr/share/doc/setup-*/uidgid file
if [ $UID -gt 199 ] [ /usr/bin/id -gn /usr/bin/id -un ]; thenumask 002
elseumask 022
fifor i in /etc/profile.d/*.sh /etc/profile.d/sh.local ; doif [ -r $i ]; thenif [ ${-#*i} ! $- ]; then . $ielse. $i /dev/nullfifi
doneunset i
unset -f pathmunge