1.编辑脚本xxx.conf
/usr/local/nginx/conf/conf.d/xxx.conf
server {
listen 9999;
server_name localhost;
#charset koi8-r;
#access_log logs/host.access.log main;
location / {
root /data/qes-app/qit/build;
index index.html index.htm;
add_header Cache-Control "no-cache";
add_header Pragma "no-cache";
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
error_page 500 502 503 504 /50x.html;
location = /50x.html {
root html;
}
}
2.重启nginx
./nginx -s reload
或者
进入目录 cd /usr/sbin
重启 nginx -c /etc/nginx/nginx.conf
3.其他相关命令
set +o history // 不会将任何当前会话写入日志。可以在会话期间任何时间运行,并隐藏所有命令。
set -o history // 重启日志记录,但是会记录 set 命令,所以会发生一些明显的变化。
chmod 777 soffice.bin // 777就是rwxrwxrwx,意思是该登录用户(可以用命令id查看)、他所在的组和其他人都有可读可写可执行的最高权限。