记录关于Devops运维,虚拟化容器云计算,数据库,网络安全等各方面问题。
Centos 7 PHP7环境配置 LNMP (centos7+nginx+MySQL5.7.9+PHP7)首先更新系统软件$ yum update安装nginx1.安装nginx源$ yum localinstall http://nginx.org/packages/centos/7/noarch/RPMS/nginx-release-centos-7-0.el7.ngx.noarch.rpm2.安装nginx$ yum install nginx3.启动nginx$ service nginx startRedirecting to /bin/systemctl start nginx.service4.访问http://你的ip/如果成功安装会出来nginx默认的欢迎界面安装MySQL5.7.*1.安装mysql源$ yum localinstall http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm2.安装mysql$ yum install mysql-community-server确认一下mysql的版本,有时可能会提示mysql5.63.安装mysql的开发包,以后会有用$ yum install mysql-community-devel4.启动mysql$ service mysqld startRedirecting to /bin/systemctl start mysqld.service5.查看mysql启动状态$ service mysqld status出现pid证明启动成功6.获取mysql默...
Database ConfigurationownCloud requires a database in which administrative data is stored. The following databases are currently supported:MySQL / MariaDBSQLitePostgreSQLOracleThe MySQL or MariaDB databases are the recommended database engines. However, because it is a file based database with the least administrative overhead, SQLite is chosen by default.NoteBecause SQLite does not handle large datasets or large numbers of users well, we recommend that it be used only for single user ownCloud installations, or for simple testing setups.RequirementsChoosing to use MySQL / MariaDB, PostgreSQL, or Oracle as your database requires that you install and set up the server software first.NoteThe steps for configuring a third party database are beyond the scope of this document. Please refer to the documentation for your specific database choice for instructions.ParametersFor setting up ownCloud to use any database, use the instructions in Installation Wizard. You should not have to edit the...
WDCP安装memcache、mysqli、PDO_MYSQL、mysql innodb、libmcrypt、php zip的方法需要用到的就安装memcache的安装wget -c http://down.wdlinux.cn/in/memcached_ins.shchmod 755 memcached_ins.sh ./memcached_ins.sh服务启动或停止service memcached start|stop|restartmysqli的安装wget -c http://down.wdlinux.cn/in/mysqli_ins.shchmod 755 mysqli_ins.sh ./mysqli_ins.shpdo_mysql的安装wget -c http://down.wdlinux.cn/in/pdo_mysql_ins.shchmod 755 pdo_mysql_ins.sh ./pdo_mysql_ins.shmysql innodb的安装wget -c http://down.wdlinux.cn/in/mysql_innodb_ins.shchmod 755 mysql_innodb_ins.sh ./mysql_innodb_ins.shlibmcrypt的安装wget -c http://down.wdlinux.cn/in/libmcrypt_ins.shchmod 755 libmcrypt_ins.sh./libmcrypt_ins.shphp zip的支持wget -c http://down.wdlinux.cn/in/zip_ins.shchmod 755 zip_ins.sh./zip_ins.sh
3D acceleration in virtual machines - Part 1: VMware & DirectX - Tutorial Updated: December 31, 2008 Running virtualized operating systems on top of existing hosts is a great idea. It's fun, it's cool, it allows you to experiment with software before committing to your real platform, it allows you to do things you would not normally dare, it gives you enormous flexibility, and it significantly reduces costs of deployment. But the one thing that most virtualization software lacks is the 3D acceleration for guest operating systems. Or used to lack ... 3D acceleration in virtual machines has become a reality. Introduction In this series of articles, I will show you the simple hacks required to have 3D acceleration enabled in your guest operating systems! This means that your virtual machines will not be limited to 2D ap...
squid开多端口代理的心得 利用squid开二级代理很方便,就是在配置文件上做点文章, 它给的那个default的配置文件看起来就头大。一般都是重新写一个。 给A校区的兄弟们开了一个代理。用的是B校区的动态ip做的父代理。 但是动态实在是有够e。不能上国外不说,还经常抽筋。 由于手头有另一个专用代理A可以上国外,于是萌发了开两个二级代理的念头。 只有一台电脑,当然只能在一个自己上开两个端口(其实后来才想到可以用认证的方法,对一个端口进来的不同的用户采用不同的的父级代理,这样squid的配置文件会稍微麻烦一点),先开始不得要领,也没有现实的例子,看见有人这样开了,问一问才知道是windows下用wingate很简单就能做到了。 wingate能想到,我想squid也应该能做到,自己慢慢捉摸吧。 基本想法是: 服务端口3128-----squid-----动态ip连接----国内访问 服务端口6666-----squid-----代理A ----国外访问 先想到的是启动两次squid,第二次手动指定另外一个配置文件给它(-f),一尝试得到的信息是Squid is already running! Process ID **** 。想一想这种方法也有够野蛮,效率和稳定两不顾,于是弃之不用。 于是开始打配置文件的主意,在google上查到论坛上关于两个端口采用不同...
Network Configuration Examples (Xen 4.1+)(Redirected from Host Configuration/Networking)Jump to: navigation, searchContents [hide] 1 Overview2 Distribution Network Configuration Examples2.1 Bridging2.1.1 Disable Netfilter on Bridges (All Distributions)2.1.2 Example Debian-style bridge configuration (e.g. Debian, Ubuntu)2.1.3 Red Hat-style bridge configuration (e.g. RHEL, Fedora, CentOS)2.2 Openvswitch2.3 Routing2.3.1 Enabling Routing (All Distributions)2.4 Network Address Translation (NAT)2.4.1 Enabling NAT (All Distributions)3 Distribution Specific Resources3.1 Debian & Ubuntu3.2 Fedora3.3 Gentoo OverviewWhen using the xl toolstack the host networking configuration is not configured by the toolstack but rather administrators are required to setup an appropriate network configuration using the tools provided by their host distribution.There are three main styles of network setup for a Xen host, bridged, routed and nat. The default and most common is bridged. From Xen 4....
[root@localhost qemu]# ./configure ERROR: DTC (libfdt) version >= 1.4.0 not present. Your options: (1) Preferred: Install the DTC (libfdt) devel package (2) Fetch the DTC submodule, using: git submodule update --init dtc解決方式git submodule update --init dtc
QEMU with Open vSwitch networkThis article is designed to show the steps needed to create a basic and minimal Open vSwitch network to be used by a QEMU virtual machines(s) managed with libvirt. This type of network provides a much more powerful switching solution than the legacy NAT and bridge forwarding solutions. NoteThis article is written with the assumption that you already understand how to create and configure a QEMU virtual machine and how to manage them using libvirt and related tools like virsh.Contents1 Context2 Background on OpenFlow and Open vSwitch3 System Setup3.1 Kernel3.2 libvirt3.3 Open vSwtich3.3.1 Startup and enable the daemons:3.4 Setup eth13.5 Setup vSwitch3.6 Setup libvirt3.7 OpenRC4 ClosingContextThere all quite a few different networking designs that can be created; but for the sake of keeping this simple we are going to work under the assumption that we are trying to configure a host OS on a computer that has 2 physical ethernet ports. The first port (eth0) i...
Varnish Dashboard 是第三方开发的基于浏览器 Varnish 监控系统,利用 Varnish Agent 实现与 Varnish 的通讯。安装简单,提供包括统计、日志、VCL和服务管理(包括重启、更新 VCL、清除 URL 等操作)。Varnish Dashboard 支持多个 Varnish 服务器,允许通过合并视图来查看信息。Dashboard:Bans:Manage Server:VCL:Logs:SetupStep 1: Install Varnish Agent 2The agent must be installed on the same server running Varnish. You can clone and compile the source code or install it using the following packages for Debian/Ubuntu and RHEL/CentOS: http://users.varnish-software.com/~kristian/agent/I recommend that you read the docs on the GitHub repo and this post: http://kly.no/posts/2013_01_22_Varnish_Agent.htmlYou may have to create a file with username and password: /etc/varnish/agent_secret. Every line of this file is a user and a password with the following format:username:password
Step 2: Download this dashboardYou can download this dashboard using one of the release packages or by using Git clone, it does not matt...
最新评论