sudo

ubuntu+nginx+laravel

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-21 14:19:33
1, 到http://v4.golaravel.com/docs/4.2/installation 点击下载最新版Laravel框架。然后解压 2,把laravel-master下的文件夹拷入到php的项目目录下,我用的zendstudio 的目录是Demo1, 所以我拷到到Demo1下, 3,修改nginx,在 /etc/nginx/sites-available/default 把 location / { try_files $uri =404;}修改为 location / { try_files $uri $uri/ /index.php? $query_string; } 把 root /usr/share/nginx/html; 修改为Demo1下的public文件夹 配置的意思就是所有的网页请求都传递给public下的index.php文件。 4,重启nginx sudo /etc/init.d/nginx reload 在网页中输入127.0.0.1 访问,如果出现 que 少mcrypt库的话,是因为ubuntu中mcrypt没下载或者配置错误。 5,下载mcrypt sudo apt-get install php5-mcrypt , apt-get没有在/etc/php5/cli/conf.d/和/etc/php5/fpm/conf.d/下面建立mcrypt

Ubuntu 14.0.4下 JDK + Tomcat + Intellij IDEA 安装配置

ぐ巨炮叔叔 提交于 2019-12-21 13:11:53
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 1.相关 环境 : JDK 7 Tomcat 7.0.47 GR OSS 版本 V1.1 Ubuntu14.0.4 2. 安装 JDK a) 查询系统是多少位 getconf LONG_BIT b) 根据查询数据到官网下载 JDK (http://www.oracle.com/technetwork/java/javase/downloads/jdk7-downloads-1880260.html) c) 选择要安装 JDK 的目录位置 /usr/java, 如果不存在 , 可以创建 sudo mkdir /usr/java d) 将下载的 JDK 文件移动到 /usr/java sudo mv (JDK 路径 )/ jdk-7u60-linux-x64.gz /usr/java e) 进入 /usr/java 解压 JDK 文件 cd /usr/java sudo tar -zxvf jdk-7u60-linux-x64.gz 3. 配置 JDK 环境变量 a) 使用 vi 打开 /etc/profile sudo vim /etc/profile b) 在文件末尾添加如下内容 export JAVA_HOME="/usr/java/jdk1.7.0_67" PATH=$JAVA_HOME/bin:$PATH

Meteor will not run without Sudo?

不羁的心 提交于 2019-12-21 12:29:30
问题 On OSX Yosemite and the latest version of meteor (1.0.1), no matter how many times I uninstall and reinstall it, I can't seem to get it running without sudo. My user account is an administrator account. But meteor refuses to run without sudo. The errors I'm getting are all: -bash: meteor: command not found I've seen a few posts on here with similar problems. I've tried repairing disk permissions with disk utility. I've tried: sudo chown -R $myUsername /usr/local/bin/meteor I'm not sure what

ansible 基础一

删除回忆录丶 提交于 2019-12-21 08:04:44
安装 解决依赖关系: yum -y install python-jinja2 PyYAML python-paramiko python-babel python-crypto tar包安装 http://releases.ansible.com/ansible/  ##下载最新版,解压安装 python setup.py build python setup.py install 使用 Ansible 通过读取默认的主机清单配置 /etc/ansible/hosts ,可以同时连接到多个远程主机上执行任务, 默认路径可以通过修改 ansible.cfg 的 hostfile 参数指定路径。 ansible配置目录结构讲解 [root@ansible ~]# rpm -ql ansible /etc/ansible     # 所有配置文件存放目录配置文件位于/etc/ansible 官方建议将该目录使用git/svn进行版本控制便于跟踪和修改 /etc/ansible/ansible.cfg   # 主配置文件 /etc/ansible/hosts    # 主机定义文件 /etc/ansible/roles /usr/bin/ansible # 实现批量部署的命令 /usr/bin/ansible-doc # 模块文档查看器 /usr/bin/ansible-galaxy #

ubuntu安装jdk

北战南征 提交于 2019-12-21 07:36:41
(1)添加ppa(源) sudo add-apt-repository ppa:webupd8team/java sudo apt-get update 2)安装oracle-java-installer sudo apt-get install oracle-java8-installer //安装 JDK 8 或者: sudo apt install openjdk-8-jre-headless sudo apt install openjdk-8-jdk-headless 来源: CSDN 作者: 东乡斗士 链接: https://blog.csdn.net/lirenjun_2006/article/details/103635885

sudoers is world writable error [closed]

六眼飞鱼酱① 提交于 2019-12-21 07:28:22
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 7 years ago . I changed the /ect file permissions on Ubuntu 12.10 so that i could edit bash.bashrc so that neo4j can see the JVM but now I am getting errors when i try run the neo4j server I entered the code below and I managed to edit bash.bashrc but now i cant use sudo at all! sudo chmod -R ugo+rw /ect sudo -u neo4j /home

Docker笔记02-日志平台ELK搭建

删除回忆录丶 提交于 2019-12-21 04:05:09
OS: Centos7 准备工作: 虚拟机中安装Centos, 搭建Docker环境 ELK简介: 略 文档地址 https://elk-docker.readthedocs.io/ 需要注意的是在Beats套件加入ELK Stack后,新的称呼是 Elastic Stack , 本次实践的是 filebeat + elk 由于elk镜像很大7.0.1版本大约1.8G 开始前建议将镜像源设置成国内地址 如阿里镜像库,网易镜像库等 阿里镜像源设置可参考 https://www.cnblogs.com/anliven/p/6218741.html / 1.下载镜像 docker pull sebp/elk 2.运行镜像 docker run -p 5601:5601 -p 9200:9200 -p 5044:5044 -v /usr/dockerfile:/data -it -d --name elk sebp/elk 5601 (Kibana web interface). 9200 (Elasticsearch JSON interface). 5044 (Logstash Beats interface, receives logs from Beats such as Filebeat – see the Forwarding logs with Filebeat

How can I take persistent permissions in electron app?

亡梦爱人 提交于 2019-12-21 03:52:44
问题 I am creating an electron app where I need to scan and update files which need root permission. I know I can run such commands using sudo.exec() in that way: sudo.exec ("rm /private/var/log/fsck_hfs.log", options, (e, stdout, stderr) => {}); And even I can put multiple commands in a script and execute them with single sudo.exec(). In my case, commands needs to be executed at different point of time and I cannot execute them with a single script. It is annoying for user to grant permissions

Linux安装jemalloc笔记

被刻印的时光 ゝ 提交于 2019-12-21 03:40:49
前言 最近研究一个工具库需要用 jemalloc 做内存分配器,但在 ubuntu 下安装过程中遇到很多问题,故记下安装过程的笔记,避免以后遇到在这上面浪费时间。 安装过程 环境:VMware Ubuntu 18.04.3 LTS cd ~/桌面 wget https://github.com/jemalloc/jemalloc/releases/download/5.0.1/jemalloc-5.0.1.tar.bz2 tar -jxvf jemalloc-5.0.1.tar.bz2 cd jemalloc-5.0.1 sudo apt-get install autogen autoconf ./autogen.sh make -j2 sudo make install sudo ldconfig cd ../ rm -rf jemalloc-5.0.1 jemalloc-5.0.1.tar.bz2 注意安装 jemalloc 不要放在共享目录中. 例如可以放在桌面上. 因为安装过程中需要建立 ln -sf libjemalloc.so.2 lib/libjemalloc.so 软链在共享目录的分区情况下会出问题(因为我的Ubuntu 是在 VMWare 中, 共享目录无法软链). Linux下找不到so文件的解决办法 但在启动应用程序报找不到libjemalloc.so

Linux安装Docker

筅森魡賤 提交于 2019-12-21 01:59:08
Linux环境安装 安装:   1、Docker要求CentOS系统的内核版本高于 3.10 ,通过 uname -r 命令查看你当前的内核版本是否支持安账docker   2、更新yum包:sudo yum update   3、安装需要的软件包,yum-util 提供yum-config-manager功能,另外两个是devicemapper驱动依赖的     sudo yum install -y yum-utils device-mapper-persistent-data lvm2   4、设置yum源:sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo   5、可以查看所有仓库中所有docker版本,并选择特定版本安装:yum list docker-ce --showduplicates | sort -r   6、安装docker:sudo yum install docker-ce-17.12.0.ce   7、启动、设置开启开机启动     sudo systemctl start docker     sudo systemctl enable docker   8、验证安装是否成功:docker version        9